问题描述
我正在尝试让一个在模拟器上运行过的应用程序在执行之前遇到一些问题.我们没有为i386
构建的libjpeg.a,但是确实有x86_64
.这是剩下的唯一依赖项,但是我想知道为什么如果我在x86_64
mac上运行,为什么实际上需要i386
符号.
I'm trying to get an app running on the simulator that has had some problems doing so before. We don't have libjpeg.a built for i386
, but it does have x86_64
. This is the only dependency left, but I'm wondering why I actually need i386
symbols, if I'm running on an x86_64
mac.
推荐答案
iOS模拟器可以32位和64位模式运行您的应用.这使您可以解决很多64位问题,并确保它可以同时用于armv7和arm64.为此,它将为i386和x86_64编译您的应用程序,并且需要两种体系结构的库.
The iOS simulator can run your app in 32 and 64-bit modes. This is allows you to work out a lot of 64-bit issues and make sure it is ready for both armv7 and arm64. To do this, it compiles your app for i386 and x86_64 and requires the libraries for both architectures.
这篇关于为什么即使我仅在x86_64系统上,iOS模拟器也需要i386和x86_64符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!