XCode Build Settings

来源:互联网 发布:淘宝首页转微信链接 编辑:程序博客网 时间:2024/05/16 12:10

预先知识

CPU指令集

  • ARMv8/ARM64 (iPhone 5s、 iPad Air、 Retina iPad Mini )
  • ARMv7s ( iPhone 5、 iPhone 5c、iPad 4 )
  • ARMv7 (iPhone 3GS、 iPhone 4、iPhone 4S、iPod 3G/4G/5G, iPad、 iPad 2、iPad 3、iPad Mini )
  • ARMv6(iPhone、iPhone 3G、iPod 1G/2G )
  • x86_64(iOS simulator)

Architectures(架构)

  1. Additional SDKs

  2. Architectures

    官方解释:Space-separated list of identifiers. Specifies the architectures (ABIs, processor models) to which the binary is targeted. When this build setting specifies more than one architecture, the generated binary may contain object code for each of the specified architectures.

    该编译选项指定了工程将被编译成支持哪些指令集,支持指令集是通过编译生成对应的二进制数据包实现的,如果支持的指令集数目有多个,就会编译出包含多个指令集代码的数据包,造成最终编译的包很大。

  3. Base SDK

    Directory path. Specifies the directory of the base SDK to use to build the product.

    支持列表macosx、iphonesimulator、iphoneos

  4. Buil Active Architectures Only

    官方解释:Boolean value. Specifies whether the product includes only object code for the native architecture.

    该编译项用于设置是否只编译当前使用的设备对应的arm指令集。

    当然该选项起作用的前提是你的Xcode必须成功连接了调试设备。如果你没有任何活跃设备,即Xcode没有成功连接调试设备,就算该设置项设置成YES依然还会编译Valid Architectures和Architectures指定的二进制包。

    通常情况下,该编译选项在Debug模式都设成YES,Release模式都设成NO。

  5. Supported Platforms

    支持的平台

  6. Valid Architectures

    官方解释:Space-separated list of identifiers. Specifies the architectures for which the binary may be built. During the build, this list is intersected with the value of ARCHS build setting; the resulting list specifies the architectures the binary can run on. If the resulting architecture list is empty, the target generates no binary.

    该编译项指定可能支持的指令集,该列表和Architectures列表的交集,将是Xcode最终生成二进制包所支持的指令集。

    支持列表(m68k i386 sparc hppa ppc ppc7400 ppc970 ppc64 x86_64 armv6 armv7)

0 0
原创粉丝点击