0

我使用 GHUnit 创建了一个项目。但是,当我使用 GHUnitmake test命令执行时,会出现如下错误:

Running: "/Users/gongtao/Library/Developer/Xcode/DerivedData/MicIOSHelper-eqvmgnulwgjftjfnkcrzkpwkyefw/Build/Products/Debug-iphonesimulator/MicIOSHelper.app/MicIOSHelper" -RegisterForSystemEvents
RunTests.sh: line 50:  8604 Segmentation fault: 11  "/Users/gongtao/Library/Developer/Xcode/DerivedData/MicIOSHelper-eqvmgnulwgjftjfnkcrzkpwkyefw/Build/Products/Debug-iphonesimulator/MicIOSHelper.app/MicIOSHelper" -RegisterForSystemEvents
Command /bin/sh failed with exit code 139

** BUILD FAILED **

The following build commands failed:
    PhaseScriptExecution Run\ Script /Users/gongtao/Library/Developer/Xcode/DerivedData/MicIOSHelper-eqvmgnulwgjftjfnkcrzkpwkyefw/Build/Intermediates/MicIOSHelper.build/Debug-iphonesimulator/MicIOSHelper.build/Script-42D16A2D1A1476C3007976D9.sh
(1 failure)
make: *** [test] Error 65

我遵循以下准则:从命令行运行的 GHUnit

生成文件是这样的:

clean:
    -rm -rf build/*
test:
    GHUNIT_CLI=1 xcodebuild -target Tests -configuration Debug -sdk iphonesimulator build

我的项目名称是“MicIOSHelper”。

4

0 回答 0