在Vision Pro模拟器启动iOS应用报错:Simulator设备返回操作请求错误
解决Xcode 15 Beta 2 + Vision Pro模拟器启动iOS应用的Launch Transaction错误
问题场景
使用Xcode 15 Beta 2在Apple Vision Pro模拟器上测试iOS应用,编译成功但启动时抛出Launch Transaction error,错误详情如下:
Simulator device returned an error for the requested operation. Domain: FBSOpenApplicationServiceErrorDomain Code: 1 Failure Reason: The request was denied by service delegate (SFBSystemService) for reason: NotFound ("Launch Transaction error"). User Info: { BSErrorCodeDescription = RequestDenied; DVTErrorCreationDateKey = "2023-06-25 12:10:54 +0000"; FBSOpenApplicationRequestID = 0x2d7a; IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher; SimCallingSelector = "launchApplicationWithID:options:pid:error:"; } -- The request to open "myBundleIdentifier" failed. Domain: FBSOpenApplicationServiceErrorDomain Code: 1 Failure Reason: The request was denied by service delegate (SFBSystemService) for reason: NotFound ("Launch Transaction error"). User Info: { BSErrorCodeDescription = RequestDenied; FBSOpenApplicationRequestID = 0x2d7a; } -- The operation couldn’t be completed. Launch Transaction error Domain: FBSOpenApplicationErrorDomain Code: 4 Failure Reason: Launch Transaction error User Info: { BSErrorCodeDescription = NotFound; } -- Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : { "device_model" = "RealityDevice14,1"; "device_osBuild" = "1.0 (21N5165g)"; "device_platform" = "com.apple.platform.xrsimulator"; "dvt_coredevice_version" = "325.3"; "dvt_mobiledevice_version" = "1643.0.15.100.1"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = arm64; "operation_duration_ms" = 68891; "operation_errorCode" = 1; "operation_errorDomain" = FBSOpenApplicationServiceErrorDomain; "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.xrsimulator"; "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_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "iphonesimulator17.0"; "sdk_osVersion" = "17.0"; "sdk_variant" = iphonesimulator; } -- System Information macOS Version 13.4 (Build 22F66) Xcode 15.0 (22181.22) (Build 15A5161b) Timestamp: 2023-06-25T15:10:54+03:00
已尝试清理构建文件夹、重启Xcode及模拟器,问题未解决。
可行解决建议
- 重置Vision Pro模拟器:打开模拟器顶部菜单
Device→Erase All Content and Settings,等待模拟器重置完成后重新编译运行。Beta版本的模拟器常存在缓存或状态异常,重置能彻底清除残留问题。 - 检查应用的Info.plist配置:确认
CFBundleIdentifier是否唯一且格式正确,Beta环境下可能对Bundle ID的校验更严格;同时检查是否添加了Vision Pro相关的权限或配置项(如UIRequiredDeviceCapabilities),缺失必要配置可能导致启动失败。 - 切换模拟器架构:在Xcode的Scheme设置中,将
Run的Architecture从arm64切换为x86_64(针对Intel芯片Mac)或保持arm64但重新选择Vision Pro模拟器,部分Beta版本存在架构适配问题。 - 删除DerivedData文件夹:手动删除Xcode的DerivedData目录,路径为
~/Library/Developer/Xcode/DerivedData,彻底清除所有编译缓存后重新构建。 - 更新Xcode Beta版本:如果有Xcode 15后续Beta版本可用,升级到最新版本——Apple通常会在后续Beta中修复模拟器的启动类Bug。
- 通过命令行启动应用:打开终端,先用
xcrun simctl list获取模拟器UDID,再执行xcrun simctl launch <模拟器UDID> <BundleID>命令尝试启动应用,查看是否能获取更详细的错误信息,同时绕过Xcode的部分启动逻辑。 - 检查macOS系统更新:确保macOS Ventura已更新到最新补丁版本,系统层面的兼容性问题也可能导致模拟器启动失败。
内容的提问来源于stack exchange,提问作者user3673952
相关产品推荐
相关产品推荐

