在Xcode5中,测试失败并显示消息IDEBundleInjection.c:加载包时出错

时间:2014-03-19 14:48:40

标签: ios unit-testing ios7 xcode5

在Xcode 5.0.2(XCTest)中为现有项目添加新的测试目标虽然在编译测试目标时成功,但不起作用。

我已经在这里搜索过但没有成功。

额外信息:
这是一款iOS应用 部署目标是7.0 它使用两个带有资源包的子项目(静态库)

这里有错误信息:

2014-03-19 11:31:06.509 MyProject[53196:70b] Error loading /Users/rodrigoarantes/Library/Developer/Xcode/DerivedData/IgnitEdu-dcshcxphrysxcqdftuszmgdoweuz/Build/Products/Debug-iphonesimulator/MyProjectTests.xctest/MyProjectTests: dlopen(/Users/rodrigoarantes/Library/Developer/Xcode/DerivedData/IgnitEdu-dcshcxphrysxcqdftuszmgdoweuz/Build/Products/Debug-iphonesimulator/MyProjectTests.xctest/MyProjectTests, 262): no suitable image found. Did find: /Users/rodrigoarantes/Library/Developer/Xcode/DerivedData/IgnitEdu-dcshcxphrysxcqdftuszmgdoweuz/Build/Products/Debug-iphonesimulator/MyProjectTests.xctest/MyProjectTests: mach-o, but wrong architecture IDEBundleInjection.c: Error loading bundle '/Users/rodrigoarantes/Library/Developer/Xcode/DerivedData/IgnitEdu-dcshcxphrysxcqdftuszmgdoweuz/Build/Products/Debug-iphonesimulator/MyProjectTests.xctest'

如何解决此错误?

非常感谢任何帮助。

0 个答案:

没有答案