Xcode: could not load ModelIO.framework, SceneKit.framework, etc

风格不统一 提交于 2019-12-12 07:12:39

问题


Before updating to macOS Mojave my app ran fine without errors, however, I get this error after the update. I have been Googling for 2 days but it seems no one has run into this error yet. Note: The app does run as expected. The 3D model file is in the .scn format.

Buildtime error:

/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=(

Edit: The error has now disappeared without any reason. It's happened before. The error shows up, disappears, then shows up again. Strange.


回答1:


I was able to update my computer from 10.13.6 to 10.14 macOS Mojave and it required me to install XCode Components. After the completion of that, although I already had XCode 10.1 on my machine, it worked like a charm. It made me reset my active developer path, https://apple.stackexchange.com/questions/254380/macos-mojave-invalid-active-developer-path, but it works.

If someone comes up with a different solution, I will award it, but currently this is my answer.

Reset your computer -- check for updates -- update -- update XCode -- Finalize.




回答2:


My cause was that the command line tools setting was empty. I solved by setting Command Line Tools in XCode Menu > Preference > Locations.



来源:https://stackoverflow.com/questions/52701684/xcode-could-not-load-modelio-framework-scenekit-framework-etc

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!