Ios 无法在Xcode 6 Beta 5上运行测试

Ios 无法在Xcode 6 Beta 5上运行测试,ios,testing,xcode6,kiwi,Ios,Testing,Xcode6,Kiwi,我有一个iOS项目,它使用Kiwi测试框架(我从cocoapods安装的最新版本2.3.0)。 起初,当我运行测试时,我收到一个错误,它找不到XCTest.h。 所以我遵循了这个答案的建议:问题就消失了 然而,出现了一个不同的问题,现在当我尝试在选择的模拟器为“iPhone 5(8.0)”时运行测试时,我得到以下错误: IDEBundleInjection.c: Error 3587 loading bundle '/Users/ifeins/Library/Developer/Xcode/De

我有一个iOS项目,它使用Kiwi测试框架(我从cocoapods安装的最新版本2.3.0)。 起初,当我运行测试时,我收到一个错误,它找不到XCTest.h。 所以我遵循了这个答案的建议:问题就消失了

然而,出现了一个不同的问题,现在当我尝试在选择的模拟器为“iPhone 5(8.0)”时运行测试时,我得到以下错误:

IDEBundleInjection.c: Error 3587 loading bundle
'/Users/ifeins/Library/Developer/Xcode/DerivedData/teacup-
aaenoytmfpqpgmaebqotyfrutlxy/Build/Products/Debug-iphonesimulator/teacup-tests.octest': 
The bundle “teacup-tests.octest” couldn’t be loaded because it is damaged or missing 
necessary resources.
DevToolsBundleInjection environment:
XCInjectDiagnostics: (null)
XCInjectBundleInto: /Users/ifeins/Library/Developer/Xcode/DerivedData/teacup- 
aaenoytmfpqpgmaebqotyfrutlxy/Build/Products/Debug-iphonesimulator/valet.app/valet
XCInjectBundle: /Users/ifeins/Library/Developer/Xcode/DerivedData/teacup-
aaenoytmfpqpgmaebqotyfrutlxy/Build/Products/Debug-iphonesimulator/teacup-tests.octest
TestBundleLocation: /Users/ifeins/Library/Developer/Xcode/DerivedData/teacup-
aaenoytmfpqpgmaebqotyfrutlxy/Build/Products/Debug-iphonesimulator/teacup-tests.octest
TMPDIR: /Users/ifeins/Library/Developer/CoreSimulator/Devices/BC59F7AC-9D3E-4FFC-9726-
97911AA597A6/data/Containers/Data/Application/E1D4A3F0-C06B-485D-BF87-9F5EA70D974A/tmp
DYLD_LIBRARY_PATH: /Users/ifeins/Library/Developer/Xcode/DerivedData/teacup-
aaenoytmfpqpgmaebqotyfrutlxy/Build/Products/Debug-iphonesimulator
DYLD_INSERT_LIBRARIES: /Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFra
meworks/IDEBundleInjection.framework/IDEBundleInjection
DYLD_FRAMEWORK_PATH: /Users/ifeins/Library/Developer/Xcode/DerivedData/teacup-
aaenoytmfpqpgmaebqotyfrutlxy/Build/Products/Debug-iphonesimulator
DYLD_FALLBACK_LIBRARY_PATH: /Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulat
or8.0.sdk/usr/lib
DYLD_FALLBACK_FRAMEWORK_PATH: /Applications/Xcode6-Beta5.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.0.sdk/Developer/Library/Frameworks
你知道会有什么问题吗

提前感谢,, 我想看看:和


我也有同样的错误,通过这些步骤工作后,问题消失了。

使用XTest转换向导:

Edit > Refactor > Convert to XCTest

我从github找到了一个解决方案: (感谢特贾拉特)


将测试包的“包装扩展”从octest更改为xctest。

我通过将代码签名设置为“不进行代码签名”并清理项目(Cmd+Option+Shift+K)解决了这个问题


我最近有了这个,我发现我在一个目标上添加了一个新的XCTest,专门用于旧的八进制残余类。只是分享一下,以防将来对任何人都有帮助