Xcode 编译设置

These build settings specify properties of the product the target builds.

ARCHS (Architectures)

Description:

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.

Values:

See VALID_ARCHS (Valid Architectures).

Effector:

NATIVE_ARCH.

Default value:

$NATIVE_ARCH

Example value:

ppc i386

Companion:

VALID_ARCHS (Valid Architectures)ONLY_ACTIVE_ARCH (Build Active Architecture Only).

Prerequisite for:

PREBINDING (Prebinding).

DYLIB_COMPATIBILITY_VERSION (Compatibility Version)

Description:

Number. Specifies the compatibility version of a dynamic library product. See Dynamic Library Design Guidelines in Dynamic Library Programming Topics for details on assigning version numbers of dynamic libraries.

Default value:

1

Companion:

DYLIB_CURRENT_VERSION (Current Library Version).

DYLIB_CURRENT_VERSION (Current Library Version)

Description:

Number. Specifies the current version of a dynamic library product. See “Dynamic Library Design Guidelines” in Dynamic Library Programming Topics for details on assigning version numbers of dynamic libraries.

Default value:

1

Companions:

DYLIB_COMPATIBILITY_VERSION (Compatibility Version).

GENERATE_PKGINFO_FILE (Force Package Info Generation)

Description:

Boolean value. Specifies whether to generate the product’s package information file. For details on the package information file, see “Additional Configuration Tips” in Runtime Configuration Guidelines.

Values:

  • YES: Generates the product’s package information file.

  • NO: Does not generate the product’s package information file.

Default value:

  • YES: In application targets.

  • NO: In other target types.

Companions:

PKGINFO_FILE_PATH.

MACH_O_TYPE

Description:

Identifier. Specifies the binary’s type. For information on binary types, see “Building Mach-O Files” in Mach-O Programming Topics.

Effector:

Target type, specified at the time the target is created.

Default value:

  • mh_executable: Executable binary. Application, command-line tool, and kernel extension target types.

  • mh_bundle: Bundle binary. Bundle and plug-in target types.

  • mh_object: Relocatable object file.

  • mh_dylib: Dynamic library binary. Dynamic library and framework target types.

  • staticlib: Static library binary. Static library target types.

Affects:

GCC_ENABLE_SYMBOL_SEPARATION (Separate PCH Symbols)EXECUTABLE_EXTENSION.

Specified in:

New Project Assistant, New Target Assistant.

PRODUCT_NAME

Description:

Identifier. Specifies the name of the product the target builds.

Default value:

The name of the target at the time it was created.

Example value:

MyProduct

Affects:

EXECUTABLE_NAMEWRAPPER_NAME.

PROJECT_NAME

Description:

Identifier. Specifies the name of the project that defines the target.

Default value:

The name of the project at the time it was created.

Example value:

MyProject

Affects:

DSTROOT (Installation Build Products Location)PROJECT_TEMP_DIR.

Specified in:

Project navigator.

TARGET_NAME

Description:

Identifier. Identifies the target being processed.

Default value:

The name of the target at the time it was created.

Example value:

MyProduct

Affects:

TARGET_TEMP_DIR.

Specified in:

New Project Assistant.

VALID_ARCHS (Valid Architectures)

Description:

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.

Default value:

m68k i386 sparc hppa ppc ppc7400 ppc970 ppc64 x86_64 armv6 armv7

Affects:

CURRENT_ARCH.

Companion:

ARCHS (Architectures).


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值