Page 1 of 1

Adding *.PNG files to Xcode Executables

Posted: Mon Jan 25, 2016 10:02 pm
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.

Re: Adding *.PNG files to Xcode Executables

Posted: Mon Jan 25, 2016 10:10 pm
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.

Re: Adding *.PNG files to Xcode Executables

Posted: Mon Jan 25, 2016 10:33 pm
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

Re: Adding *.PNG files to Xcode Executables

Posted: Mon Jan 25, 2016 10:39 pm
by Mr. Kibernetik
Thank you for your comments! :lol: