mac上的iOS模拟器运行的是i386架构,不是armv7? [英] iOS simulator on mac is running i386 architecture, not armv7?

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

问题描述

我已经构建了一些用于 armv7 架构的静态库.当我尝试在我在 iphone 5.0 模拟器上测试运行的 iOS 项目中使用它们时,我收到错误消息,告诉我静态库中 架构 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.

所以我猜这意味着 iphone 模拟器想要为 i386 编译库?那么模拟器的意义是什么 - 为什么它不能模拟 armv7 架构?

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?

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

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

还是我弄错了?

推荐答案

所以我猜这意味着 iphone 模拟器需要编译库对于 i386?那么模拟器的意义是什么 - 为什么不呢?也模拟 armv7 架构?

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?

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

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天全站免登陆