Adding *.PNG files to Xcode Executables

Post Reply
Skaguay
Posts: 2
Joined: Tue Oct 20, 2015 11:04 pm
My devices: iPad Air

Adding *.PNG files to Xcode Executables

Post by Skaguay »

When compiling Smart Basic in XCODE how are image files included in the executable package. I can compile anything that does not require an external file. A good example of what to do would be with the Winter.txt sample, to load the snowflake.png and fir.png files.

When run on the iPad it works fine.
When run in the simulator, the program cannot find the files. Is there a specific folder these should go in?

On another note: Smart Basic is by far one of the best apps out there!! Your work is truly appreciated.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Adding *.PNG files to Xcode Executables

Post by Mr. Kibernetik »

Just copy your files from iPad to "Samples" folder in SDK, exactly as they are.
Consider "Samples" folder to be the root of your files on iPad.

Skaguay
Posts: 2
Joined: Tue Oct 20, 2015 11:04 pm
My devices: iPad Air

Re: Adding *.PNG files to Xcode Executables

Post by Skaguay »

Wow! That was quite easy. My mind kept trying to convince me that it must be more complicated than that. I'm sorry I didn't come on that one by myself. Thank you very much, it now works as expected.

Again, thank you for such a great product and support. I haven't had this much fun in years. :D

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: Adding *.PNG files to Xcode Executables

Post by Mr. Kibernetik »

Thank you for your comments! :lol:

Post Reply