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

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

“iOS 17.0.simruntime” cannot be opened because the developer cannot be verified

问题

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

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

从Apple开发者网站下载的

我该如何修复这个问题?

英文:

I just downloaded the iOS 17 runtime, but after copying it into the destination, this popup opens and the Xcode could not use the simulator as expected:

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

> <sub>Downloaded from the Apple Developer site</sub>

How can I fix this?

答案1

得分: 6

可以在下载的 .dmg 上调用 simctl 来手动添加模拟器运行时。这是一个更安全的工作流程,还会执行代码签名验证。命令如下:

xcrun simctl runtime add &lt;pathTo/platform_simulator_runtime.dmg&gt;

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

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

英文:

It is possible to call simctl on the downloaded .dmg to add the simulator runtime manually. That is a safer workflow that also performs code signing verification. The command would be:

xcrun simctl runtime add &lt;pathTo/platform_simulator_runtime.dmg&gt;

Manually copying the .simruntime into the intended location for installation is an unsupported workflow.

To learn more, take a look at
https://developer.apple.com/documentation/xcode/installing-additional-simulator-runtimes

答案2

得分: 2

⚠️ 克服错误:

这个错误是由于复制文件的某些权限问题引起的。
在将文件复制到目标位置之前,您应该信任 DMG 文件以进行验证:

  1. 关闭 Xcode 并弹出模拟器 DMG。
  2. 使用以下命令更改下载的 DMG 文件的属性:

xattr -cr PATH_TO_DOWNLOADED_DMG

  1. .simruntime 文件复制到所需的目标位置 (/Library/Developer/CoreSimulator/Profiles/Runtimes)
  2. 再次运行 Xcode 并等待验证完成

💡 使用 Xcode 命令行安装 DMG

Xcode 可以使用 xcrun 工具在运行时安装并验证文件:

xcrun simctl runtime add <拖放 DMG 文件到这里>
英文:

⚠️ Overcome the error:

This error is because of some permissions of the copying files.
You should trust the DMG before coping the the file to make them verified:

  1. Close Xcode and Eject the simulator DMG.
  2. Change the attributes of the downloaded dmg using the following command:

> xattr -cr PATH_TO_DOWNLOADED_DMG

  1. Copy the .simruntime to the desired destination (/Library/Developer/CoreSimulator/Profiles/Runtimes)
  2. Run Xcode again and wait for the validation to be completed

💡 Use Xcode command line to install the DMG

Xcode can install runtimes and verify them on the fly with the xcrun tool:

xcrun simctl runtime add &lt;Drag DMG Here&gt;

答案3

得分: 0

你不应该手动复制它。下载Xcode、运行时的.dmg文件和下载清单后,启动Xcode。它将提示您安装已经下载的运行时。

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

英文:

You're not supposed to copy it by hand. After downloading Xcode, the runtime .dmg and the download manifest, start Xcode. It will prompt you to install the already downloaded runtime.

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

huangapple
  • 本文由 发表于 2023年6月6日 07:38:49
  • 转载请务必保留本文链接:https://go.coder-hub.com/76410599.html
匿名

发表评论

匿名网友

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

确定