I am getting the same issue on Xcode 15.0.1 (22266) (Build 15A507) with iPhone 15 Pro Max (iOS 17.1 public build). No Cocoapods, only SPM. Installing straight to the physical device. The issue did arise from nowhere. Nothing changed, just re-building the app (which previously - just minutes ago worked fine). Reported via "Feedback for Xcode tool"
What I have tried:
Restarting Mac
Unpairing and Trusting again
Removing Derived Data
EDIT: Removing app from device and reinstalling helped.
Failed to install the app on the device.
Domain: com.apple.dt.CoreDeviceError
Code: 3002
User Info: {
DVTErrorCreationDateKey = "2023-10-27 18:48:36 +0000";
IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
NSURL = "file:///Users/lbaronas/Library/Developer/Xcode/DerivedData/meteo-lt-gxuxorcdugflksbgrlsvmfyaytxz/Build/Products/Debug-iphoneos/meteo-lt.app/";
}
--
Unable to Install “Meteo Lietuva”
Domain: IXUserPresentableErrorDomain
Code: 1
Failure Reason: Please try again later.
Recovery Suggestion: Could not hardlink copy /private/var/containers/Bundle/Application/21D0CAD7-392E-4ED9-B3EE-7AEDD73E7A7B/meteo-lt.app to /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.EGcwbh/extracted/Payload/meteo-lt.app with manifest /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.EGcwbh/extracted/com.apple.deltainstallcommands.com.liudasbar.meteo-lt
--
Could not hardlink copy /private/var/containers/Bundle/Application/21D0CAD7-392E-4ED9-B3EE-7AEDD73E7A7B/meteo-lt.app to /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.EGcwbh/extracted/Payload/meteo-lt.app with manifest /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.EGcwbh/extracted/com.apple.deltainstallcommands.com.liudasbar.meteo-lt
Domain: MIInstallerErrorDomain
Code: 8
User Info: {
FunctionName = "-[MIInstallableBundlePatch _applyDeltaPatchWithError:]";
LegacyErrorString = PackagePatchFailed;
SourceFileLine = 116;
}
--
Entity with mode 0100644 exists at file location in dest path /private/var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.EGcwbh/extracted/Payload/meteo-lt.app/Frameworks/MeteoLtUI.framework/_CodeSignature/CodeResources
Domain: MIInstallerDeltaErrorDomain
Code: 1
User Info: {
FunctionName = "hardlink_copy_hierarchy";
SourceFileLine = 981;
}
--
Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
"device_isCoreDevice" = 1;
"device_isWireless" = 1;
"device_model" = "iPhone16,2";
"device_osBuild" = "17.1 (21B80)";
"device_platform" = "com.apple.platform.iphoneos";
"dvt_coredevice_version" = "348.1";
"dvt_mobiledevice_version" = "1643.2.4.100.1";
"launchSession_schemeCommand" = Run;
"launchSession_state" = 1;
"launchSession_targetArch" = arm64;
"operation_duration_ms" = 6980;
"operation_errorCode" = 8;
"operation_errorDomain" = "com.apple.dt.CoreDeviceError.3002.IXUserPresentableErrorDomain.1.MIInstallerErrorDomain";
"operation_errorWorker" = IDEInstallCoreDeviceWorker;
"operation_name" = IDERunOperationWorkerGroup;
"param_debugger_attachToExtensions" = 0;
"param_debugger_attachToXPC" = 1;
"param_debugger_type" = 1;
"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" = 1;
"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" = 0;
"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.0";
"sdk_osVersion" = "17.0";
"sdk_variant" = iphoneos;
}
--
System Information
macOS Version 14.0 (Build 23A344)
Xcode 15.0.1 (22266) (Build 15A507)
Timestamp: 2023-10-27T21:48:36+03:00