XCode 15 can't run on iOS 17 devices.
Simulator 17.2 is installed.
Working perfectly in simulator
iOS 16 devices and below works.
Devices:
Sonoma 14.2 (M1 Pro 16")
XCode 15.1
iOS 17.1( iPhone 15 Pro)
I've tried many things and nothing works:
Restarting XCode
Restarting Mac
Restarting devices
Turning on Developer Mode
Re-trust Mac devices multiple times
Turning off VPN. I don't even use VPN (https://developer.apple.com/forums/thread/737875)
Tried XCode 15.2 beta too. Same issue.
Using multiple USB-C cable. Including thunderbolt cable.
Force every device to connect to 5GHz network and 2.4GHz network.
Turning off WiFi, Bluetooth, Mobile Data on Mac + iOS device. Re-trust the device.
this one is a real head scratcher because network is not related to the issue...
The issue I experienced:
Always the same error: Previous preparation error: An error occurred while communicating with a remote process.. The connection was invalidated.
Capacity in Device and Simulator window in XCode is unknown (should've been 64GB, 128GB, etc)
Surely I'm not the only one experiencing this? Super annoying and I have lost 9++ hours debugging this without any avail.
Error when connected via cable.
Waiting to reconnect to Philip's iPhone 15 Pro
Domain: com.apple.dt.deviceprep
Code: -10
Recovery Suggestion: Previous preparation error: An error occurred while communicating with a remote process.. The connection was invalidated.
User Info: {
DVTErrorCreationDateKey = "2024-01-05 20:48:35 +0000";
DVTRecoveryBlockKey = "<__NSMallocBlock__: 0x600004c1e850>";
NSLocalizedRecoveryOptions = (
Cancel
);
NSRecoveryAttempter = "<_DVTErrorRecoveryHandler: 0x6000059e8ce0>";
}
--
Error when connected via WiFi
System Information
macOS Version 14.2.1 (Build 23C71)
Xcode 15.1 (22502) (Build 15C65)
Timestamp: 2024-01-06T03:50:50+07:00
An error occurred while communicating with a remote process.
Domain: com.apple.dt.CoreDeviceError
Code: 3
Failure Reason: The connection was invalidated.
User Info: {
DVTErrorCreationDateKey = "2024-01-05 20:56:13 +0000";
IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
"com.apple.dt.DVTCoreDevice.operationName" = enablePersonalizedDDI;
}
--
The connection was invalidated.
Domain: com.apple.Mercury.error
Code: 1001
User Info: {
XPCConnectionDescription = "<SystemXPCPeerConnection 0x600000fe09c0> { <connection: 0x600003ed8000> { name = com.apple.CoreDevice.CoreDeviceService, listener = false, pid = 0, euid = 4294967295, egid = 4294967295, asid = 4294967295 } }";
}
--
Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
"device_isCoreDevice" = 1;
"device_isWireless" = 1;
"device_model" = "iPhone16,1";
"device_osBuild" = "17.2.1 (21C66)";
"device_platform" = "com.apple.platform.iphoneos";
"dvt_coredevice_version" = "355.7.6";
"dvt_mobiledevice_version" = "1643.60.2";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 34929;
"operation_errorCode" = 1001;
"operation_errorDomain" = "com.apple.dt.CoreDeviceError.3.com.apple.Mercury.error";
"operation_errorWorker" = IDEInstallCoreDeviceWorker;
"operation_name" = IDERunOperationWorkerGroup;
"param_debugger_attachToExtensions" = 0;
"param_debugger_attachToXPC" = 1;
"param_debugger_type" = 3;
"param_destination_isProxy" = 0;
"param_destination_platform" = "com.apple.platform.iphoneos";
"param_diag_MainThreadChecker_stopOnIssue" = 0;
"param_diag_MallocStackLogging_enableDuringAttach" = 0;
"param_diag_MallocStackLogging_enableForXPC" = 1;
"param_diag_allowLocationSimulation" = 1;
"param_diag_checker_tpc_enable" = 1;
"param_diag_gpu_frameCapture_enable" = 0;
"param_diag_gpu_shaderValidation_enable" = 0;
"param_diag_gpu_validation_enable" = 0;
"param_diag_memoryGraphOnResourceException" = 0;
"param_diag_queueDebugging_enable" = 1;
"param_diag_runtimeProfile_generate" = 0;
"param_diag_sanitizer_asan_enable" = 0;
"param_diag_sanitizer_tsan_enable" = 0;
"param_diag_sanitizer_tsan_stopOnIssue" = 0;
"param_diag_sanitizer_ubsan_stopOnIssue" = 0;
"param_diag_showNonLocalizedStrings" = 0;
"param_diag_viewDebugging_enabled" = 1;
"param_diag_viewDebugging_insertDylibOnLaunch" = 1;
"param_install_style" = 0;
"param_launcher_UID" = 2;
"param_launcher_allowDeviceSensorReplayData" = 0;
"param_launcher_kind" = 0;
"param_launcher_style" = 99;
"param_launcher_substyle" = 8192;
"param_runnable_appExtensionHostRunMode" = 0;
"param_runnable_productType" = "com.apple.product-type.application";
"param_structuredConsoleMode" = 1;
"param_testing_launchedForTesting" = 0;
"param_testing_suppressSimulatorApp" = 0;
"param_testing_usingCLI" = 0;
"sdk_canonicalName" = "iphoneos17.2";
"sdk_osVersion" = "17.2";
"sdk_variant" = iphoneos;
}
--
System Information
macOS Version 14.2.1 (Build 23C71)
Xcode 15.1 (22502) (Build 15C65)
Timestamp: 2024-01-06T03:56:13+07:00