Simulator error message

I get this error message with Simulator, but not with hardware:


Domain: IXErrorDomain

Code: 13

Failure Reason: Missing bundle ID.

User Info: {

    DVTErrorCreationDateKey = "2023-03-14 02:12:00 +0000";

    FunctionName = "+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:error:]";

    IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;

    SourceFileLine = 666;

}

Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {

    "device_model" = "iPhone15,2";

    "device_osBuild" = "16.2 (20C52)";

    "device_platform" = "com.apple.platform.iphonesimulator";

    "launchSession_schemeCommand" = Run;

    "launchSession_state" = 1;

    "launchSession_targetArch" = "x86_64";

    "operation_duration_ms" = 31;

    "operation_errorCode" = 13;

    "operation_errorDomain" = IXErrorDomain;

    "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher;

    "operation_name" = IDERunOperationWorkerGroup;

    "param_consoleMode" = 0;

    "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_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" = 0;

    "param_runnable_appExtensionHostRunMode" = 0;

    "param_runnable_productType" = "com.apple.product-type.application";

    "param_runnable_type" = 2;

    "param_testing_launchedForTesting" = 0;

    "param_testing_suppressSimulatorApp" = 0;

    "param_testing_usingCLI" = 0;

    "sdk_canonicalName" = "iphonesimulator16.2";

    "sdk_osVersion" = "16.2";

    "sdk_variant" = iphonesimulator;

}

What functional Bundle ID is it missing? Why is Simulator unhappy but my iPhone purrs?

Answered by vonlost in 747874022

It started working after I deleted the in-app purchase and added it back, but the fix may have been something along the way that got refreshed.

What Bundle ID can be missing in Simulator but not with hardware? What source file can "SourceFileLine = 666" refer to? It's not a line in my code.

More info:

Failed to get bundle ID from /Users/XXXXXXXXXX/Library/Developer/Xcode/DerivedData/XXXXXXXX-aqnbfdwgeliitxcttdjfmrzcxkda/Build/Products/Debug-iphonesimulator/XXXXXXXX.app

Accepted Answer

It started working after I deleted the in-app purchase and added it back, but the fix may have been something along the way that got refreshed.

Simulator error message
 
 
Q