Xcode:无法加载ModelIO.framework,SceneKit.framework等

Sal*_*had 5 scenekit swift arkit xcode10 macos-mojave

在更新到macOS Mojave之前,我的应用程序运行良好且没有错误,但是,我在更新后收到此错误.我已经谷歌搜索了2天,但似乎没有人遇到这个错误.注意:该应用程序确实按预期运行.3D模型文件采用.scn格式.

构建时错误:

/scntool:-1: Could not load ModelIO.framework ((null))
/scntool:-1: Could not load SceneKit.framework ((null))
/scntool:-1: Could not load PhysicsKit.framework ((null))
/scntool:-1: Could not load Jet.framework ((null))
/scntool:-1: Could not load SpriteKit.framework ((null))
/scntool:-1: The document /Users/salman/Library/Developer/Xcode/DerivedData/JellyFish-fhvcybjymvohlxflnwnxqdepqlrl/Build/Products/Debug-iphoneos/JellyFish.app/art.scnassets/Jellyfish.scn is not an archived scene.
/scntool:-1: Conversion failed, will simply copy input to output.
/scntool:-1: Copy failed file:///Users/salman/Library/Developer/Xcode/DerivedData/JellyFish-fhvcybjymvohlxflnwnxqdepqlrl/Build/Products/Debug-iphoneos/JellyFish.app/art.scnassets/Jellyfish.scn -> file:///Users/salman/Library/Developer/Xcode/DerivedData/JellyFish-fhvcybjymvohlxflnwnxqdepqlrl/Build/Products/Debug-iphoneos/JellyFish.app/art.scnassets/Jellyfish.scn error:Error Domain=NSCocoaErrorDomain Code=516 "“Jellyfish.scn” couldn’t be copied to “art.scnassets” because an item with the same name already exists." UserInfo={NSSourceFilePathErrorKey=/Users/salman/Library/Developer/Xcode/DerivedData/JellyFish-fhvcybjymvohlxflnwnxqdepqlrl/Build/Products/Debug-iphoneos/JellyFish.app/art.scnassets/Jellyfish.scn, NSUserStringVariant=(
Run Code Online (Sandbox Code Playgroud)

编辑:错误现在已经消失,没有任何理由.它发生在以前.错误显示,消失,然后再次显示.奇怪.

imp*_*7vx 1

我能够将计算机从 10.13.6 更新到 10.14 macOS Mojave,并且需要安装 XCode 组件。完成之后,虽然我的机器上已经安装了 XCode 10.1,但它的效果非常好。它让我重置了我的活跃开发人员路径,https://apple.stackexchange.com/questions/254380/macos-mojave-invalid-active-developer-path,但它有效。

如果有人提出不同的解决方案,我会奖励它,但目前这就是我的答案。

重置计算机--检查更新--更新--更新XCode--完成。