在更新到 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=(
编辑:错误现已无故消失。以前发生过。错误出现,消失,然后再次出现。奇怪。
最佳答案
我的原因是命令行工具设置为空。 我通过在 XCode 菜单 > 首选项 > 位置中设置命令行工具来解决。
关于swift - Xcode : could not load ModelIO. 框架、SceneKit.framework 等,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52701684/