英文:
“iOS 17.0.simruntime” cannot be opened because the developer cannot be verified
问题
我刚刚下载了iOS 17运行时,但在将其复制到目标位置后,出现了此弹出窗口,Xcode无法按预期使用模拟器:
从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:
> <sub>Downloaded from the Apple Developer site</sub>
How can I fix this?
答案1
得分: 6
可以在下载的 .dmg 上调用 simctl
来手动添加模拟器运行时。这是一个更安全的工作流程,还会执行代码签名验证。命令如下:
xcrun simctl runtime add <pathTo/platform_simulator_runtime.dmg>
手动复制 .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 <pathTo/platform_simulator_runtime.dmg>
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 文件以进行验证:
- 关闭 Xcode 并弹出模拟器 DMG。
- 使用以下命令更改下载的 DMG 文件的属性:
xattr -cr PATH_TO_DOWNLOADED_DMG
- 将
.simruntime
文件复制到所需的目标位置 (/Library/Developer/CoreSimulator/Profiles/Runtimes
) - 再次运行 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:
- Close Xcode and Eject the simulator DMG.
- Change the attributes of the downloaded dmg using the following command:
> xattr -cr PATH_TO_DOWNLOADED_DMG
- Copy the
.simruntime
to the desired destination (/Library/Developer/CoreSimulator/Profiles/Runtimes
) - 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 <Drag DMG Here>
答案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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论