Posts

Post not yet marked as solved
10 Replies
Hi When I try to run to a device, I get the following error (see below) from Xcode.... However, I can build to the device. But then when I run the app it crashes shortly after launch (it does render the underwater scene, but before the fish and sea life are rendered it crashes). Thanks for any advice. Details Unable to launch com.example.apple-samplecode.Underwater Domain: com.apple.platform.iphoneos Code: -12 User Info: {     IDERunOperationFailingWorker = IDELaunchiPhoneLauncher; } -- Request to launch com.example.apple-samplecode.Underwater failed. Domain: com.apple.dt.deviceprocesscontrolservice Code: 2 Failure Reason: The operation couldn’t be completed. Application info provider (FBSApplicationLibrary) returned nil for "com.example.apple-samplecode.Underwater" : Failed to launch process with bundle identifier 'com.example.apple-samplecode.Underwater'. -- The operation couldn’t be completed. Application info provider (FBSApplicationLibrary) returned nil for "com.example.apple-samplecode.Underwater" Domain: FBSOpenApplicationErrorDomain Code: 4 Failure Reason: Application info provider (FBSApplicationLibrary) returned nil for "com.example.apple-samplecode.Underwater" User Info: {     BSErrorCodeDescription = NotFound; } -- Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {     "device_model" = "iPad8,9";     "device_osBuild" = "15.0 (19A5281h)";     "device_platform" = "com.apple.platform.iphoneos";     "launchSession_schemeCommand" = Run;     "launchSession_state" = 1;     "launchSession_targetArch" = arm64;     "operation_duration_ms" = 11476;     "operation_errorCode" = "-12";     "operation_errorDomain" = "com.apple.platform.iphoneos";     "operation_errorWorker" = IDELaunchiPhoneLauncher;     "operation_name" = IDEiPhoneRunOperationWorkerGroup;     "param_consoleMode" = 0;     "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_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" = 0;     "param_runnable_appExtensionHostRunMode" = 0;     "param_runnable_productType" = "com.apple.product-type.application";     "param_runnable_swiftVersion" = "5.5";     "param_runnable_type" = 2;     "param_testing_launchedForTesting" = 0;     "param_testing_suppressSimulatorApp" = 0;     "param_testing_usingCLI" = 0;     "sdk_canonicalName" = "iphoneos15.0";     "sdk_osVersion" = "15.0";     "sdk_variant" = iphoneos; } -- System Information macOS Version 11.4 (Build 20F71) Xcode 13.0 (19161.15) (Build 13A5154h) Timestamp: 2021-06-27T15:03:13-05:00
Post not yet marked as solved
10 Replies
The errors happen when I build to a simulator. Should I build to a device? The errors seem to be related to undeclared objects or vars