【发布时间】:2014-09-24 15:07:40
【问题描述】:
最近我开始为一个旧的静态库编写测试用例。我已经将库加载到 Xcode 5,由于静态库是旧的,我必须手动添加带有测试目标的 TestProject。
当我尝试“Product-->Test”时,它会启动模拟器并且控制台显示以下错误
The test bundle at /xxx/xxx/xxx/StaticLibTest.xctest could not be
loaded because an unanticipated error occurred: Error
Domain=NSCocoaErrorDomain Code=3587 "The bundle “StaticLibTest.xctest”
couldn’t be loaded because it is damaged or missing necessary
resources."
(dlopen_preflight(/xxx/xxxx/xxx/Debug-iphonesimulator/StaticLibTest.xctest/StaticLibTests):
no suitable image found. Did find:
我不知道为什么会出现这个错误。
对于指出正确方向的任何帮助将不胜感激。
【问题讨论】:
标签: ios xcode5 static-libraries xctest