iOS设备和模拟器的构建实际上有何不同? [英] How does building for iOS device and simulator actually differ?

查看:91
本文介绍了iOS设备和模拟器的构建实际上有何不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于iOS模拟器是模拟器,为什么我需要专门为它构建?在某种VM /沙箱中运行真实代码的模拟器不是重点吗?

Since the iOS simulator is a simulator, why do I need to build specifically for it? Isn't the point of a simulator that it runs the real code in some sort of VM/sandbox?

那么实际差异是什么如何构建设备/模拟器,以及生成的应用程序如何不同?

So what are the actual differences in how building for device/simulator works, and how the resultant built apps differ?

推荐答案


在iOS设备上本机运行的应用程序是ARM程序。
但是,在iOS模拟器中运行的应用程序是一个普通的
32位(i386架构)Mac OS X程序。换句话说,
模拟器不会将iOS设备模拟到硬件级别。
它提供了iOS环境的忠实副本,重新实现为在Mac上本机运行的

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.

这篇关于iOS设备和模拟器的构建实际上有何不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆