5

The iOS application collapses when using the SpriteKit TextureAtlas and creating...

 2 years ago
source link: https://www.codesd.com/item/the-ios-application-collapses-when-using-the-spritekit-textureatlas-and-creating-the-xcode-command-line.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

The iOS application collapses when using the SpriteKit TextureAtlas and creating the Xcode command line

advertisements

We use the new SpriteKit framework in iOS 7 to develop small games. To build and distribute new versions of our games, we use a build and deploy server which uses Xcode5's command-line tools.

When we use a Texture Atlas in Xcode and open the SpriteKit view which uses images from the texture atlas, the application (built over command-line) crashes.

When we build the application Xcode's GUI and deploy it to the device using Xcode's GUI, everything works fine and the application does not crash.

This seems to be a bug in Xcode5's command line tools.

Any ideas for a workaround?


Using Xcode 5 Final:

It seems that the xCode command line tools simply ignores the setting "Enable texture atlas generation" inside the build settings.

All builds done on command line, debug and release builds, don't contain any compiled texture atlas folders. (Only the source .atlas ones). If i do the same build using the Xcode GUI, the source atlas (.atlas) folders are gone and there are the correct ".atlasc" folders with the compiled texture atlasses inside the IPA. The missing atlasses are the reason for the crashes mentioned by Stephan.

I've filled a bug in Apples Bug Reporter: 15250666

As a quick n dirty fix its possible to run the atlas generation manually using a shell script build phase like this:

cd "$CONFIGURATION_BUILD_DIR"/*.app
/Applications/Xcode.app/Contents/Developer/usr/bin/TextureAtlas YOURATLAS.atlas


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK