HomeiOS Developmentios - An software bundle was not discovered on the offered path....

ios – An software bundle was not discovered on the offered path. Present a sound path to the specified software bundle


I’m going through this error whereas making an attempt to run WatchOS app on simulator.
An software bundle was not discovered on the offered path. Present a sound path to the specified software bundle.

Error Element is as adopted

Simulator gadget returned an error for the requested operation.
Area: NSPOSIXErrorDomain
Code: 2
Failure Purpose: An software bundle was not discovered on the offered path.
Restoration Suggestion: Present a sound path to the specified software bundle.
Person Data: {
    DVTErrorCreationDateKey = "2024-01-08 13:24:30 +0000";
    IDERunOperationFailingWorker = "_IDEInstalliPhoneSimulatorWorker";
    SimCallingSelector = "installApplication:withOptions:error:";
    bundleURL = "file:///Customers/abdullahshahid_1/Library/Developer/Xcode/DerivedData/SIMOSA-hdnvefmzxxdlwqagsrxeojmlbnje/Construct/Merchandise/Debug-watchos/Jazzpercent20Worldpercent20Watchpercent20App.app";
}
--
Failed to put in the requested software
Area: NSPOSIXErrorDomain
Code: 2
Failure Purpose: An software bundle was not discovered on the offered path.
Restoration Suggestion: Present a sound path to the specified software bundle.
Person Data: {
    bundleURL = "file:///Customers/abdullahshahid_1/Library/Developer/Xcode/DerivedData/SIMOSA-hdnvefmzxxdlwqagsrxeojmlbnje/Construct/Merchandise/Debug-watchos/Jazzpercent20Worldpercent20Watchpercent20App.app";
}
--

Occasion Metadata: com.apple.dt.IDERunOperationWorkerFinished : {
    "device_model" = "Watch7,4";
    "device_osBuild" = "10.2 (21S364)";
    "device_platform" = "com.apple.platform.watchsimulator";
    "dvt_coredevice_version" = "355.7.6";
    "dvt_mobiledevice_version" = "1643.40.14.100.2";
    "launchSession_schemeCommand" = Run;
    "launchSession_state" = 1;
    "launchSession_targetArch" = "x86_64";
    "operation_duration_ms" = 28;
    "operation_errorCode" = 2;
    "operation_errorDomain" = NSPOSIXErrorDomain;
    "operation_errorWorker" = "_IDEInstalliPhoneSimulatorWorker";
    "operation_name" = IDERunOperationWorkerGroup;
    "param_debugger_attachToExtensions" = 0;
    "param_debugger_attachToXPC" = 1;
    "param_debugger_type" = 3;
    "param_destination_isProxy" = 1;
    "param_destination_platform" = "com.apple.platform.watchsimulator";
    "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" = 0;
    "param_launcher_substyle" = 16384;
    "param_runnable_appExtensionHostRunMode" = 0;
    "param_runnable_productType" = "com.apple.product-type.software";
    "param_structuredConsoleMode" = 1;
    "param_testing_launchedForTesting" = 0;
    "param_testing_suppressSimulatorApp" = 0;
    "param_testing_usingCLI" = 0;
    "sdk_canonicalName" = "iphonesimulator17.2";
    "sdk_osVersion" = "17.2";
    "sdk_variant" = iphonesimulator;
}
--


System Data

macOS Model 14.1 (Construct 23B74)
Xcode 15.1 (22502) (Construct 15C65)
Timestamp: 2024-01-08T18:24:30+05:00

The construct succeeds however the path at which construct is saved and the trail from which Xcode tries to run on Watch simulator are totally different.

Precise construct path: file:///Customers/abdullahshahid_1/Library/Developer/Xcode/DerivedData/SIMOSA-hdnvefmzxxdlwqagsrxeojmlbnje/Construct/Merchandise/Debug-watchsimulator/Jazzpercent20Worldpercent20Watchpercent20App.app

Xcode is path: file:///Customers/abdullahshahid_1/Library/Developer/Xcode/DerivedData/SIMOSA-hdnvefmzxxdlwqagsrxeojmlbnje/Construct/Merchandise/Debug-watchos/Jazzpercent20Worldpercent20Watchpercent20App.app

Distinction: Construct is saved in Debug-watchsimulator folder however Xcode tries to put in from Debug-watchos

I believe Xcode makes use of path from TARGET_TEMP_DIR however I do not know the best way to make it appropriate.

Do anybody know the best way to repair this?

I attempted to wash construct folder, clear derived knowledge folder, restart Macbook and restart xcode. However could not succeed.
The options I discovered on stack overflow are for React Native however nothing particularly for native iOS.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments