简体   繁体   English

Xcode如何在iOS SDK中配置架构

[英]Xcode How to configure Architectures in iOS SDK

what are the architectures and Valid Architectures add to iOS SDK to Support iOS SDK中添加了哪些架构和有效架构来支持

  • 32 BIT (How to configure for 32BIt) 32位(如何配置32BIt)

  • 64 BIT (Working Fine) 64 BIT(正常工作)

  • Both 32 BIT and 64 BIT (How to configure for 32BIt). 32位和64位(如何配置32BIt)。

For 64 Bit I am using Architecture like this, its working fine 对于64位,我正在使用这样的架构,它的工作正常

在此处输入图片说明

For 32 Bit I am using Architecture like this 对于32位,我正在使用这样的体系结构

In Xcode i am getting the error like this. 在Xcode中,我得到这样的错误。

在此处输入图片说明

How can i achieve this. 我怎样才能做到这一点。 Thanks in advance 提前致谢

I Have fixed the Architecture issue for 32 Bit using Following Way: 我已使用以下方式解决了32位的体系结构问题:

在此处输入图片说明

for Architectures, i have used following criteria: 对于体系结构,我使用了以下标准:

1) Architectures - used like $(ARCHS_STANDARD_32_BIT) 1)架构-像$(ARCHS_STANDARD_32_BIT)一样使用

2) Valid Architectures - used Like armv7 only 2)有效架构-仅像armv7一样使用

nowdays, by deafult is 64 bit. 如今,默认是64位。

在此处输入图片说明

EDIT: 编辑:

When you test your app in the simulator you are compiling it in your machine architecture that is probably x86_64. 当您在模拟器中测试应用程序时,您正在将其编译为可能是x86_64的计算机体系结构。 If what you want is to check that your app works on an arm 32 bit processor you will need to connect an iphone 5 or less and build your app for that device. 如果要检查您的应用程序是否在32位ARM处理器上正常运行,则需要连接5或更小的iphone并为该设备构建应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM