gpt4 book ai didi

ios - Xcode 9 漏洞 : Cannot find cdtool

转载 作者:IT王子 更新时间:2023-10-29 07:33:57 25 4
gpt4 key购买 nike

安装Xcode 9 beta后,Xcode 8在编译项目时报错:

Cannot find cdtool at '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/cdtool': Cannot find a simulator runtime for platform <DVTPlatform:0x7fd67af0a930:'com.apple.platform.iphonesimulator':<DVTFilePath:0x7fd67af0a7c0:'/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform'>>.

我怀疑 Xcode 9 修改了一些与 Xcode 8 共享的状态(设置路径、覆盖文件等)。但是我尝试删除两个 Xcode 都无济于事。

该项目使用核心数据,但在尝试编译 xcdatamodel 时显然失败了。

我仍然可以在 Xcode 9 下编译和运行。

最佳答案

一位 Apple 工程师就此联系了...

那些在 Xcode 8 中遇到 cdtool 错误的人,我怀疑你从 Xcode 9 安装了 iOS 10.3 Simulator 运行时。本周发现这会导致 Xcode 8.3 中的 cdtool 出现问题。

您可以通过将 iOS 10.3.simruntime 移到一边并重新启动 CoreSimulatorService ( source ) 来解决此问题:

sudo mkdir /Library/Developer/CoreSimulator/Profiles/Runtimes/Backup 

sudo mv /Library/Developer/CoreSimulator/Profiles/Runtimes/{,Backup/}iOS\ 10.3.simruntime

sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService

然后重新启动 Xcode、Simulator 等。那些删除了 CoreSimulator.framework 并因此无法再运行 Xcode.app 的人可以使用以下命令重新安装 CoreSimulator.framework:

installer -pkg /Applications/Xcode-beta.app/Contents/Resources/Packages/XcodeSystemResources.pkg -target /

关于ios - Xcode 9 漏洞 : Cannot find cdtool,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44471971/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com