Post

Replies

Boosts

Views

Activity

Xcode16.x+ios18.x simulator crashing and tests are failing
We are seeing crashes after upgrading to xcode16.x ( tested with 16.1 , 16.2 and 16.3) and ios 18.1, 18.2, 18.3.1 and 18.4 . when tests are running simulator is crashing with mulitple reasons. CoreSimulatorService[85444] <Error>: Failed to get a device identity for simulator device BFAD684E-A48A-4170-80E1-8FBC04744E79, error: Error Domain=com.apple.MobileActivation.ErrorDomain Code=-1 "Failed to create BAA info." UserInfo={NSLocalizedDescription=Failed to create BAA info., NSUnderlyingError=0x600002072a60 {Error Domain=com.apple.MobileActivation.ErrorDomain Code=-1 "Failed to query baa info." UserInfo={NSLocalizedDescription=Failed to query baa info., NSUnderlyingError=0x600002073390 {Error Domain=com.apple.MobileActivation.ErrorDomain Code=-1 "Failed to load cryptex1 manifest." UserInfo={NSLocalizedDescription=Failed to load cryptex1 manifest., NSUnderlyingError=0x600002071110 {Error Domain=com.apple.MobileActivation.ErrorDomain Code=-1 "Failed to load firmware data from /System/Volumes/iSCPreboot/F743DA4B-92E7-4E92-ACD2-40775DF4B5A2/cryptex1/current/apticket.j274ap.1A256C21D3001E.im4m." UserInfo=0x600003b47bc0 (not displayed)}}}}}} sometimes crashing with [02:47:24]: ▸ Tests_iOS-Runner encountered an error (Failed to prepare device 'Clone 2 of iPhone 16 Pro' for impending launch. (Underlying Error: Unable to boot the Simulator. launchd failed to respond. (Underlying Error: Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding))) sometimes with [18:44:47]: ▸ 2025-05-08 18:44:47.019 xcodebuild[75752:6252304] [MT] IDELaunchReport: a616bd895a3ee240:a616bd895a3eec00:Install Actions Finished with error: Unable to boot the Simulator. [18:44:47]: ▸ Domain: NSPOSIXErrorDomain [18:44:47]: ▸ Code: 60 [18:44:47]: ▸ Failure Reason: launchd failed to respond. [18:44:47]: ▸ User Info: { [18:44:47]: ▸ Session = "com.apple.CoreSimulator.SimDevice.BD4A5DAB-3317-44D1-AFD1-C6EED090BB20"; [18:44:47]: ▸ } [18:44:47]: ▸ -- [18:44:47]: ▸ Failed to start launchd_sim: could not bind to session, launchd_sim may have crashed or quit responding [18:44:47]: ▸ Domain: com.apple.SimLaunchHostService.RequestError [18:44:47]: ▸ Code: 4 [18:44:47]: ▸ -- [18:44:47]: ▸ 2025-05-08 18:44:47.019 xcodebuild[75752:6252304] [MT] IDELaunchReport: a616bd895a3ee240:a616bd895a3eec00:Install Actions com.apple.dt.IDERunOperationWorkerFinished { [18:44:47]: ▸ "operation_duration_ms" = 55114; [18:44:47]: ▸ "operation_errorCode" = 60; [18:44:47]: ▸ "operation_errorDomain" = NSPOSIXErrorDomain; [18:44:47]: ▸ "operation_name" = "_IDEInstalliPhoneSimulatorWorker"; [18:44:47]: ▸ } sometimes crashing with Run test suite Tests2 encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted. (Underlying Error: Test crashed with signal term before starting test execution.))
0
2
449
May ’25
when generating coverage ,seeing issue "Invalid instrumentation profile data (bad magic)"
We are using slather to generate the coverage report. We do see sometimes we are getting issues when generating the coverage and it fails with below error. Based on the error , i see its comes from LLVM Failed to load coverage: Invalid instrumentation profile data (bad magic) error: Could not load coverage information /Users/**/.rvm/gems/ruby-2.7.0/gems/json-2.2.0/lib/json/common.rb:156: warning: Using the last argument as keyword parameters is deprecated /Users//.rvm/gems/ruby-2.7.0/gems/json-2.2.0/lib/json/common.rb:156:in `parse': 785: unexpected token at '' (JSON::ParserError) from /Users//.rvm/gems/ruby-2.7.0/gems/json-2.2.0/lib/json/common.rb:156:in `parse' from /Users//.rvm/gems/ruby-2.7.0/gems/slather-2.4.7/lib/slather/project.rb:135:in `pathnames_per_binary' from /Users//.rvm/gems/ruby-2.7.0/gems/slather-2.4.7/lib/slather/project.rb:124:in `block in profdata_coverage_files' from /Users//.rvm/gems/ruby-2.7.0/gems/slather-2.4.7/lib/slather/project.rb:123:in `each' from /Users//.rvm/gems/ruby-2.7.0/gems/slather-2.4.7/lib/slather/project.rb:123:in `profdata_coverage_files' from /Users//.rvm/gems/ruby-2.7.0/gems/slather-2.4.7/lib/slather/project.rb:98:in `coverage_files' from /Users//.rvm/gems/ruby-2.7.0/gems/slather-2.4.7/lib/slather/coverage_service/cobertura_xml_output.rb:18:in `post' from /Users//.rvm/gems/ruby-2.7.0/gems/slather-2.4.7/lib/slather/command/coverage_command.rb:97:in `post' from /Users//.rvm/gems/ruby-2.7.0/gems/slather-2.4.7/lib/slather/command/coverage_command.rb:59:in `execute' from /Users//.rvm/gems/ruby-2.7.0/gems/clamp-1.3.1/lib/clamp/command.rb:66:in `run' from /Users//.rvm/gems/ruby-2.7.0/gems/clamp-1.3.1/lib/clamp/subcommand/execution.rb:18:in `execute' from /Users//.rvm/gems/ruby-2.7.0/gems/clamp-1.3.1/lib/clamp/command.rb:66:in `run' from /Users//.rvm/gems/ruby-2.7.0/gems/clamp-1.3.1/lib/clamp/command.rb:140:in `run' from /Users//.rvm/gems/ruby-2.7.0/gems/slather-2.4.7/bin/slather:17:in `<top (required)>' from /Users//.rvm/gems/ruby-2.7.0/bin/slather:23:in `load' from /Users//.rvm/gems/ruby-2.7.0/bin/slather:23:in `<main>' from /Users//.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in `eval' from /Users/**/.rvm/gems/ruby-2.7.0/bin/ruby_executable_hooks:24:in `<main>' Has anyone seen that issue?
0
0
1k
Oct ’20
why xcodebuild command fails using ssh but works using vnc->terminalApp
We are seeing issue when try to run the xcodebuild command using ssh, it fails but when running the same using VNC and open terminal app, it works. Anyone seeing the same issue. Any workaround and help is appreciated. Codesign and simulator all works well but fails when run the same commend using ssh. Error: found: Select a different signing certificate for CODESIGNIDENTITY, a team that matches your selected certificate, or switch to automatic provisioning.
0
0
520
Sep ’20
xcode12 - no simulator found error
Seeing issue with xcode12 when running with older xcode like 11.7 or 11.6. Xcode12 wiping out the older simulators and when running xcodebuild,it throw no simulator found error. watchOS 6.2 (6.2.1 - 17T531) - com.apple.CoreSimulator.SimRuntime.watchOS-6-2 (unavailable, failed to open liblaunchsim.dylib) ==> not available: Error Domain=com.apple.CoreSimulator.SimError Code=401 "The watchOS 6.2 simulator runtime is not available." UserInfo={NSLocalizedDescription=The watchOS 6.2 simulator runtime is not available., NSUnderlyingError=0x7fe6676e07a0 {Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedFailureReason=XPC error talking to SimLaunchHostService: <error: 0x7fff979c39a0> { count = 1, transaction: 0, voucher = 0x0, contents = "XPCErrorDescription" => <string: 0x7fff979c3b08> { length = 18, contents = "Connection invalid" } }}}, NSLocalizedRecoverySuggestion=Unable to open liblaunchsim.dylib. Try reinstalling Xcode or the simulator runtime., NSLocalizedFailureReason=failed to open liblaunchsim.dylib}, tvOS 13.4 (13.4 - 17L255) - com.apple.CoreSimulator.SimRuntime.tvOS-13-4 (unavailable, failed to open liblaunchsim.dylib) ==> not available: Error Domain=com.apple.CoreSimulator.SimError Code=401 "The tvOS 13.4 simulator runtime is not available." UserInfo={NSLocalizedDescription=The tvOS 13.4 simulator runtime is not available., NSUnderlyingError=0x7fe6a7704320 {Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedFailureReason=XPC error talking to SimLaunchHostService: <error: 0x7fff979c39a0> { count = 1, transaction: 0, voucher = 0x0, contents = "XPCErrorDescription" => <string: 0x7fff979c3b08> { length = 18, contents = "Connection invalid" } }}}, NSLocalizedRecoverySuggestion=Unable to open liblaunchsim.dylib. Try reinstalling Xcode or the simulator runtime., NSLocalizedFailureReason=failed to open liblaunchsim.dylib}, iOS 13.5 (13.5 - 17F61) - com.apple.CoreSimulator.SimRuntime.iOS-13-5 (unavailable, failed to open liblaunchsim.dylib) ==> not available: Error Domain=com.apple.CoreSimulator.SimError Code=401 "The iOS 13.5 simulator runtime is not available." UserInfo={NSLocalizedDescription=The iOS 13.5 simulator runtime is not available., NSUnderlyingError=0x7fe6a77076a0 {Error Domain=NSPOSIXErrorDomain Code=53 "Software caused connection abort" UserInfo={NSLocalizedFailureReason=XPC error talking to SimLaunchHostService: <error: 0x7fff979c39a0> { count = 1, transaction: 0, voucher = 0x0, contents = "XPCErrorDescription" => <string: 0x7fff979c3b08> { length = 18, contents = "Connection invalid" } }}}, NSLocalizedRecoverySuggestion=Unable to open liblaunchsim.dylib. Try reinstalling Xcode or the simulator runtime., NSLocalizedFailureReason=failed to open liblaunch_sim.dylib}, ] when matching for <IBCocoaTouchPlatformToolDescription: 0x7fe667469930> System content for IBCocoaTouchFramework-ThirteenAndLater <IBScaleFactorDeviceTypeDescription: 0x7fe66745b410> scaleFactor=2x, idiom=<IBIPhoneIdiom: 0x7fe667486830> runtime=<IBCocoaTouchTargetRuntime: 0x7fe697635f10> /* com.apple.actool.compilation-results */
0
0
596
Sep ’20