我尝试使用 Add Target -> Add Cocoa Touch Unit Testing Bundle 在 Xcode 5 上添加测试目标。但是,当我运行测试时,出现以下错误:
2013-09-24 10:43:14.446 Stack Exchange[48895:c07]加载 /Users/arielitovsky/Library/Developer/Xcode/DerivedData/MyApp-fjegcztcnwxqdfdimhonqzzqpdwr/Build/Products/Debug-iphonesimulator/Stack Exchange Tests.xctest/时出错Stack Exchange 测试:dlopen(/Users/arielitovsky/Library/Developer/Xcode/DerivedData/MyApp-fjegcztcnwxqdfdimhonqzzqpdwr/Build/Products/Debug-iphonesimulator/Stack Exchange Tests.xctest/Stack Exchange 测试,262):库未加载: /Developer /Library/Frameworks/XCTest.framework/XCTest 引用自:/Users/arielitovsky/Library/Developer/Xcode/DerivedData/MyApp-fjegcztcnwxqdfdimhonqzzqpdwr/Build/Products/Debug-iphonesimulator/Stack Exchange Tests.xctest/Stack Exchange测试原因:找不到图像IDEBundleInjection.c:加载包时出错 '/Users/arielitovsky/Library/Developer/Xcode/DerivedData/MyApp-fjegcztcnwxqdfdimhonqzzqpdwr/Build/Products/Debug-iphonesimulator/Stack Exchange Tests.xctest'程序以退出代码结束:0
为什么这不起作用?