由于iOS模拟器是一个模拟器,为什么我需要专门为它构建?在某种VM /沙箱中运行真实代码的模拟器不是重点吗?
那么,设备/模拟器的构建方式与实际构建的应用程序的不同之处存在哪些实际差异呢?
解决方法
An application running natively on an iOS device is an ARM program. However,an application running in the iOS Simulator is an ordinary 32-bit (i386 architecture) Mac OS X program. In other words,the Simulator doesn’t simulate an iOS device down to the hardware level. It provides a faithful copy of the iOS environment,reimplemented to run natively on the Mac.