Hi,
Xcode14.0.0 BETA-4; iPadOS16
I am testing an iPad App using the Xcode14 BETA against a Detox Testing Framework.
All tests that require foregrounding the app are crashing consistently when attempting to foreground
the app with the command: /usr/bin/xcrun simctl launch 091E1685-48CC-4D6A-A049-896D552BBF55 com.apple.springboard
ChildProcessError: Command failed: /sr/bin/xcrun simctl launch 091E1685-48CC-4D6A-A049-896D552BBF55 com.apple.springboard
An error was encountered processing the command (domain=FBSOpenApplicationServiceErrorDomain, code=5) :
The request to open "com.apple.springboard" failed.
Unexpected error type.
Underlying error (domain=BSServiceConnectionErrorDomain, code=3) :
The operation couldn't be completed. XPC error received on message reply handler
XPC error received on message reply handler
"/usr/bin/xcrun simctl launch 091E1685-48CC-4D6A-A049-896D552BBF55 com.apple.sprinaboard'
(exited with error code 5)
When I tested against XCode14 BETA-4 the same tests consistently crash. Crash log:
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Incident Identifier: A2909BAA-E2AC-4E86-AF3D-EF071350665D
CrashReporter Key: 6A03D217-0E76-65A1-A52B-93E98DD1918F
Hardware Model: MacBookPro18,2
Process: SpringBoard [13334]
Path: /Applications/Xcode-14.0.0-Beta.4.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/CoreServices/SpringBoard.app/SpringBoard
Identifier: com.apple.springboard
Version: 1.0 (50)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd_sim [13330]
Coalition: com.apple.CoreSimulator.SimDevice.091E1685-48CC-4D6A-A049-896D552BBF55 [2660]
Responsible Process: SimulatorTrampoline [7907]
Date/Time: 2022-08-04 15:14:14.8419 +0100
Launch Time: 2022-08-04 15:13:35.5505 +0100
OS Version: macOS 12.5 (21G72)
Release Type: User
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x18040c84c __exceptionPreprocess + 160
1 libobjc.A.dylib 0x18005131c objc_exception_throw + 56
2 Foundation 0x180b09108 _userInfoForFileAndLine + 0
3 SpringBoardHome 0x1041deba8 -[SBHIconModel applicationIconForBundleIdentifier:] + 236
4 SpringBoard 0x1058b19c4 -[SBIconModel applicationIconForBundleIdentifier:] + 44
5 SpringBoard 0x105947094 -[SBMainWorkspace _handleOpenApplicationRequest:options:activationSettings:origin:withResult:] + 5776
6 BaseBoard 0x1832eca68 -[BSEventQueue _processNextEvent] + 208
7 BaseBoard 0x1832ecd4c -[BSEventQueue executeOrInsertEvents:atPosition:] + 464
8 FrontBoard 0x18a738cc0 -[FBWorkspaceEventQueue executeOrAppendEvent:] + 104
9 SpringBoard 0x1059496e0 -[SBMainWorkspace _handleTrustedOpenRequestForApplication:options:activationSettings:origin:withResult:] + 640
10 SpringBoard 0x1058ea918 -[SBMainWorkspace systemService:handleOpenApplicationRequest:withCompletion:] + 1004
11 FrontBoard 0x18a71bd48 -[FBSystemService _reallyActivateApplication:requestID:options:source:originalSource:isTrusted:sequenceNumber:cacheGUID:ourSequenceNumber:ourCacheGUID:withResult:] + 1076
I have submitted multiple Apple Crash Reports but wondered whether anyone else has come across this? This same command works fine in earlier releases of Xcode.