在Mac上的iOS模拟器运行i386架构,没有的ARMv7? [英] iOS simulator on mac is running i386 architecture, not armv7?

查看:794
本文介绍了在Mac上的iOS模拟器运行i386架构,没有的ARMv7?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我已经建立了对ARMv7体系结构使用一些静态库。当我尝试在iOS的项目,我对iPhone 5.0模拟器testrun使用它们,我得到的错误,告诉我​​关于为i386硬件架构未定义的符号在我的静态库。

所以我想这意味着iPhone模拟器要编为i386的库?什么是模拟器的点,然后 - 为什么不到风度它模仿ARMv7架构以及

所以我可以测试我的静态库的唯一方法是连接物理iOS设备并运行它?

还是我弄错了吗?


解决方案

  

所以我想这意味着iPhone模拟器都想库编译
  i386的?什么是模拟器的点,然后 - 为什么它不到风度
  模仿ARMv7架构呢?


您已经回答了你自己的问题。这是一个的模拟的,不是的仿真器的。因此,它是一个Mac OSX上的程序,在i386架构上运行。如果您编译i386的静态库,以及你将能够使用他们的模拟器。

I've got some static libraries I've built for use on armv7 architectures. When I try to use them in a iOS project which I testrun on the iphone 5.0 simulator, I get errors telling me about undefined symbols for architecture i386 in my static libraries.

So I guess this means the iphone simulator wants libraries compiled for i386? What is the point of the simulator then - why dosn't it emulate armv7 architecture as well?

So the only way I can test my static libraries is to connect a physical iOS device and run it?

Or did I get it wrong?

解决方案

So I guess this means the iphone simulator wants libraries compiled for i386? What is the point of the simulator then - why dosn't it emulate armv7 architecture as well?

You've answered your own question. It's a simulator, not an emulator. Therefore it is a Mac OSX program, running on i386 architecture. If you compile your static libraries for i386 as well you will be able to use them on the simulator.

这篇关于在Mac上的iOS模拟器运行i386架构,没有的ARMv7?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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