I'd like to have a compiler for ARM on my Mac, and I read somewhere that there is a way to run and maybe debug ARM code on Xcode. Anyone has any hint on how I should do or if it is even possible? Any other solution for ARM on Mac? Thanks
Running ARM code on macOS
See How to emulate an ARM architecture under OSX 10.6 (“Snow Leopard”)? The answers to this question include suggestions for:
QEMU is a generic and open source machine emulator and virtualizer.
QEMU can be installed from Homebrew:
brew install qemu
Skyeye is a multi-architecture, multi-core, and highly scalable hardware simulation platform. Cur- rently it is implemented by the core library libcommon.so and a series of plug-ins based on the composition of the core library. SkyEye supports the system structure of ARM, Blackfin, Coldfire, PowerPC, MIPS, SPARC and x86.
Skyeye may be no longer under active development.
Cross Compiling ARM with Xcode
Getting Xcode to correctly cross-compile non-iOS device ARM code on the Mac appears to be possible, if tricky. You may find focusing on command line compiling easier.