iOS框架无法在模拟器上运行 [英] iOS framework does not work on simulator

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

问题描述

我建立了一个作为通用iOS设备的框架,并将其导入Xcode.当我选择物理iPhone 7作为设备时,一切正常,但是,当我选择模拟器时,找不到类并且无法编译框架(即使自动完成也不起作用).

I built a framework as generic iOS device and imported it on Xcode. Everything works fine when I select my physical iPhone 7 as device, however, when I choose simulator, the classes are not find and I cannot compile the framework (even auto complete doesn't work).

您有任何想法吗?

(顺便说一句:我使用的框架是 chart-ios .我对其进行了微小的更改,希望再次进行编译).

(btw: the framework I'm using is chart-ios. I did a tiny change to it and wanted to compile it again).

推荐答案

模拟器在i386体系结构上运行.如果您还为i386编译了静态库,则可以在模拟器上使用它们.

simulator runs on i386 architecture. If you compile your static libraries for i386 as well you will be able to use them on the simulator.

尝试将"i386"添加到有效的体系结构"中

Try adding "i386" to the "Valid Architectures"

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

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