gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-11-28 17:31:01 24 4
gpt4 key购买 nike

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

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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com