running ARM program on xcode

Solution 1:

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

QEMU is a generic and open source machine emulator and virtualizer.

QEMU can be installed from Homebrew: brew install qemu

Skyeye

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.

embedXcode

embedXcode is a template for Xcode, Apple's official IDE on Mac, and eases development for the most popular embedded computing boards.

embedXcode grid of supported hardware

Alternative Approaches

  • Cross compiling ARM static lib with GCC for Mac iOS xCode projects
  • Add a custom compiler to XCode 3.2