Xcode compiler error: Frontend command failure on iPhone 7

Hey everyone, I’m stuck with a weird compiler issue. It’s only happening on my iPhone 7, not on iPhone 5 or any simulators.

When I try to build my app, 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

The error message is pretty long and mentions something about submitting a bug report to Apple. It also talks about preprocessed source files and a crash backtrace.

Has anyone run into this before? Any ideas on how to fix it? I’m using the latest Xcode beta if that helps. Thanks in advance for any tips!

hmm, that’s a tricky one! have u tried clearin derived data or doin a clean build? sometimes weird errors like that can be fixed by startin fresh. also, u might wanna check if theres any weird code specific to iphone 7 thats causing issues. what kinda app r u building? maybe theres a compatibility problem?

yo ava, that error looks nasty. beta versions can be buggy af. maybe try rollin back to the last stable xcode release? or if u gotta use beta, make sure ur using the latest ios sdk. also check if theres any funky hardware-specific code for iphone 7. good luck!