“iOS 17.0.simruntime”无法打开,因为无法验证开发者

问题描述 投票:0回答:4

我刚刚下载了 iOS 17 运行时,但将其复制到目标位置后,会打开此弹出窗口,并且 Xcode 无法按预期使用模拟器:

Popup

从Apple开发者网站下载

我该如何解决这个问题?

ios xcode ios-simulator dmg
4个回答
8
投票

可以在下载的.dmg上调用

simctl
来手动添加模拟器运行时。这是一个更安全的工作流程,还可以执行代码签名验证。命令是:

xcrun simctl runtime add <pathTo/platform_simulator_runtime.dmg>

手动将 .simruntime 复制到预期安装位置是不受支持的工作流程。

要了解更多信息,请查看 https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes


6
投票

⚠️克服错误:

此错误是由于复制文件的某些权限造成的。 在复制文件以进行验证之前,您应该信任 DMG:

关闭 Xcode 并弹出模拟器 DMG。
  1. 使用以下命令更改下载的 dmg 的属性:
xattr -cr PATH_TO_DOWNLOADED_DMG


    .simruntime
  1. 复制到所需目的地 (
    /Library/Developer/CoreSimulator/Profiles/Runtimes
    )
    再次运行Xcode并等待验证完成
💡使用Xcode命令行安装DMG

Xcode 可以安装运行时并使用

xcrun

工具即时验证它们:

xcrun simctl runtime add <Drag DMG Here>



2
投票

请参阅文档:

https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes#Install-Simulator-runtimes-from-the-Apple-Developer-website


0
投票

打开终端并运行

xcodebuild -downloadPlatform iOS

© www.soinside.com 2019 - 2024. All rights reserved.