The Problem:
Until recently, I could build and test my app like normal. Now, Xcode is driving me crazy, I can’t even run my app.
–
What Happens:
Building my app seems to launch it in the simulator, but it does not run and an EXC_ARITHMETIC error occurs (it stops at a line of code that was working fine before, no code changes since).
Looking at the ‘products’ folder, I can see that “appName.app” is red – i.e. the app file is never generated. A spotlight search and checking in the build folder confirms this.
Cleaning, restarting, etc does nothing to help. Other projects still build fine.
–
When it happened:
One of the graphic files I altered wouldn’t update itself in the app, even after a ‘clean’. So I deleted the build folder, as I’ve done many times before. Now I get the result explained above.
–
Any ideas or solutions are much appreciated!!! I can’t develop as is… and have already wasted a lot of time as is. I’m more than happy to give a bounty if someone finds a good way to fix this, it’s driving me crazy!
Solution was to comment out the block of code that the error occurs in. Build, and then it runs fine.
Then, uncomment the same block. Build, and works fine.
Weird… compiler or maybe Xcode bug?? Feel free to try explain…