ios - Xcode 10,iOS : Test build failed even when all Tests have passed

标签 ios xcode continuous-integration xcode10

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

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”上找到任何内容 我必须更改任何build设置才能使其正常工作吗?我需要做任何链接吗?

最佳答案

您是否尝试过删除 Derived Data 文件夹?这只是为我解决了这个问题。如果您在 Xcode 10 中编译应用程序,似乎 libswiftXCTest.dylib 不应该在您的应用程序包中。

关于ios - Xcode 10,iOS : Test build failed even when all Tests have passed,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52557336/

相关文章:

ios - Web 应用程序 : Can the iOS share sheet be triggered – and/or the shared URL customised – programatically?

重启时的 iOS Swift 后台状态

c++ - Xcode 7 : C++ threads ERROR: Attempting to use a deleted function

ios - misaligned_stack_error_是什么意思?

没有服务器的 Java 持续集成

c# - 在 Team City 上构建时,命名空间 'System.Data.Entity' 中不存在“验证”

ios - Firebase 身份验证 iOS 12 无效 token

ios - Xcode 9 无法添加目标成员资格

c# - 使用 Git 将夜间构建分发到工作室

ios - 如何让我的backgroundImageView可拖动而不是主视图