XcodeIDEBundle注入'Error Accessing Bundle'

Xcode IDEBundleInjection 'Error Accessing Bundle'

这是 Apple 自动生成代码的示例测试用例:

@interface TransformationTests : XCTestCase

@end

@implementation TransformationTests

- (void)setUp {
    [super setUp];
    // Put setup code here. This method is called before the invocation of each test method in the class.
}

- (void)tearDown {
    // Put teardown code here. This method is called after the invocation of each test method in the class.
    [super tearDown];
}

- (void)testExample {
    // This is an example of a functional test case.
    XCTAssert(YES, @"Pass");
}

- (void)testPerformanceExample {
    // This is an example of a performance test case.
    [self measureBlock:^{
        // Put the code you want to measure the time of here.
    }];
}

任何测试都因以下问题而失败:

IDEBundleInjection.c: Error accessing bundle '<>/Library/Developer/Xcode/DerivedData/Transformation-epxdcmceeyrkpqaqhckucbknydvi/Build/Products/Debug-iphonesimulator/TransformationTests.xctest'
DevToolsBundleInjection environment:
XCInjectDiagnostics: (null)
XCInjectBundleInto: <>/Library/Developer/Xcode/DerivedData/Transformation-epxdcmceeyrkpqaqhckucbknydvi/Build/Products/Debug-iphonesimulator/Transformation.app/Transformation
XCInjectBundle: <>/Library/Developer/Xcode/DerivedData/Transformation-epxdcmceeyrkpqaqhckucbknydvi/Build/Products/Debug-iphonesimulator/TransformationTests.xctest
TestBundleLocation: <>/Library/Developer/Xcode/DerivedData/Transformation-epxdcmceeyrkpqaqhckucbknydvi/Build/Products/Debug-iphonesimulator/TransformationTests.xctest
TMPDIR: <>/Library/Developer/CoreSimulator/Devices/C55DBC49-3E15-4424-AB04-8F080B3DFB44/data/Containers/Data/Application/9166EE1F-741D-4E34-8ECE-F048215B84CC/tmp
DYLD_LIBRARY_PATH: <>/Library/Developer/Xcode/DerivedData/Transformation-epxdcmceeyrkpqaqhckucbknydvi/Build/Products/Debug-iphonesimulator
DYLD_INSERT_LIBRARIES: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/PrivateFrameworks/IDEBundleInjection.framework/IDEBundleInjection
DYLD_FRAMEWORK_PATH: <>/Library/Developer/Xcode/DerivedData/Transformation-epxdcmceeyrkpqaqhckucbknydvi/Build/Products/Debug-iphonesimulator
DYLD_FALLBACK_LIBRARY_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/lib
DYLD_FALLBACK_FRAMEWORK_PATH: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Frameworks


*** Test session exited(1) without checking in. If you believe this error represents a bug, please attach the log file at /var/folders/d7/_7pl6k7d7nz6k0vhw3d8tnqm0000gn/T/com.apple.dt.XCTest-status/Session-2015-05-15_15:07:22-jSYNZc.log

derived data文件夹中,xctest文件夹丢失;而且我不确定如何让 Xcode 为我生成它。有什么指点吗?

编辑:我最好的解决方案是创建一个新项目。 :X

我的解决办法——清空派生数据目录。为我工作。 :/