繁体   English   中英

Xcode 10,iOS:即使所有测试都通过,测试构建也会失败

[英]Xcode 10, iOS: Test build failed even when all Tests have passed

我所有的单元测试都通过了,但是测试构建失败了。 在日志中,我得到了。

MyApp.app (35810) encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. Underlying error: Test session exited(1) without checking in.)

通过检查以下链接,我了解到上述错误只是一般性错误,实际日志文件将对错误进行更好的描述。

https://github.com/fastlane/fastlane/issues/6968#issuecomment-284421316

在日志文件中,我得到:

/Users/swasidhant.chowdhury/Library/Developer/CoreSimulator/Devices/DB36B628-072F-483A-A285-F3BC6E56EEC6/data/Containers/Bundle/Application/DEE2984D-B18B-4331-A298-E04423EF297C/MyApp.app/Frameworks/libswiftXCTest.dylib" UserInfo={NSLocalizedFailureReason=The bundle couldn’t be loaded., NSLocalizedRecoverySuggestion=Try reinstalling the bundle., NSFilePath=/Users/swasidhant.chowdhury/Library/Developer/Xcode/DerivedData/MyAppWS-hdqtqxlvnzxcrhfksajhjcsdpwww/Build/Products/Debug-iphonesimulator/MyApp.app/PlugIns/MyAppTests.xctest/MyAppTests, NSDebugDescription=dlopen(/Users/swasidhant.chowdhury/Library/Developer/Xcode/DerivedData/MyAppWS-hdqtqxlvnzxcrhfksajhjcsdpwww/Build/Products/Debug-iphonesimulator/MyApp.app/PlugIns/MyAppTests.xctest/MyAppTests, 265): Symbol not found: __T0So8NSObjectCs7CVarArg10ObjectiveCWP
  Referenced from: /Users/swasidhant.chowdhury/Library/Developer/CoreSimulator/Devices/DB36B628-072F-483A-A285-F3BC6E56EEC6/data/Containers/Bundle/Application/DEE2984D-B18B-4331-A298-E04423EF297C/MyApp.app/Frameworks/libswiftXCTest.dylib

我无法在“ __T0So8NSObjectCs7CVarArg10ObjectiveCWP”上找到任何内容,我必须更改任何构建设置才能使其正常工作吗? 我需要做任何链接吗?

您是否尝试删除“派生数据”文件夹? 这就为我解决了这个问题。 如果您在Xcode 10中编译应用程序,则libswiftXCTest.dylib似乎libswiftXCTest.dylib应该包含在应用程序包中。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM