Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SceneKit: imported dae file not copied to app bundle

Got a weird scenekit asset problem... I’ve got an assets file (catalog.scnassets) that seems to be fine in Xcode. I’ve added to it a dae file which also opens fine in Xcode.

However, the file doesn’t seem to get copied into the app bundle when I build (mac app), even though the build logs show it happening:

copySceneKitAssets: Copy plants.dae copySceneKitAssets: Running scntool on /Users/jason/Library/Developer/Xcode/DerivedData/FirstPersonGame-fxynipfnexmczbgnujwuiqxtiogd/Build/Products/Debug/FirstPersonGame.app/Contents/Resources/catalog.scnassets/plants.dae

When I check that directory in the build folder, catalog.scnassets is there, but it’s empty. Any ideas what might be going on?

Here’s what the file looks like in Xcode’s Identity inspector:

enter image description here

like image 642
jbrennan Avatar asked Dec 13 '25 08:12

jbrennan


1 Answers

It’s simple!

I was seeing a bunch of warnings like:

scntool: warning: Could not load ModelIO.framework ((null)) (etc)

which led me to this StackOverflow post which solved it for me.

In short: check in Xcode Preferences -> Locations. For me, the “Command Line Tools” had nothing selected (somehow!), so selecting a value there (in my case, Xcode 10.1), then doing a clean build, fixed the issue.

like image 125
jbrennan Avatar answered Dec 16 '25 23:12

jbrennan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!