I just started working on a new version of my app. I opened the project and ran the game on the simulator and got constant errors in the debug console. "sound file could not be loaded "example.wav"" and the same with images.
What the heck is going on?
I figured out the reason I was getting all the many errors. Firstly a lot of them were random (harmless) XCode 7.2 errors, but the errors that were causing the crashing and incorrect loading of files were caused by: I was accidentally loading a sound file in the Update function. I moved this out of that void and it began working perfectly. It must've been loading over and over and causing the error.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.