How to add image to ios project? #1816
-
i copied the image file "block.png" to the "project/Content" directory , then i selected "Add files to myproject" in xcocde. next i use this code to create a sprite with "block.png": i tried to create a sprite with Helloworld.png and its ok. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 9 replies
-
You should not be modifying anything in Xcode. Everything should be done via CMake, so the steps are as follows: 1 - Add the resources (graphics, audio files etc.) to |
Beta Was this translation helpful? Give feedback.
-
You are a great expert, thank you very much |
Beta Was this translation helpful? Give feedback.
No, you don't need to.
If ever you have any issues with the build, delete the
build_ios_arm64/CMakeCache.txt
file first, then runaxmol build -p ios -a arm64 -c
.