Skip to content

How do I add image, sound, or data files to my new Axmol project? #1727

Closed Answered by rh101
FHBlah asked this question in Q&A
Discussion options

You must be logged in to vote

Try axmol build -p ios -a arm64 -c -f

The -c is to just create the project files, but not actually compile/build anything. The -f is to force it to recreate the project files, because what most likely happened is that it detected no change in the source code, so it didn't actually recreate anything; it doesn't check if resources have changed. Sorry, I should have mentioned this earlier.

Once that is done, open the project up in Xcode, and check if you can see the updated resources. Also, it's fine if you keep the project open in Xcode while you recreate it via the axmol build command. As soon as the project files are recreated, Xcode automatically detects the change and reloads the project.

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@FHBlah
Comment options

@rh101
Comment options

rh101 Mar 2, 2024
Collaborator

@FHBlah
Comment options

Comment options

You must be logged in to vote
5 replies
@FHBlah
Comment options

@rh101
Comment options

rh101 Mar 2, 2024
Collaborator

@FHBlah
Comment options

@rh101
Comment options

rh101 Mar 4, 2024
Collaborator

Answer selected by FHBlah
@FHBlah
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants