Xcode输出如下(“Reading List”是应用程序名称):
2018-09-16 15:11:36.667 ReadingList[11401:11478426] Failed to load test bundle from file:///Users/andrewbennet/library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/DeBUG-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest/: Error Domain=NSCocoaErrorDomain Code=3587 “dlopen_preflight(/Users/andrewbennet/library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/DeBUG-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest/ReadingList_UnitTests): no suitable image found. DID find:
/Users/andrewbennet/library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/DeBUG-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest/ReadingList_UnitTests: mach-o,but not built for iOS simulator” UserInfo={NSLocalizedFailureReason=The bundle is damaged or missing necessary resources.,NSLocalizedRecoverySuggestion=Try reinstalling the bundle.,NSfilePath=/Users/andrewbennet/library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/DeBUG-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest/ReadingList_UnitTests,NSDeBUGDescription=dlopen_preflight(/Users/andrewbennet/library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/DeBUG-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest/ReadingList_UnitTests): no suitable image found. DID find:
/Users/andrewbennet/library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/DeBUG-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest/ReadingList_UnitTests: mach-o,but not built for iOS simulator,NSBundlePath=/Users/andrewbennet/library/Developer/Xcode/DerivedData/ReadingList-edsxqugqvkymbgfrbivbjmzebuya/Build/Products/DeBUG-iphonesimulator/ReadingList.app/PlugIns/ReadingList_UnitTests.xctest,NSLocalizedDescription=The bundle “ReadingList_UnitTests” Couldn’t be loaded because it is damaged or missing necessary resources.}
线路mach-o,但不是为iOS模拟器构建的,似乎它可能是关键.我该如何解决这个问题?
解决方法 测试目标将iOS部署目标设置保留为默认值.在Xcode 9.4中,这等于“iOS 11.4”,但由于某种原因,测试仍然可以在“iPhone 7(10.3)”模拟器上运行.在Xcode 10中,似乎行为发生了变化,因为测试不再运行在默认“iOS 12”之前运行iOS版本的模拟器上.
总结以上是内存溢出为你收集整理的在较旧的iOS模拟器上运行时Xcode 10测试失败 – “无法加载测试包…找不到合适的图像”全部内容,希望文章能够帮你解决在较旧的iOS模拟器上运行时Xcode 10测试失败 – “无法加载测试包…找不到合适的图像”所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)