Hey everyone, I’m running into a weird issue with my Xcode project. The compiler keeps failing, but only on my iPhone 7. It works fine on my iPhone 5 and all the simulators.
When I try to build, I get this error:
fatal error: error in backend: Error while trying to spill X0 from class GPR64: Cannot scavenge register without an emergency spill slot!
clang: error: clang frontend command failed with exit code 70
It’s using Apple LLVM 9.0.0 if that helps. I’m not sure what’s causing this or how to fix it. Has anyone else run into something similar? Any ideas on what I should try next?
I’d really appreciate any help or suggestions. This is driving me crazy!
Hmm, that’s a tricky one! have you tried messing with the build settings? sometimes tweaking the optimization level can do wonders. or maybe it’s a weird compatibility thing with iPhone 7? what if you create a super simple test project - does it still happen? curious to hear if you’ve tried any of these. keep us posted on what works!
I’ve encountered similar issues before, and it’s often related to optimization settings or specific architecture compatibility. First, try cleaning your build folder and derived data. If that doesn’t work, adjust your optimization level in build settings. Sometimes, setting it to ‘None’ for debug configurations can help. Also, ensure your deployment target is compatible with the iPhone 7. If the problem persists, consider creating a new target with minimal code to isolate the issue. It could be a specific part of your codebase triggering this error. Lastly, check if updating Xcode resolves the problem, as newer versions often include compiler improvements and bug fixes.
hey man, i’ve seen this before. try cleaning ur project and deleting derived data. if that doesnt work, check ur deployment target. make sure its set right for iphone 7. also, double check ur code for any weird stuff that might be causing it. good luck!