xcode 在Vision Pro模拟器上启动iOS应用程序错误:模拟器设备为请求的操作返回错误

omtl5h9j  于 2023-08-07  发布在  iOS
关注(0)|答案(2)|浏览(392)

我有一个iOS应用程序,我试图在XCode 15 Beta 2的Apple Vision Pro模拟器上测试。
应用程序构建成功,但当应用程序应在模拟器上启动时,我收到以下错误:

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 &模拟器似乎没有帮助。
任何关于我可以尝试的其他建议都很感激。

yh2wf1be

yh2wf1be1#

以下解决方案对我有效:
要解决这个问题,请选择Project -> Build Settings。搜索Mach-O类型,将类型更改为可执行文件。
参考:https://developer.apple.com/forums/thread/655691?login=true#:~:text=To%20solve%20the%20issue%20select

cqoc49vn

cqoc49vn2#

这在beta 4中就发生在我身上,解决方案在我的情况下真的很简单。您只需在运行应用程序之前手动打开Vision Pro模拟器。出于某种原因,如果您运行应用程序并且模拟器从那里打开,它会给您那个错误。

相关问题