Cannot install App using Xcode because of iOS restoring Backup

Last Thursday I needed to reset my phone and restore it afterwards from a Backup. I had the app I'm coding installed when I created the backup. The app wasn't installed by the backup but when I try to install it again using Xcode, I get the error that I can't install the app on the phone because it is already trying to get installed by the backup.

I don't have a paid developer account, so I can't delete the app ids manually.

Failed to install the app on the device.
Domain: com.apple.dt.CoreDeviceError
Code: 3002
User Info: {
    DVTErrorCreationDateKey = "2024-02-16 6:46:27\U202fPM +0000";
    IDERunOperationFailingWorker = IDEInstallCoreDeviceWorker;
    NSURL = "file:///Users/dominikbernroider/Library/Developer/Xcode/DerivedData/Nyx-hedbkmfaumbytidtyxtjsteojhhn/Build/Products/Debug-iphoneos/Nyx.app/";
}
--
A coordinated app install already exists for [de.demenik.Nyx/783A727F-F8D3-49AD-A36D-E395D7132635] with scope IXCoordinatorScopeGlobal (creator MobileBackup) but request by installcoordination_proxy (pid 9419) had scope requirement IXCoordinatorScopeRequirementRequired
Domain: IXErrorDomain
Code: 46
Failure Reason: A coordinated install exists but its process scoping differs from the request.
User Info: {
    FunctionName = "-[IXSClientConnection _remote_createAppInstallCoordinatorWithSeed:createIfNotExisting:requireMatchingIntent:scopeRequirement:completion:]";
    SourceFileLine = 627;
}
--

Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_isCoreDevice" = 1;
    "device_isWireless" = 1;
    "device_model" = "iPhone14,2";
    "device_osBuild" = "17.4 (21E5195e)";
    "device_platform" = "com.apple.platform.iphoneos";
    "dvt_coredevice_version" = "355.7.7";
    "dvt_mobiledevice_version" = "1643.40.14.100.2";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = arm64;
    "operation_duration_ms" = 225;
    "operation_errorCode" = 46;
    "operation_errorDomain" = "com.apple.dt.CoreDeviceError.3002.IXErrorDomain";
    "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.0 (Build 23A344)
Xcode 15.2 (22503) (Build 15C500b)
Timestamp: 2024-02-16T19:46:27+01:00

If the app is showing in springboard, delete it and that should let xcode reinstall it.

I cannot see the app installed anywhere on my phone, I just get the error message when I try to install it using Xcode.

facing the same issue.

download the app from APP Store, and uninstall it. then you can install it using Xcode

Cannot install App using Xcode because of iOS restoring Backup
 
 
Q