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

9
我有一个iOS项目,正在使用Kiwi测试框架(最新版本2.3.0,我从cocoapods安装)。 一开始运行测试时,出现无法找到XCTest.h的错误。 所以我按照这个答案的建议进行操作:https://dev59.com/nWAf5IYBdhLWcg3wyVJ1#24651704 ,问题就解决了。
然而,现在出现了不同的问题。当我选择模拟器为“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

你知道问题可能是什么吗?
提前致谢, Ido
5个回答

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

1
使用 XCTest 转换向导:
Edit > Refactor > Convert to XCTest

1

我最近遇到了这个问题,发现我将一个新的 XCTest 添加到了一个专门用于旧 OCTest 遗留类的目标中。只是分享一下,以防未来有人需要。


1

1

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接