Hallo zusammen, ich habe seit einiger Zeit ein Problem, dass ich eine App 'Warenwirtschaft' aus Xcode heraus nicht mehr im Simulator oder auf meinem IPad starten kann. Ein Compilieren und Verteilen über TestFlight funktioniert weiterhin ohne Probleme. Leider klappt das Debugger nun nicht mehr. Anbei die Fehlermeldung von Xcode. Ich hoffe ihr könnt mir helfen. Grüsse Mark
Cannot launch simulated executable: no file found at /Applications/Warenwirtschaft.app Domain: IDEFoundationErrorDomain Code: 1 User Info: { DVTErrorCreationDateKey = "2025-02-05 10:10:06 +0000"; IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher; }
Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : { "device_identifier" = "D572897F-2ECB-4109-9DFC-C7D0FB145C1C"; "device_model" = "iPad16,6"; "device_osBuild" = "18.2 (22C150)"; "device_platform" = "com.apple.platform.iphonesimulator"; "device_thinningType" = "iPad16,6-A"; "dvt_coredevice_version" = "397.28"; "dvt_coresimulator_version" = "993.7"; "dvt_mobiledevice_version" = "1759.81.1"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = arm64; "operation_duration_ms" = 562; "operation_errorCode" = 1; "operation_errorDomain" = IDEFoundationErrorDomain; "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher; "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.iphonesimulator"; "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" = 0; "param_launcher_substyle" = 0; "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" = "iphonesimulator18.2"; "sdk_osVersion" = "18.2"; "sdk_variant" = iphonesimulator; }
System Information
macOS Version 15.3 (Build 24D60) Xcode 16.2 (23507) (Build 16C5032a) Timestamp: 2025-02-05T11:10:06+01:00
The error message "Cannot launch simulated executable: no file found at /Applications/Warenwirtschaft.app" indicates that the Xcode cannot locate the simulated executable for your "Warenwirtschaft" app at the specified path. Here are some steps you can take to resolve this issue:
- Clean and Build the Project:
- Go to "Product" menu in Xcode.
- Select "Clean Build Folder" to remove any temporary build files.
- Then, build your project again by selecting "Build" or "Build for Running".
- Check the Build Settings:
- Ensure that your project is set to build for the simulator.
- Go to the "Target" settings of your project.
- Under "General" tab, verify that the "Deployment Target" is set to a compatible iOS version for the simulator.
- Also, check the "Build Configuration" is set to "Debug" for running on the simulator.
- Verify the Existence of the App:
- Navigate to the build folder in Finder to see if the app bundle is generated.
- The default build folder path is: ~/Library/Developer/Xcode/DerivedData/<YourProjectName>/Build/Products/Debug-iphonesimulator/
- Look for "Warenwirtschaft.app" in this folder. If it doesn't exist, it means the build failed.
- Check for Derived Data Issues:
- Delete the Derived Data folder and let Xcode rebuild it.
- The Derived Data folder path is: ~/Library/Developer/Xcode/DerivedData/
- Quit Xcode, delete the folder, and then reopen Xcode and build your project again.
- Simulator Architecture:
- Ensure that your project is set to build for the correct simulator architecture.
- Go to the "Target" settings > "Build Settings" > "Valid Architectures".
- For simulator, it should include "arm64e" or "arm64" depending on the simulator version.
- Check for Spaces or Special Characters in the Project Path:
- Sometimes, spaces or special characters in the project path can cause issues.
- Try moving your project to a path without spaces or special characters.
- Restart Mac:
- A simple restart can sometimes resolve unexpected issues.
If none of these steps resolve the problem, there might be a more complex issue with your project or Xcode setup. In that case, you might want to consider creating a new project and gradually migrating your code to see if the issue is specific to your project settings or code.
Albert Pascual Worldwide Developer Relations.