I'm trying some sample with xcodebuild test
command for i(Pad)OS simulators, figuring out some strange behavior on simulator initiation.
00:00:38 --------------------------
00:00:38 --- Step: xcode_select ---
00:00:38 --------------------------
00:00:38 Setting Xcode version to /Applications/Xcode/Xcode_15.3_beta_3.app for all build steps
00:00:38 Init simulators ...
00:00:39 $DEVELOPER_DIR
00:00:39 /Applications/Xcode/Xcode_15.3_beta_3.app/Contents/Developer
...
00:05:26 ▸ 2024-02-14 15:13:41.319 xcodebuild[12903:1082819] [MT] IDELaunchReport: 4a4f919bfba30580:4a4f919bfba30580: Finished with error: Simulator device failed to install the application.
00:05:26 ▸ Domain: IXErrorDomain
00:05:26 ▸ Code: 2
00:05:26 ▸ Failure Reason: Failed to locate promise.
00:05:26 ▸ User Info: {
00:05:26 ▸ FunctionName = "+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:mayBeDeltaPackage:error:]";
00:05:26 ▸ IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;
00:05:26 ▸ SimCallingSelector = "installApplication:withOptions:error:";
00:05:26 ▸ SourceFileLine = 803;
00:05:26 ▸ }
00:05:26 ▸ --
00:05:26 ▸ Failed to set icon promise for com.example.myapp
00:05:26 ▸ Domain: IXErrorDomain
00:05:26 ▸ Code: 2
00:05:26 ▸ Failure Reason: Failed to create promise.
00:05:26 ▸ User Info: {
00:05:26 ▸ FunctionName = "+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:mayBeDeltaPackage:error:]";
00:05:26 ▸ SourceFileLine = 803;
00:05:26 ▸ }
00:05:26 ▸ --
00:05:26 ▸ Placeholder did not exist for UUID 2810E06A-4565-4966-BE98-AE4A6A96D916 when called for -[IXSClientConnection _remote_IXSPlaceholder:setIconPromiseUUID:completion:] by client CoreSimulatorBridge (pid 13037)
00:05:26 ▸ Domain: IXErrorDomain
00:05:26 ▸ Code: 3
00:05:26 ▸ Failure Reason: Failed to locate promise.
00:05:26 ▸ User Info: {
00:05:26 ▸ FunctionName = "-[IXSClientConnection _fetchPlaceholderForUUID:method:andRunWithPromise:error:]";
00:05:26 ▸ SourceFileLine = 1945;
00:05:26 ▸ }
00:05:26 ▸ --
00:05:26 ▸ 2024-02-14 15:13:41.323 xcodebuild[12903:1082819] [MT] IDELaunchReport: 4a4f919bfba30580:4a4f919bfba30580: com.apple.dt.IDERunOperationWorkerFinished {
00:05:26 ▸ "device_model" = "iPhone14,7";
00:05:26 ▸ "device_osBuild" = "16.4 (20E247)";
00:05:26 ▸ "device_platform" = "com.apple.platform.iphonesimulator";
00:05:26 ▸ "dvt_coredevice_version" = "355.23";
00:05:26 ▸ "dvt_mobiledevice_version" = "1643.100.52";
00:05:26 ▸ "launchSession_schemeCommand" = Test;
00:05:26 ▸ "launchSession_state" = 1;
00:05:26 ▸ "launchSession_targetArch" = arm64;
00:05:26 ▸ "operation_duration_ms" = 108400;
00:05:26 ▸ "operation_errorCode" = 2;
00:05:26 ▸ "operation_errorDomain" = IXErrorDomain;
00:05:26 ▸ "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher;
00:05:26 ▸ "operation_name" = IDERunOperationWorkerGroup;
00:05:26 ▸ "param_debugger_attachToExtensions" = 0;
00:05:26 ▸ "param_debugger_attachToXPC" = 0;
00:05:26 ▸ "param_debugger_type" = 1;
00:05:26 ▸ "param_destination_isProxy" = 0;
00:05:26 ▸ "param_destination_platform" = "com.apple.platform.iphonesimulator";
00:05:26 ▸ "param_diag_MainThreadChecker_stopOnIssue" = 0;
00:05:26 ▸ "param_diag_MallocStackLogging_enableDuringAttach" = 0;
00:05:26 ▸ "param_diag_MallocStackLogging_enableForXPC" = 0;
00:05:26 ▸ "param_diag_allowLocationSimulation" = 1;
00:05:26 ▸ "param_diag_checker_tpc_enable" = 0;
00:05:26 ▸ "param_diag_gpu_frameCapture_enable" = 3;
00:05:26 ▸ "param_diag_gpu_shaderValidation_enable" = 0;
00:05:26 ▸ "param_diag_gpu_validation_enable" = 1;
00:05:26 ▸ "param_diag_memoryGraphOnResourceException" = 0;
00:05:26 ▸ "param_diag_queueDebugging_enable" = 1;
00:05:26 ▸ "param_diag_runtimeProfile_generate" = 1;
00:05:26 ▸ "param_diag_sanitizer_asan_enable" = 0;
00:05:26 ▸ "param_diag_sanitizer_tsan_enable" = 0;
00:05:26 ▸ "param_diag_sanitizer_tsan_stopOnIssue" = 0;
00:05:26 ▸ "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
00:05:26 ▸ "param_diag_showNonLocalizedStrings" = 0;
00:05:26 ▸ "param_diag_viewDebugging_enabled" = 0;
00:05:26 ▸ "param_diag_viewDebugging_insertDylibOnLaunch" = 0;
00:05:26 ▸ "param_install_style" = 2;
00:05:26 ▸ "param_launcher_UID" = 2;
00:05:26 ▸ "param_launcher_allowDeviceSensorReplayData" = 0;
00:05:26 ▸ "param_launcher_kind" = 0;
00:05:26 ▸ "param_launcher_style" = 0;
00:05:26 ▸ "param_launcher_substyle" = 0;
00:05:26 ▸ "param_runnable_appExtensionHostRunMode" = 0;
00:05:26 ▸ "param_runnable_productType" = "com.apple.product-type.application";
00:05:26 ▸ "param_structuredConsoleMode" = 0;
00:05:26 ▸ "param_testing_launchedForTesting" = 1;
00:05:26 ▸ "param_testing_suppressSimulatorApp" = 1;
00:05:26 ▸ "param_testing_usingCLI" = 0;
00:05:26 ▸ "sdk_canonicalName" = "iphonesimulator17.4";
00:05:26 ▸ "sdk_osVersion" = "17.4";
00:05:26 ▸ "sdk_variant" = iphonesimulator;
00:05:26 ▸ }
When I choose iPad 10th Generation, iPhone 14, 14 plus, 14 pro or 14 pro max
devices listed on xcrun simctl list
it fails with the log above. (doesn't matter what OS version is selected)
Other than those sims it works (I checked it on iPhone SE 3rd gen, ipad mini 6g)
Are those devices excluded from Xcode 15.3 Beta 3? Then why are those on the xcrun simctl list
still?
FYI: myapp took -Wl
and -ld_classic
for OTHER_LDFLAGS
option in xcconfig after first app installation crash, still didn't make any changes.