Xcode 4:从命令行运行单元测试的dyld错误

时间:2011-10-19 17:29:14

标签: objective-c xcode command-line-interface ocunit

按照说明here设置测试目标,从命令行运行我的OCUnit测试用例。

测试通过cmd-U在Xcode中工作,但它们在终端中不起作用。运行它们,我收到此错误:

/Developer/Tools/RunPlatformUnitTests.include:419: note: Running tests for architecture 'i386' (GC OFF)
2011-10-19 12:21:36.746 otest[63517:7803] The test bundle at /Users/ben/Library/Developer/Xcode/DerivedData/Deli-gspotoqkkxdkiqddximbbiwaivvh/Build/Products/Debug-iphonesimulator/deliappTests.octest
could not be loaded because a link error occurred.  It is likely that
dyld cannot locate a framework framework or library that the the test
bundle was linked against, possibly because the framework or library
had an incorrect install path at link time.
/Developer/Tools/RunPlatformUnitTests.include:448: error: Failed tests for architecture 'i386' (GC OFF)

/Developer/Tools/RunPlatformUnitTests.include:462: note: Completed tests for architectures 'i386'


** BUILD FAILED **

我创建了一个示例应用程序&按照相同的步骤,它工作得很好。它必须是我当前项目的链接器问题。

我对它找不到哪个库或框架没有任何见解,因此调试起来非常困难。

非常感谢任何帮助。

0 个答案:

没有答案