Post

Replies

Boosts

Views

Activity

Reply to XCode 15 can't run on iOS 17 devices. Previous preparation error: An error occurred while communicating with a remote process.. The connection was invalidated.
After 4 days of debugging console and a bit of research, I've fixed this issue. I believe the issue is related to my Mac / XCode because the same issue doesn't happen on fresh installed Mac. The issue is XCode and iPhone couldn't connect because (I think) Developer Disk Image are corrupted / not found. Therefore they can't make a connection. Solution: Fix corrupted / missing Developer Disk Image So what I did: Rename /Library/Developer to something else. Probably like /Library/Developers. Make sure it's on the root path, not /Users/[mac_username]/Library/Developer folder as both folder have DeveloperDiskImage folder inside. Restart XCode. /Library/Developer will populate again If it doesn't work: Also rename /Users/[mac_username]/Library/Developer folder Unpair your phone and re-pair it again Try restarting everything (Mac, Xcode, iPhone) just to be sure. This is so hard to found because I've reinstalled XCode 5 times, but for some reason /Library/Developer are not invalidated from scratch. Hope it helps.
Jan ’24
Reply to XCode 15 can't run on iOS 17 devices. Previous preparation error: An error occurred while communicating with a remote process.. The connection was invalidated.
Loop log continuation default 13:50:03.995565+0700 Xcode DVTDeviceOperation: Ended enablePersonalizedDDI: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_duration_ms" = 10; "operation_errorCode" = 1001; "operation_errorDomain" = "com.apple.dt.CoreDeviceError.3.com.apple.Mercury.error"; "operation_name" = enablePersonalizedDDI; } default 13:50:03.995822+0700 Xcode DVTDeviceOperation: Error reported by 00008130-0006159A246B8D3A for enablePersonalizedDDI: An error occurred while communicating with a remote process. Domain: com.apple.dt.CoreDeviceError Code: 3 Failure Reason: The connection was invalidated. User Info: { "com.apple.dt.DVTCoreDevice.operationName" = enablePersonalizedDDI; } -- The connection was invalidated. Domain: com.apple.Mercury.error Code: 1001 User Info: { XPCConnectionDescription = "<SystemXPCPeerConnection 0x6000019af2a0> { <connection: 0x6000028a44b0> { name = com.apple.CoreDevice.CoreDeviceService, listener = false, pid = 0, euid = 4294967295, egid = 4294967295, asid = 4294967295 } }"; } -- default 13:50:03.995822+0700 Xcode DVTDeviceOperation: Error reported by 00008130-0006159A246B8D3A for enablePersonalizedDDI: An error occurred while communicating with a remote process. Domain: com.apple.dt.CoreDeviceError Code: 3 Failure Reason: The connection was invalidated. User Info: { "com.apple.dt.DVTCoreDevice.operationName" = enablePersonalizedDDI; } -- The connection was invalidated. Domain: com.apple.Mercury.error Code: 1001 User Info: { XPCConnectionDescription = "<SystemXPCPeerConnection 0x6000019af2a0> { <connection: 0x6000028a44b0> { name = com.apple.CoreDevice.CoreDeviceService, listener = false, pid = 0, euid = 4294967295, egid = 4294967295, asid = 4294967295 } }"; } -- default 13:50:03.996356+0700 Xcode DVTDeviceOperation: 00008130-0006159A246B8D3A: implicitly preparing eligible device because it has an outstanding preparation error: Error Domain=com.apple.dt.deviceprep Code=-10 "Preparing Philip's iPhone 15 Pro" UserInfo={NSLocalizedRecoverySuggestion=Xcode will continue when the operation completes., NSLocalizedDescription=Preparing Philip's iPhone 15 Pro} default 13:50:03.996356+0700 Xcode DVTDeviceOperation: 00008130-0006159A246B8D3A: implicitly preparing eligible device because it has an outstanding preparation error: Error Domain=com.apple.dt.deviceprep Code=-10 "Preparing Philip's iPhone 15 Pro" UserInfo={NSLocalizedRecoverySuggestion=Xcode will continue when the operation completes., NSLocalizedDescription=Preparing Philip's iPhone 15 Pro} default 13:50:03.996980+0700 Xcode DVTDeviceOperation: Started throttledReconnect: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_name" = throttledReconnect; } default 13:50:03.996980+0700 Xcode DVTDeviceOperation: Started throttledReconnect: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_name" = throttledReconnect; } info 13:50:03.998778+0700 Xcode Dropping "com.apple.dt.DVTDeviceOperation" as it isn't used in any transform (not in the config or budgeted?) info 13:50:03.998778+0700 Xcode Dropping "com.apple.dt.DVTDeviceOperation" as it isn't used in any transform (not in the config or budgeted?) default 13:50:03.999310+0700 Xcode DVTDeviceOperation: 00008130-0006159A246B8D3A: implicitly preparing eligible device because it has an outstanding preparation error: Error Domain=com.apple.dt.CoreDeviceError Code=3 "An error occurred while communicating with a remote process." UserInfo={NSLocalizedFailureReason=The connection was invalidated., NSUnderlyingError=0x60000bc84bd0 {Error Domain=com.apple.Mercury.error Code=1001 "The connection was invalidated." UserInfo={XPCConnectionDescription=<SystemXPCPeerConnection 0x6000019af2a0> { <connection: 0x6000028a44b0> { name = com.apple.CoreDevice.CoreDeviceService, listener = false, pid = 0, euid = 4294967295, egid = 4294967295, asid = 4294967295 } }, NSLocalizedDescription=The connection was invalidated.}}, DVTIssueReportingFunctionalityKey=1, com.apple.dt.DVTCoreDevice.operationName=enablePersonalizedDDI, NSLocalizedDescription=An error occurred while communicating with a remote process.} default 13:50:03.999310+0700 Xcode DVTDeviceOperation: 00008130-0006159A246B8D3A: implicitly preparing eligible device because it has an outstanding preparation error: Error Domain=com.apple.dt.CoreDeviceError Code=3 "An error occurred while communicating with a remote process." UserInfo={NSLocalizedFailureReason=The connection was invalidated., NSUnderlyingError=0x60000bc84bd0 {Error Domain=com.apple.Mercury.error Code=1001 "The connection was invalidated." UserInfo={XPCConnectionDescription=<SystemXPCPeerConnection 0x6000019af2a0> { <connection: 0x6000028a44b0> { name = com.apple.CoreDevice.CoreDeviceService, listener = false, pid = 0, euid = 4294967295, egid = 4294967295, asid = 4294967295 } }, NSLocalizedDescription=The connection was invalidated.}}, DVTIssueReportingFunctionalityKey=1, com.apple.dt.DVTCoreDevice.operationName=enablePersonalizedDDI, NSLocalizedDescription=An error occurred while communicating with a remote process.} default 13:50:06.191396+0700 Xcode DVTDeviceOperation: Ended throttledReconnect: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_duration_ms" = 2192; "operation_name" = throttledReconnect; }
Jan ’24
Reply to XCode 15 can't run on iOS 17 devices. Previous preparation error: An error occurred while communicating with a remote process.. The connection was invalidated.
Update: Tried on a fresh install M1 Air and XCode 15. It connects to iOS 17 devices without issue. Would appreciate any help because I don't want to reset my work laptop just to be able to debug on device. Some log from console from fresh pairing. Seems like it stuck in a loop default 13:50:02.877727+0700 Xcode DVTDeviceOperation: 00008130-0006159A246B8D3A: implicitly preparing eligible device because a use assertion hasn't been fulfilled default 13:50:02.878246+0700 Xcode DVTDeviceOperation: Started connect: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_name" = connect; } default 13:50:02.886182+0700 Xcode DVTDeviceOperation: 00008130-0006159A246B8D3A: implicitly preparing eligible device because a use assertion hasn't been fulfilled default 13:50:02.886759+0700 Xcode DVTDeviceOperation: Ended pairAndConnect: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_duration_ms" = 38431; "operation_name" = pairAndConnect; } info 13:50:02.913494+0700 Xcode Dropping "com.apple.dt.DVTDeviceOperation" as it isn't used in any transform (not in the config or budgeted?) default 13:50:03.984333+0700 Xcode DVTDeviceOperation: Ended connect: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_duration_ms" = 1105; "operation_name" = connect; } default 13:50:03.984333+0700 Xcode DVTDeviceOperation: Ended connect: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_duration_ms" = 1105; "operation_name" = connect; } default 13:50:03.984417+0700 Xcode DVTDeviceOperation: Started observeDarwinNotifications: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_name" = observeDarwinNotifications; } default 13:50:03.984417+0700 Xcode DVTDeviceOperation: Started observeDarwinNotifications: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_name" = observeDarwinNotifications; } default 13:50:03.984819+0700 Xcode DVTDeviceOperation: Ended observeDarwinNotifications: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_duration_ms" = 0; "operation_name" = observeDarwinNotifications; } default 13:50:03.984819+0700 Xcode DVTDeviceOperation: Ended observeDarwinNotifications: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_duration_ms" = 0; "operation_name" = observeDarwinNotifications; } default 13:50:03.984910+0700 Xcode DVTDeviceOperation: Started enablePersonalizedDDI: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_name" = enablePersonalizedDDI; } default 13:50:03.984910+0700 Xcode DVTDeviceOperation: Started enablePersonalizedDDI: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_name" = enablePersonalizedDDI; } info 13:50:03.985394+0700 Xcode Dropping "com.apple.dt.DVTDeviceOperation" as it isn't used in any transform (not in the config or budgeted?) info 13:50:03.985394+0700 Xcode Dropping "com.apple.dt.DVTDeviceOperation" as it isn't used in any transform (not in the config or budgeted?) info 13:50:03.986198+0700 Xcode Dropping "com.apple.dt.DVTDeviceOperation" as it isn't used in any transform (not in the config or budgeted?) info 13:50:03.986198+0700 Xcode Dropping "com.apple.dt.DVTDeviceOperation" as it isn't used in any transform (not in the config or budgeted?) default 13:50:03.995565+0700 Xcode DVTDeviceOperation: Ended enablePersonalizedDDI: { "device_identifier" = "00008130-0006159A246B8D3A"; "device_isCoreDevice" = 1; "device_model" = "iPhone16,1"; "device_osBuild" = "17.2.1 (21C66)"; "device_platform" = "com.apple.platform.iphoneos"; "device_thinningType" = "iPhone16,1"; "dvt_coredevice_version" = "355.7.7"; "dvt_mobiledevice_version" = "1643.60.2"; "operation_duration_ms" = 10; "operation_errorCode" = 1001; "operation_errorDomain" = "com.apple.dt.CoreDeviceError.3.com.apple.Mercury.error"; "operation_name" = enablePersonalizedDDI; }
Jan ’24