Xcode编译选项整理(更新中)

5 阅读1分钟

Architectures

Assets

Build Locations

Build Options

  • Debug Information Format

    The type of debug information to produce.

    • DWARF:

      Object files and linked products will use DWARF as the debug information format. [dwarf]

    • DWARF with dSYM File:

      Object files and linked products will use DWARF as the debug information format, and Xcode will also produce a dSYM file containing the debug information from the individual object files (except that a dSYM file is not needed and will not be created for static library or object file products). [dwarf-with-dsym]

Compilation Caching

Deployment

  • Strip Linked Product

    If enabled, the linked product of the build will be stripped of symbols when performing deployment postprocessing.

Headers

Info.plist Values

Kernel Module

Linking - General

Linking - Mergeable Libraries

Linking - Warnings

Localization

Packaging

Search Paths

Security

Signing

Signing - App Sandbox & Hardened Runtime

Siri

Testing

Text-Based API

Versioning

Apple Clang - Code Generation

  • Generate Debug Symbols

    Enables or disables generation of debug symbols. When debug symbols are enabled, the level of detail can be controlled by the DEBUG_INFORMATION_FORMAT setting.

  • Optimization Level

    Specifies the degree to which the generated code is optimized for speed and binary size.

Apple Clang - Custom Compiler Flags

Apple Clang - Language

Apple Clang - Language - C++

Apple Clang - Language - Modules

Apple Clang - Language - Objective-C

Apple Clang - Preprocessing

Apple Clang - Security

Apple Clang - Undefined Behavior Sanitizer

Apple Clang - Warning Policies

Apple Clang - Warnings - All languages

Apple Clang - Warnings - C++

Apple Clang - Warnings - Objective-C

Apple Clang - Warnings - Objective-C and ARC

Apple Clang Module Verifier - Options

Asset Catalog Compiler - Options

Compress PNG Files - Packaging

Designed for iPhone & iPad - Deployment

Documentation Compiler - Options

Interface Builder Storyboard Compiler - Options

Mac Catalyst - Deployment

OSACompile - Build Options

Static Analysis - Analysis Policy

Static Analysis - Generic Issues

Static Analysis - Issues - Apple APIs

Static Analysis - Issues - C++

Static Analysis - Issues - Objective-C

Static Analysis - Issues - Security

Static Analysis - Issues - Unused Code

Swift Compiler - BuildOptions

Swift Compiler - Code Generation

Swift Compiler - Concurrency

Swift Compiler - General

Swift Compiler - Language

Swift Compiler - Search Paths

Swift Compiler - Upcoming Features

Swift Compiler - Warnings Policies

User-Defined