ios – 为Swift / Obj-c项目运行XCTest时出错(错误83)
发布时间:2020-12-14 17:13:51 所属栏目:百科 来源:网络整理
导读:尝试运行 Swift / Obj-c应用程序的测试时出现以下错误: 2016-02-07 00:02:26.752 xctest[3275:115122] The bundle “MyAppTests” couldn’t be loaded. Try reinstalling the bundle.2016-02-07 00:02:26.752 xctest[3275:115122] (dlopen(/Users/raphaelc
尝试运行
Swift / Obj-c应用程序的测试时出现以下错误:
2016-02-07 00:02:26.752 xctest[3275:115122] The bundle “MyAppTests” couldn’t be loaded. Try reinstalling the bundle. 2016-02-07 00:02:26.752 xctest[3275:115122] (dlopen(/Users/raphaelcruzeiro/Library/Developer/Xcode/DerivedData/MyApp-bjdolynlskqvavgryvznzbluqele/Build/Products/Debug-iphonesimulator/MyAppTests.xctest/MyAppTests,265): Symbol not found: _CLSDevelopmentPlatformNameKey Referenced from: /Users/raphaelcruzeiro/Library/Developer/Xcode/DerivedData/MyApp-bjdolynlskqvavgryvznzbluqele/Build/Products/Debug-iphonesimulator/MyAppTests.xctest/MyAppTests Expected in: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest in /Users/raphaelcruzeiro/Library/Developer/Xcode/DerivedData/MyApp-bjdolynlskqvavgryvznzbluqele/Build/Products/Debug-iphonesimulator/MyAppTests.xctest/MyAppTests) Program ended with exit code: 83 它是一个相当大的应用程序,它不使用Frameworks,因为我需要支持iOS 7,如果这有任何区别.该应用程序没有测试.我刚刚创建了第一个测试套件. 解决方法
我遇到了同样的问题,这是因为没有设置主机应用程序. 我不知道为什么它会被重置,但它是有道理的,因为swift文件不在测试目标中.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |