无法在Xcode 6 Beta 5上运行testing

我有一个使用Kiwitesting框架(我从cocoapods安装的最新版本2.3.0)的iOS项目。 起初,当我运行testing时,我收到一个错误,它找不到XCTest.h。 所以我遵循这个答案的build议: https : //stackoverflow.com/a/24651704/1082326和问题消失了。

然而,不同的问题出现了,现在当我尝试运行testing时,模拟器select“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 

你知道可能是什么问题吗?

在此先感谢,伊多

我已经通过将代码签名设置为“不要代码签名”并清理项目( Cmd + Option + Shift + K )来解决此问题。

在这里输入图像说明

看看: https : //stackoverflow.com/a/22024428/529243和https://stackoverflow.com/a/22056161/529243

我有同样的错误,经过这些步骤后,问题就消失了。

使用XCTest转换向导:

 Edit > Refactor > Convert to XCTest 

我从githubfind了一个解决scheme: https : //github.com/kiwi-bdd/Kiwi/issues/570 (感谢tjarratt @ https://github.com/tjarratt

将您的testing包的“包装扩展”从octest更改为xctest。

最近我有这个,我发现我已经添加了一个新的XCTest到专门用于我们旧的OCTest剩余类的目标。 只是分享,以防将来帮助任何人。