xcode armv6 armv7 armv7s arm64
2015-10-05 17:43
274 查看
眼下ios的指令集有下面几种:
armv6
iPhone
iPhone2
iPhone3G
第一代和第二代iPod Touch
armv7
iPhone4
iPhone4S
armv7s
iPhone5
iPhone5C
arm64
iPhone5S
机器对指令集的支持是向下兼容的,因此armv7的指令集是能够执行在iphone5S的。仅仅是效率没那么高而已~
================================================
Architecture : 指你想支持的指令集。
Valid architectures : 指即将编译的指令集。
Build Active Architecture Only : 仅仅是否仅仅编译当前适用的指令集。
================================================
如今是2014年初,事实上4和4S的用户还是蛮多的,而iphone3之类的机器差点儿没有了,所以我们的指令集最低必须基于armv7.
因此,Architecture的值选择:armv7 armv7s arm64
PS:选arm64时须要最低支持5.1.1:
Xcode 5.0.1 can build your app with both 32-bit and 64-bit binaries included. This combined binary requires a minimum deployment target of iOS 5.1.1 or later. The 64-bit binary runs only on 64-bit devices running iOS 7.0.3 and later. If you have an existing
app, you should first update your app for iOS 7 and then port it to run on 64-bit processors. By updating it first for iOS 7, you can remove deprecated code paths and use modern practices. If you’re creating a new app, target iOS 7 and compile 32-bit and 64-bit
versions of your app.
The architecture for 64-bit apps on iOS is almost identical to the architecture for OS X apps, making it easy to create a common code base that runs in both operating systems. Converting a Cocoa Touch app to 64-bit follows a similar transition process as the
one for Cocoa apps on OS X. Pointers and some common C types change from 32 bits to 64 bits. Code that relies on the
needs to be carefully examined.
Start by building the app for the 64-bit runtime, fixing any warnings that occur as well as searching your code for specific 64-bit issues. For example:
Make sure all function calls have a proper prototype.
Avoid truncating 64-bit values by accidentally assigning them to a 32-bit data type.
Ensure that calculations are performed correctly in the 64-bit version of your app.
Create data structures whose layouts are identical in the 32-bit and 64-bit versions of your app (such as when you write a data file to iCloud).
1,假设想自己的app在各个机器都可以最高效率的执行。则须要将Build Active Architecture Only改为NO,Valid architectures选择相应的指令集:armv7 armv7s arm64。这个会为各个指令集编译相应的代码。因此最后的 ipa体积基本翻了3倍,Release版本号必须NO。
2。假设想让app体积保持最小。则现阶段应该选择Valid architectures为armv7,这样Build Active Architecture Only选YES要么NO不要紧
armv6
iPhone
iPhone2
iPhone3G
第一代和第二代iPod Touch
armv7
iPhone4
iPhone4S
armv7s
iPhone5
iPhone5C
arm64
iPhone5S
机器对指令集的支持是向下兼容的,因此armv7的指令集是能够执行在iphone5S的。仅仅是效率没那么高而已~
================================================
Architecture : 指你想支持的指令集。
Valid architectures : 指即将编译的指令集。
Build Active Architecture Only : 仅仅是否仅仅编译当前适用的指令集。
================================================
如今是2014年初,事实上4和4S的用户还是蛮多的,而iphone3之类的机器差点儿没有了,所以我们的指令集最低必须基于armv7.
因此,Architecture的值选择:armv7 armv7s arm64
PS:选arm64时须要最低支持5.1.1:
Convert Your App to a 64-Bit Binary After Updating It for iOS 7
Xcode 5.0.1 can build your app with both 32-bit and 64-bit binaries included. This combined binary requires a minimum deployment target of iOS 5.1.1 or later. The 64-bit binary runs only on 64-bit devices running iOS 7.0.3 and later. If you have an existingapp, you should first update your app for iOS 7 and then port it to run on 64-bit processors. By updating it first for iOS 7, you can remove deprecated code paths and use modern practices. If you’re creating a new app, target iOS 7 and compile 32-bit and 64-bit
versions of your app.
The architecture for 64-bit apps on iOS is almost identical to the architecture for OS X apps, making it easy to create a common code base that runs in both operating systems. Converting a Cocoa Touch app to 64-bit follows a similar transition process as the
one for Cocoa apps on OS X. Pointers and some common C types change from 32 bits to 64 bits. Code that relies on the
NSIntegerand
CGFloattypes
needs to be carefully examined.
Start by building the app for the 64-bit runtime, fixing any warnings that occur as well as searching your code for specific 64-bit issues. For example:
Make sure all function calls have a proper prototype.
Avoid truncating 64-bit values by accidentally assigning them to a 32-bit data type.
Ensure that calculations are performed correctly in the 64-bit version of your app.
Create data structures whose layouts are identical in the 32-bit and 64-bit versions of your app (such as when you write a data file to iCloud).
1,假设想自己的app在各个机器都可以最高效率的执行。则须要将Build Active Architecture Only改为NO,Valid architectures选择相应的指令集:armv7 armv7s arm64。这个会为各个指令集编译相应的代码。因此最后的 ipa体积基本翻了3倍,Release版本号必须NO。
2。假设想让app体积保持最小。则现阶段应该选择Valid architectures为armv7,这样Build Active Architecture Only选YES要么NO不要紧
相关文章推荐
- 技术新领导人张小龙:一些成功不能复制
- 设计模式 --迭代器模式(Iterator)
- 关于OpenCV的那些事——相机姿态更新
- invalidate()和postInvalidate() 的区别及使用
- BZOJ3784 树分治、RMQ~~
- OutOfMemoryError dump memory
- NOIP2013 花匠
- 程序员如何锻炼身体
- 利用VisualVM监测Azure云服务中的Java应用
- 联萌十一大决战之厉兵秣马 H. Hanoi Towers(汉诺塔)
- 数据库更新数据时的传值问题
- readonly 的使用
- 阿里云 ubuntu jdk安装及java环境变量设置
- poj1741 树上的分治
- ios-两个应用之间的跳转
- Hive无法打开 异常信息 .......server was 0
- 郁闷的vs2015安装
- JavaScript 函数参数传递到底是值传递还是引用传递 (精华)
- jQueryBootgrid+ASP.NET MVC的入门应用
- Part 2 How are the URL's mapped to Controller Action Methods?