Testing failed:
CoreAppTests:
CoreApp.app (10848) encountered an error (Early unexpected exit, operation never finished bootstrapping -
no restart will be attempted. (Underlying error: Crash: CoreApp (10848): Namespace SPRINGBOARD, Code 0x8badf00d))
Run Code Online (Sandbox Code Playgroud)
将我的 Mac mini 操作系统更新到最新版本并将 XCode 更新到 11.1 后,收到错误消息。我正在使用 Jenkins 和 Sonar Qube 为 IOS 应用程序运行测试用例,构建正在完美进行,但测试用例没有得到执行。即使有时我会收到以下错误,然后工作失败。
完成请求崩溃报告。继续测试 - Jenkins
我什至将我的 XCode 降级到 10.3,但问题仍然存在。
Destination simulator is: platform=iOS Simulator,name=iPhone 6s Plus,OS=12.4
Excluded paths from coverage are: .*Tests.*
Creating directory sonar-reports/
Running tests
+ xcodebuild test -workspace Project.xcworkspace -scheme ProjectTests -configuration Debug -enableCodeCoverage YES -destination 'platform=iOS Simulator,name=iPhone 6s Plus,OS=12.4' -destination-timeout 60
2019-10-17 13:25:05.905 xcodebuild[5811:47314] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/XXUSERXX/Library/Developer/Xcode/DerivedData/Project-gcyoajxbeybhskdjmpfudvsghpth/Logs/Test/Test-ProjectTests-2019.10.17_13-20-39-+0530.xcresult/1_Test/Diagnostics/ProjectTests-3CAB9DB7-C238-45F1-984F-C3C061536B14/ProjectTests-674B5C61-8938-4243-BEE2-66691C2F4489/Session-ProjectTests-2019-10-17_132505-kBU2rX.log
2019-10-17 13:25:05.907 xcodebuild[5811:47306] [MT] IDETestOperationsObserverDebug: (340B3860-B575-4819-A2D6-C529266893C8) Beginning test session ProjectTests-340B3860-B575-4819-A2D6-C529266893C8 at 2019-10-17 13:25:05.906 with Xcode 10G8 on target <DVTiPhoneSimulator: 0x7f8b11877220> {
SimDevice: iPhone 6s Plus (CE03A4E0-9AD3-4BB4-8146-AE5C1288ABC3, iOS 12.4, Shutdown)
} (12.4 (16G73)) …Run Code Online (Sandbox Code Playgroud) + slather coverage --binary-basename Project --input-format profdata -i '.*Tests.*' --cobertura-xml --output-directory sonar-reports --workspace Project.xcworkspace --scheme ProjectTests Project.xcodeproj
ERROR: Unrecognised option '--workspace'
See: 'slather coverage --help'
+ returnValue=1
+ set +x
ERROR - Command 'slather coverage --binary-basename Project --input-format profdata -i .*Tests.* --cobertura-xml --output-directory sonar-reports --workspace Project.xcworkspace --scheme ProjectTests Project.xcodeproj'
failed with error code: 1
Run Code Online (Sandbox Code Playgroud)
我指定的参数如下。
workspaceFile=''; readParameter workspaceFile 'sonar.swift.workspace'
slatherCmd+=( --input-format profdata $excludedCommandLineFlags --cobertura-xml --output-directory sonar-reports)
if [[ ! -z "$workspaceFile" ]]; then
echo "$workspaceFile"
slatherCmd+=( --workspace $workspaceFile)
Run Code Online (Sandbox Code Playgroud)
在声纳 project.properties …
[31merror: could not complete submission of dSYM at /Users/XXUSERXX/Library/Developer/Xcode/DerivedData/ProjectName-flcoueeibbfifebpxptgzctdsqel/Build/Intermediates.noindex/ArchiveIntermediates/ProjectNameAlpha/BuildProductsPath/ProjectNameAlpha-iphoneos/ProjectName.app.dSYM:
Error Domain=com.crashlytics.mac.error-domain.process-dsym Code=4 "This version of OSX is not able to perform the necessary dSYM transformations."
UserInfo={NSLocalizedFailureReason=This version of OSX is not able to perform the necessary dSYM transformations.}
[0m Command PhaseScriptExecution failed with a nonzero exit code
** ARCHIVE FAILED **
Run Code Online (Sandbox Code Playgroud)
I'm getting the above error message when I upgraded my MAC Mini (Catalina) latest (16 GB RAM) and XCode to latest version. I'm working with Jenkins to run test …