在我通过doint Product -> Test
运行ProjectNameTests.m(空测试文件)之后,项目成功构建,但是它抛出并给了我以下错误:
2016-01-10 11:25:32.677 xctest[66104:5611958] The bundle “ProjectNameTests” couldn’t be loaded. Try reinstalling the bundle.
2016-01-10 11:25:32.677 xctest[66104:5611958] (dlopen(/Users/XYZ/Library/Developer/Xcode/DerivedData/ProjectName-dnwnjlzdzxbcyydkxsumlvokmhvk/Build/Products/Debug-iphonesimulator/ProjectNameTests.xctest/ProjectNameTests, 265): Symbol not found: _FBSDKErrorArgumentCollectionKey
Referenced from: /Users/XYZ/Library/Developer/Xcode/DerivedData/ProjectName-dnwnjlzdzxbcyydkxsumlvokmhvk/Build/Products/Debug-iphonesimulator/ProjectNameTests.xctest/ProjectNameTests
Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest
in /Users/XYZ/Library/Developer/Xcode/DerivedData/ProjectName-dnwnjlzdzxbcyydkxsumlvokmhvk/Build/Products/Debug-iphonesimulator/ProjectNameTests.xctest/ProjectNameTests)
Program ended with exit code: 83
我试图从测试中删除UIKit,更改Match-O类型,将模拟器切换到iPhone 5以及类似答案中建议的其他功能,但没有任何运气。有任何想法吗?
最佳答案
我只是遇到了类似的问题,事实证明Xcode项目的部署目标设置为7.2,但是Expecta和septa需要8.0或更高版本。
关于ios - XCTest错误: The bundle couldn’t be loaded.尝试重新安装捆绑软件,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/34704388/