最新消息:iOS编程开发交流群(6906921) ,Mac.Cocoa开发交流群(7758675) 欢迎iOS/macOS开发编程爱好及学习者加入!

Xcode6内置环境变量(Build Setting Macros)

iOS 天狐 12940浏览 0评论

(1)查看环境变量宏

新建一个HelloWorld项目在桌面 ,cd Desktop/HelloWorld/

命令行进入HelloWorld工程目录,执行xcodebuild命令并带上“-showBuildSettings”参数:

$ xcodebuild -project HelloWorld.xcodeproj -target HelloWorld -configuration Debug -showBuildSettings > buildSettings.txt

则buildSettings.txt中保存了Build settings for action build and target "HelloWorld”,其中dump了所有的环境变量。

(2)buildSettings.txt内容  标红的为常见变量

ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = NO
ALTERNATE_GROUP = staff
ALTERNATE_MODE = u+w,go-w,a+rX
ALTERNATE_OWNER = Jakey
ALWAYS_SEARCH_USER_PATHS = NO
ALWAYS_USE_SEPARATE_HEADERMAPS = YES
APPLE_INTERNAL_DEVELOPER_DIR = /AppleInternal/Developer
APPLE_INTERNAL_DIR = /AppleInternal
APPLE_INTERNAL_DOCUMENTATION_DIR = /AppleInternal/Documentation
APPLE_INTERNAL_LIBRARY_DIR = /AppleInternal/Library
APPLE_INTERNAL_TOOLS = /AppleInternal/Developer/Tools
APPLICATION_EXTENSION_API_ONLY = NO
APPLY_RULES_IN_COPY_FILES = NO
ARCHS = armv7
    ARCHS_STANDARD = armv7 arm64
    ARCHS_STANDARD_32_64_BIT = armv7 arm64
    ARCHS_STANDARD_32_BIT = armv7
    ARCHS_STANDARD_64_BIT = arm64
    ARCHS_STANDARD_INCLUDING_64_BIT = armv7 arm64
    ARCHS_UNIVERSAL_IPHONE_OS = armv7 arm64
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
AVAILABLE_PLATFORMS = iphonesimulator macosx iphoneos
BUILD_COMPONENTS = headers build
    BUILD_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Products
    BUILD_ROOT = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Products
BUILD_STYLE =
BUILD_VARIANTS = normal
BUILT_PRODUCTS_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Products/Debug-iphoneos
CACHE_ROOT = /var/folders/j6/l9l22f_n4n1925q46cjpjtn80000gn/C/com.apple.DeveloperTools/6.2-6C131e/Xcode
CCHROOT = /var/folders/j6/l9l22f_n4n1925q46cjpjtn80000gn/C/com.apple.DeveloperTools/6.2-6C131e/Xcode
CHMOD = /bin/chmod
CHOWN = /usr/sbin/chown
CLANG_CXX_LANGUAGE_STANDARD = gnu++0x
CLANG_CXX_LIBRARY = libc++
CLANG_ENABLE_MODULES = YES
CLANG_ENABLE_OBJC_ARC = YES
CLANG_WARN_BOOL_CONVERSION = YES
CLANG_WARN_CONSTANT_CONVERSION = YES
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR
CLANG_WARN_EMPTY_BODY = YES
CLANG_WARN_ENUM_CONVERSION = YES
CLANG_WARN_INT_CONVERSION = YES
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR
CLANG_WARN_UNREACHABLE_CODE = YES
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
CLASS_FILE_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/JavaClasses
CLEAN_PRECOMPS = YES
CLONE_HEADERS = NO
CODESIGNING_FOLDER_PATH = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Products/Debug-iphoneos/HelloWorld.app
CODE_SIGNING_ALLOWED = YES
CODE_SIGNING_REQUIRED = YES
CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext
CODE_SIGN_IDENTITY = iPhone Developer
COLOR_DIAGNOSTICS = YES
COMBINE_HIDPI_IMAGES = NO
COMPOSITE_SDK_DIRS = /var/folders/j6/l9l22f_n4n1925q46cjpjtn80000gn/C/com.apple.DeveloperTools/6.2-6C131e/Xcode/CompositeSDKs
COMPRESS_PNG_FILES = YES
CONFIGURATION = Debug
  CONFIGURATION_BUILD_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Products/Debug-iphoneos
    CONFIGURATION_TEMP_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos
    CONTENTS_FOLDER_PATH = HelloWorld.app
COPYING_PRESERVES_HFS_DATA = NO
COPY_PHASE_STRIP = NO
COPY_RESOURCES_FROM_STATIC_FRAMEWORKS = YES
CP = /bin/cp
CREATE_INFOPLIST_SECTION_IN_BINARY = NO
CURRENT_ARCH = armv7
CURRENT_VARIANT = normal
DEAD_CODE_STRIPPING = YES
DEBUGGING_SYMBOLS = YES
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
DEFAULT_COMPILER = com.apple.compilers.llvm.clang.1_0
DEFAULT_KEXT_INSTALL_PATH = /System/Library/Extensions
DEFINES_MODULE = NO
DEPLOYMENT_LOCATION = NO
DEPLOYMENT_POSTPROCESSING = NO
DERIVED_FILES_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/DerivedSources
DERIVED_FILE_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/DerivedSources
DERIVED_SOURCES_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/DerivedSources
DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Applications
    DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin
    DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer
    DEVELOPER_FRAMEWORKS_DIR = /Applications/Xcode.app/Contents/Developer/Library/Frameworks
    DEVELOPER_FRAMEWORKS_DIR_QUOTED = /Applications/Xcode.app/Contents/Developer/Library/Frameworks
    DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/Developer/Library
    DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
    DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Tools
    DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr
DEVELOPMENT_LANGUAGE = English
DOCUMENTATION_FOLDER_PATH = HelloWorld.app/English.lproj/Documentation
DO_HEADER_SCANNING_IN_JAM = NO
DSTROOT = /tmp/HelloWorld.dst
DT_TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
DWARF_DSYM_FILE_NAME = HelloWorld.app.dSYM
DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO
DWARF_DSYM_FOLDER_PATH = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Products/Debug-iphoneos
EFFECTIVE_PLATFORM_NAME = -iphoneos
EMBEDDED_CONTENT_CONTAINS_SWIFT = NO
EMBEDDED_PROFILE_NAME = embedded.mobileprovision
ENABLE_HEADER_DEPENDENCIES = YES
ENABLE_STRICT_OBJC_MSGSEND = YES
ENTITLEMENTS_ALLOWED = YES
ENTITLEMENTS_REQUIRED = YES
EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = .DS_Store .svn .git .hg CVS
EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch (*) .DS_Store CVS .svn .git .hg *.xcodeproj *.xcode *.pbproj *.pbxproj
EXECUTABLES_FOLDER_PATH = HelloWorld.app/Executables
EXECUTABLE_FOLDER_PATH = HelloWorld.app
EXECUTABLE_NAME = HelloWorld
EXECUTABLE_PATH = HelloWorld.app/HelloWorld
EXPANDED_CODE_SIGN_IDENTITY =
EXPANDED_CODE_SIGN_IDENTITY_NAME =
EXPANDED_PROVISIONING_PROFILE =
FILE_LIST = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/Objects/LinkFileList
FIXED_FILES_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/FixedFiles
FRAMEWORKS_FOLDER_PATH = HelloWorld.app/Frameworks
FRAMEWORK_FLAG_PREFIX = -framework
FRAMEWORK_VERSION = A
FULL_PRODUCT_NAME = HelloWorld.app
GCC3_VERSION = 3.3
GCC_C_LANGUAGE_STANDARD = gnu99
GCC_DYNAMIC_NO_PIC = NO
GCC_INLINES_ARE_PRIVATE_EXTERN = YES
GCC_OPTIMIZATION_LEVEL = 0
GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++
GCC_PREPROCESSOR_DEFINITIONS = DEBUG=1
GCC_SYMBOLS_PRIVATE_EXTERN = NO
GCC_THUMB_SUPPORT = YES
GCC_TREAT_WARNINGS_AS_ERRORS = NO
GCC_VERSION = com.apple.compilers.llvm.clang.1_0
GCC_VERSION_IDENTIFIER = com_apple_compilers_llvm_clang_1_0
GCC_WARN_64_TO_32_BIT_CONVERSION = YES
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR
GCC_WARN_UNDECLARED_SELECTOR = YES
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE
GCC_WARN_UNUSED_FUNCTION = YES
GCC_WARN_UNUSED_VARIABLE = YES
GENERATE_MASTER_OBJECT_FILE = NO
GENERATE_PKGINFO_FILE = YES
GENERATE_PROFILING_CODE = NO
GID = 20
GROUP = staff
HEADERMAP_INCLUDES_FLAT_ENTRIES_FOR_TARGET_BEING_BUILT = YES
HEADERMAP_INCLUDES_FRAMEWORK_ENTRIES_FOR_ALL_PRODUCT_TYPES = YES
HEADERMAP_INCLUDES_NONPUBLIC_NONPRIVATE_HEADERS = YES
HEADERMAP_INCLUDES_PROJECT_HEADERS = YES
HEADERMAP_USES_FRAMEWORK_PREFIX_ENTRIES = YES
HEADERMAP_USES_VFS = NO
HEADER_SEARCH_PATHS =  /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
ICONV = /usr/bin/iconv
INFOPLIST_EXPAND_BUILD_SETTINGS = YES
INFOPLIST_FILE = HelloWorld/Info.plist
INFOPLIST_OUTPUT_FORMAT = binary
INFOPLIST_PATH = HelloWorld.app/Info.plist
INFOPLIST_PREPROCESS = NO
INFOSTRINGS_PATH = HelloWorld.app/English.lproj/InfoPlist.strings
INSTALL_DIR = /tmp/HelloWorld.dst/Applications
INSTALL_GROUP = staff
INSTALL_MODE_FLAG = u+w,go-w,a+rX
INSTALL_OWNER = Jakey
INSTALL_PATH = /Applications
INSTALL_ROOT = /tmp/HelloWorld.dst
IPHONEOS_DEPLOYMENT_TARGET = 8.2
JAVAC_DEFAULT_FLAGS = -J-Xms64m -J-XX:NewSize=4M -J-Dfile.encoding=UTF8
JAVA_APP_STUB = /System/Library/Frameworks/JavaVM.framework/Resources/MacOS/JavaApplicationStub
JAVA_ARCHIVE_CLASSES = YES
JAVA_ARCHIVE_TYPE = JAR
JAVA_COMPILER = /usr/bin/javac
JAVA_FOLDER_PATH = HelloWorld.app/Java
JAVA_FRAMEWORK_RESOURCES_DIRS = Resources
JAVA_JAR_FLAGS = cv
JAVA_SOURCE_SUBDIR = .
JAVA_USE_DEPENDENCIES = YES
JAVA_ZIP_FLAGS = -urg
JIKES_DEFAULT_FLAGS = +E +OLDCSO
KEEP_PRIVATE_EXTERNS = NO
LD_DEPENDENCY_INFO_FILE = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/Objects-normal/armv7/HelloWorld_dependency_info.dat
LD_GENERATE_MAP_FILE = NO
LD_MAP_FILE_PATH = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/HelloWorld-LinkMap-normal-armv7.txt
LD_NO_PIE = NO
LD_QUOTE_LINKER_ARGUMENTS_FOR_COMPILER_DRIVER = YES
LD_RUNPATH_SEARCH_PATHS =  @executable_path/Frameworks
LEGACY_DEVELOPER_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer
LEX = lex
LIBRARY_FLAG_NOSPACE = YES
LIBRARY_FLAG_PREFIX = -l
LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions
LINKER_DISPLAYS_MANGLED_NAMES = NO
LINK_FILE_LIST_normal_armv7 =
LINK_WITH_STANDARD_LIBRARIES = YES
LOCALIZED_RESOURCES_FOLDER_PATH = HelloWorld.app/English.lproj
LOCAL_ADMIN_APPS_DIR = /Applications/Utilities
LOCAL_APPS_DIR = /Applications
LOCAL_DEVELOPER_DIR = /Library/Developer
LOCAL_LIBRARY_DIR = /Library
MACH_O_TYPE = mh_execute
MAC_OS_X_PRODUCT_BUILD_VERSION = 14C109
MAC_OS_X_VERSION_ACTUAL = 101002
MAC_OS_X_VERSION_MAJOR = 101000
MAC_OS_X_VERSION_MINOR = 1002
MODULE_CACHE_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/ModuleCache
MTL_ENABLE_DEBUG_INFO = YES
NATIVE_ARCH = armv7
NATIVE_ARCH_32_BIT = i386
NATIVE_ARCH_64_BIT = x86_64
NATIVE_ARCH_ACTUAL = x86_64
NO_COMMON = YES
OBJECT_FILE_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/Objects
OBJECT_FILE_DIR_normal = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/Objects-normal
OBJROOT = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates
ONLY_ACTIVE_ARCH = YES
OPTIMIZATION_LEVEL = 0
OS = MACOS
OSAC = /usr/bin/osacompile
PACKAGE_TYPE = com.apple.package-type.wrapper.application
PASCAL_STRINGS = YES
PATH = /Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin
PATH_PREFIXES_EXCLUDED_FROM_HEADER_DEPENDENCIES = /usr/include /usr/local/include /System/Library/Frameworks /System/Library/PrivateFrameworks /Applications/Xcode.app/Contents/Developer/Headers /Applications/Xcode.app/Contents/Developer/SDKs /Applications/Xcode.app/Contents/Developer/Platforms
PBDEVELOPMENTPLIST_PATH = HelloWorld.app/pbdevelopment.plist
PFE_FILE_C_DIALECTS = objective-c
PKGINFO_FILE_PATH = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/PkgInfo
PKGINFO_PATH = HelloWorld.app/PkgInfo
PLATFORM_DEVELOPER_APPLICATIONS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Applications
PLATFORM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin
PLATFORM_DEVELOPER_LIBRARY_DIR = /Applications/Xcode.app/Contents/PlugIns/Xcode3Core.ideplugin/Contents/SharedSupport/Developer/Library
PLATFORM_DEVELOPER_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs
PLATFORM_DEVELOPER_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Tools
PLATFORM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr
PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
PLATFORM_NAME = iphoneos
PLATFORM_PREFERRED_ARCH = arm64
PLATFORM_PRODUCT_BUILD_VERSION = 12D508
PLIST_FILE_OUTPUT_FORMAT = binary
PLUGINS_FOLDER_PATH = HelloWorld.app/PlugIns
PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES
PRECOMP_DESTINATION_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/PrefixHeaders
PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO
PRIVATE_HEADERS_FOLDER_PATH = HelloWorld.app/PrivateHeaders
PRODUCT_MODULE_NAME = HelloWorld
  PRODUCT_NAME = HelloWorld
    PRODUCT_SETTINGS_PATH = /Users/Jakey/Desktop/HelloWorld/HelloWorld/Info.plist
PRODUCT_TYPE = com.apple.product-type.application
PROFILING_CODE = NO
    PROJECT = HelloWorld
PROJECT_DERIVED_FILE_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/DerivedSources
PROJECT_DIR = /Users/Jakey/Desktop/HelloWorld
    PROJECT_FILE_PATH = /Users/Jakey/Desktop/HelloWorld/HelloWorld.xcodeproj
    PROJECT_NAME = HelloWorld
    PROJECT_TEMP_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build
    PROJECT_TEMP_ROOT = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates
PROVISIONING_PROFILE_REQUIRED = YES
PUBLIC_HEADERS_FOLDER_PATH = HelloWorld.app/Headers
RECURSIVE_SEARCH_PATHS_FOLLOW_SYMLINKS = YES
REMOVE_CVS_FROM_RESOURCES = YES
REMOVE_GIT_FROM_RESOURCES = YES
REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES = YES
REMOVE_HG_FROM_RESOURCES = YES
REMOVE_SVN_FROM_RESOURCES = YES
RESOURCE_RULES_REQUIRED = YES
REZ_COLLECTOR_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/ResourceManagerResources
REZ_OBJECTS_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build/ResourceManagerResources/Objects
SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO
SCRIPTS_FOLDER_PATH = HelloWorld.app/Scripts
  SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk
    SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk
    SDK_NAME = iphoneos8.2
SDK_PRODUCT_BUILD_VERSION = 12D508
SED = /usr/bin/sed
SEPARATE_STRIP = NO
SEPARATE_SYMBOL_EDIT = NO
SET_DIR_MODE_OWNER_GROUP = YES
SET_FILE_MODE_OWNER_GROUP = NO
SHALLOW_BUNDLE = YES
SHARED_DERIVED_FILE_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Products/Debug-iphoneos/DerivedSources
SHARED_FRAMEWORKS_FOLDER_PATH = HelloWorld.app/SharedFrameworks
SHARED_PRECOMPS_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/PrecompiledHeaders
SHARED_SUPPORT_FOLDER_PATH = HelloWorld.app/SharedSupport
SKIP_INSTALL = NO
SOURCE_ROOT = /Users/Jakey/Desktop/HelloWorld
SRCROOT = /Users/Jakey/Desktop/HelloWorld
STRINGS_FILE_OUTPUT_ENCODING = binary
STRIP_INSTALLED_PRODUCT = YES
STRIP_STYLE = all
SUPPORTED_DEVICE_FAMILIES = 1,2
SUPPORTED_PLATFORMS = iphonesimulator iphoneos
SYMROOT = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Products
SYSTEM_ADMIN_APPS_DIR = /Applications/Utilities
SYSTEM_APPS_DIR = /Applications
    SYSTEM_CORE_SERVICES_DIR = /System/Library/CoreServices
SYSTEM_DEMOS_DIR = /Applications/Extras
SYSTEM_DEVELOPER_APPS_DIR = /Applications/Xcode.app/Contents/Developer/Applications
SYSTEM_DEVELOPER_BIN_DIR = /Applications/Xcode.app/Contents/Developer/usr/bin
SYSTEM_DEVELOPER_DEMOS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities/Built Examples
    SYSTEM_DEVELOPER_DIR = /Applications/Xcode.app/Contents/Developer
SYSTEM_DEVELOPER_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library
SYSTEM_DEVELOPER_GRAPHICS_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Graphics Tools
SYSTEM_DEVELOPER_JAVA_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Java Tools
SYSTEM_DEVELOPER_PERFORMANCE_TOOLS_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Performance Tools
SYSTEM_DEVELOPER_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes
SYSTEM_DEVELOPER_TOOLS = /Applications/Xcode.app/Contents/Developer/Tools
SYSTEM_DEVELOPER_TOOLS_DOC_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/documentation/DeveloperTools
SYSTEM_DEVELOPER_TOOLS_RELEASENOTES_DIR = /Applications/Xcode.app/Contents/Developer/ADC Reference Library/releasenotes/DeveloperTools
SYSTEM_DEVELOPER_USR_DIR = /Applications/Xcode.app/Contents/Developer/usr
SYSTEM_DEVELOPER_UTILITIES_DIR = /Applications/Xcode.app/Contents/Developer/Applications/Utilities
SYSTEM_DOCUMENTATION_DIR = /Library/Documentation
SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions
    SYSTEM_LIBRARY_DIR = /System/Library
TARGETED_DEVICE_FAMILY = 1
    TARGETNAME = HelloWorld
TARGET_BUILD_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Products/Debug-iphoneos
    TARGET_NAME = HelloWorld
    TARGET_TEMP_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build
    TEMP_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build
    TEMP_FILES_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build
    TEMP_FILE_DIR = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates/HelloWorld.build/Debug-iphoneos/HelloWorld.build
TEMP_ROOT = /Users/Jakey/Library/Developer/Xcode/DerivedData/HelloWorld-atxvrcjabmzxnvbjfgcywwzjozpz/Build/Intermediates
TOOLCHAINS = com.apple.dt.toolchain.iOS8_2
TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO
UID = 501
UNLOCALIZED_RESOURCES_FOLDER_PATH = HelloWorld.app
UNSTRIPPED_PRODUCT = NO
USER = Jakey
USER_APPS_DIR = /Users/Jakey/Applications
USER_LIBRARY_DIR = /Users/Jakey/Library
USE_DYNAMIC_NO_PIC = YES
USE_HEADERMAP = YES
USE_HEADER_SYMLINKS = NO
VALIDATE_PRODUCT = NO
    VALID_ARCHS = arm64 armv7 armv7s
VERBOSE_PBXCP = NO
VERSIONPLIST_PATH = HelloWorld.app/version.plist
VERSION_INFO_BUILDER = Jakey
VERSION_INFO_FILE = HelloWorld_vers.c
VERSION_INFO_STRING = "@(#)PROGRAM:HelloWorld  PROJECT:HelloWorld-"
WRAPPER_EXTENSION = app
WRAPPER_NAME = HelloWorld.app
WRAPPER_SUFFIX = .app
XCODE_APP_SUPPORT_DIR = /Applications/Xcode.app/Contents/Developer/Library/Xcode
XCODE_PRODUCT_BUILD_VERSION = 6C131e
XCODE_VERSION_ACTUAL = 0620
XCODE_VERSION_MAJOR = 0600
XCODE_VERSION_MINOR = 0620
XPCSERVICES_FOLDER_PATH = HelloWorld.app/XPCServices
YACC = yacc
arch = armv7
diagnostic_message_length = 80
variant = normal

(3)常用变量

$(SYSTEM_APPS_DIR)
$(DEVELOPER_FRAMEWORKS_DIR)
$(PROJECT_DIR)
$(SRCROOT)
$(SDKROOT)
$(SOURCE_ROOT)

$(PROJECT)
$(BUILD_DIR)
$(BUILD_ROOT)
$(BUILT_PRODUCTS_DIR)
$(TARGET_BUILD_DIR)
$(TARGET_NAME)
$(CONFIGURATION_TEMP_DIR)
$(CONFIGURATION_BUILD_DIR)

转载请注明:天狐博客 » Xcode6内置环境变量(Build Setting Macros)

微信 OR 支付宝 扫描二维码
为天狐 打赏
非常感谢你的支持,哥会继续努力!
发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址