Launching an iOS app on Vision Pro Simulator Error: Simulator device returned an error for the requested operation

huangapple go评论50阅读模式
英文:

Launching an iOS app on Vision Pro Simulator Error: Simulator device returned an error for the requested operation

问题

我有一个 iOS 应用程序,我正在尝试在 XCode 15 Beta 2 的 Apple Vision Pro 模拟器上测试。

应用程序构建成功,但当应用程序应该在模拟器上启动时,我收到以下错误:

模拟器设备针对所请求的操作返回了一个错误。
域: FBSOpenApplicationServiceErrorDomain
代码: 1
失败原因: 请求被服务委托 (SFBSystemService) 拒绝,原因是:未找到(“启动事务错误”)。
用户信息: {
    BSErrorCodeDescription = RequestDenied;
    DVTErrorCreationDateKey = "2023-06-25 12:10:54 +0000";
    FBSOpenApplicationRequestID = 0x2d7a;
    IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;
    SimCallingSelector = "launchApplicationWithID:options:pid:error:";
}
--
打开“myBundleIdentifier”的请求失败。
域: FBSOpenApplicationServiceErrorDomain
代码: 1
失败原因: 请求被服务委托 (SFBSystemService) 拒绝,原因是:未找到(“启动事务错误”)。
用户信息: {
    BSErrorCodeDescription = RequestDenied;
    FBSOpenApplicationRequestID = 0x2d7a;
}
--
操作无法完成。启动事务错误
域: FBSOpenApplicationErrorDomain
代码: 4
失败原因: 启动事务错误
用户信息: {
    BSErrorCodeDescription = NotFound;
}
--

事件元数据: 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;
}
--

系统信息

macOS 版本 13.4(版本 22F66)
Xcode 15.0(版本 15A5161b)
时间戳:2023-06-25T15:10:54+03:00

清理构建文件夹并重新启动 XCode 和模拟器似乎并没有帮助。

欢迎提出我还可以尝试什么其他建议。

<details>
<summary>英文:</summary>

I have a iOS app which I&#39;m trying to test on a Apple Vision Pro Simulator from XCode 15 Beta 2.

The app builds successfully, but I&#39;m getting the following error when the app should launch on the simulator:

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


Cleaning the build folder and restarting XCode &amp; the simulator does not seem to help.
Any suggestions on what else I could try are appreciated.
</details>
# 答案1
**得分**: 1
以下解决方案对我有用:
&gt; 为了解决这个问题,请选择项目 -&gt; 构建设置。搜索 Mach-O 类型,将类型更改为可执行文件。
参考链接:https://developer.apple.com/forums/thread/655691?login=true#:~:text=To%20solve%20the%20issue%20select
<details>
<summary>英文:</summary>
Following solution worked for me:
&gt; To solve the issue select Project -&gt; Build Settings. Search Mach-O Type, change type to Executable.
Refer: https://developer.apple.com/forums/thread/655691?login=true#:~:text=To%20solve%20the%20issue%20select
</details>
# 答案2
**得分**: 0
这只是在beta 4中发生在我身上的情况,解决方法在我这里非常简单。您只需要在运行应用程序之前手动打开Vision Pro模拟器。由于某种原因,如果您运行应用程序并且模拟器从那里打开,它会给您带来错误。
<details>
<summary>英文:</summary>
This just happened to me in beta 4, and the solution was really simple in my case. You just need to manually open the Vision Pro simulator before running the app. For some reason, if you run the app and the simulator opens from there, it gives you that error.
</details>
# 答案3
**得分**: 0
"change to type Executable for Mach-O"对我没有起作用
我发现在Xcode的测试版中加载过多的“测试应用程序”有时会导致上述错误。但是,这个问题通常是暂时的,随着时间的推移应该会自行纠正。您不必过分担心这个问题;相反,继续尝试和学习。
即使您尝试删除有问题的文件夹,请注意它仍然会保留在您系统的内存中,并且可能在您重新打开Xcode 15测试版时重新加载。然而,这种行为是测试版的典型特征,不代表一个持续的问题。随着您继续使用软件,内容的加载应该逐渐改善。
https://developer.apple.com/forums/thread/732481
希望这有所帮助
<details>
<summary>英文:</summary>
The &quot;change to type Executable for Mach-O&quot; didnt work for me
I found 
&quot;Loading an excessive number of &#39;test apps&#39; in the beta version of Xcode may at times result in the mentioned error. However, this issue is usually temporary and should rectify itself over time. You need not worry excessively about this problem; instead, continue to experiment and learn.
Even if you try deleting the problematic folder, please note that it will persist in your system&#39;s memory and will likely reload when you reopen the Xcode 15 beta. Nonetheless, this behavior is typical of the beta version and does not represent a persistent problem. As you continue to use the software, the loading of your content should gradually improve.&quot;
https://developer.apple.com/forums/thread/732481
Hopefully this helps
</details>

huangapple
  • 本文由 发表于 2023年6月25日 20:23:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/76550361.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定