Skip to content

Apple running on device error: Connection with the remote side was unexpectedly closed #2663

@setoelkahfi

Description

@setoelkahfi

I've been trying to run my Xcode project on my Apple Watch device and keep getting error. One of my searches mentioning codesign on the binary that is compiled in another toolchain. There's no mention about codesign in the documentation. Could that be the case?

I can also confirm that the app works on simulator but the component that is compiled with uniffi doesn't behave the same for the app built for TestFlight. Any clue? Could also be just a weak Wifi connection.

Connection with the remote side was unexpectedly closed : <dictionary: 0x1fc3ceb80> { count = 1, transaction: 0, voucher = 0x0, contents =
	"XPCErrorDescription" => <string: 0x1fc3ced00> { length = 22, contents = "Connection interrupted" }
}
Domain: IXRemoteErrorDomain
Code: 6
User Info: {
    DVTErrorCreationDateKey = "2025-09-21 18:49:46 +0000";
    IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
}
--
Failed to install the app on the device.
Domain: com.apple.dt.CoreDeviceError
Code: 3002
User Info: {
    NSURL = "file:///Users/setoelkahfi/Library/Developer/Xcode/DerivedData/NotWalletWatchApp-hghuubhunahkbsgrjcmolbandisd/Build/Products/Debug-watchos/NotWalletWatchApp%20Watch%20App.app";
}
--
Connection with the remote side was unexpectedly closed : <dictionary: 0x1fc3ceb80> { count = 1, transaction: 0, voucher = 0x0, contents =
	"XPCErrorDescription" => <string: 0x1fc3ced00> { length = 22, contents = "Connection interrupted" }
}
Domain: IXRemoteErrorDomain
Code: 6
Failure Reason: Unhandled error domain IXRemoteErrorDomain, code 6
User Info: {
    FunctionName = "_IXHandleConnectionForInstallMessagesFromRemoteService_block_invoke";
    SourceFileLine = 237;
}
--

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_identifier" = "00008006-000D10D21153002E";
    "device_isCoreDevice" = 1;
    "device_model" = "Watch5,2";
    "device_osBuild" = "10.6.1 (21U580)";
    "device_platform" = "com.apple.platform.watchos";
    "device_thinningType" = "Watch5,2";
    "dvt_coredevice_version" = "443.24";
    "dvt_coresimulator_version" = "1010.15";
    "dvt_mobiledevice_version" = "1818.1.2";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = "arm64_32";
    "operation_duration_ms" = 80546;
    "operation_errorCode" = 6;
    "operation_errorDomain" = IXRemoteErrorDomain;
    "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.watchos";
    "param_diag_113575882_enable" = 0;
    "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_guardMalloc_enable" = 0;
    "param_diag_memoryGraphOnResourceException" = 0;
    "param_diag_mtc_enable" = 1;
    "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_enable" = 0;
    "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
    "param_diag_showNonLocalizedStrings" = 0;
    "param_diag_viewDebugging_enabled" = 1;
    "param_diag_viewDebugging_insertDylibOnLaunch" = 1;
    "param_install_style" = 2;
    "param_launcher_UID" = 2;
    "param_launcher_allowDeviceSensorReplayData" = 0;
    "param_launcher_kind" = 0;
    "param_launcher_style" = 99;
    "param_launcher_substyle" = 2048;
    "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" = "watchos11.5";
    "sdk_osVersion" = "11.5";
    "sdk_variant" = watchos;
}
--


System Information

macOS Version 15.7 (Build 24G222)
Xcode 16.4 (23792) (Build 16F6)
Timestamp: 2025-09-21T20:49:46+02:00

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions