Module: Xcodeproj::Constants
- Defined in:
- lib/xcodeproj/constants.rb
Overview
This modules groups all the constants known to Xcodeproj.
Constant Summary collapse
- LAST_KNOWN_IOS_SDK =
Returns The last known iOS SDK (stable).
'9.0'
- LAST_KNOWN_OSX_SDK =
Returns The last known OS X SDK (stable).
'10.11'
- LAST_KNOWN_TVOS_SDK =
Returns The last known tvOS SDK (unstable).
'9.0'
- LAST_KNOWN_WATCHOS_SDK =
Returns The last known watchOS SDK.
'2.0'
- LAST_KNOWN_ARCHIVE_VERSION =
Returns The last known archive version to Xcodeproj.
1
- DEFAULT_OBJECT_VERSION =
Returns The default object version for Xcodeproj.
46
- LAST_KNOWN_OBJECT_VERSION =
Returns The last known object version to Xcodeproj.
47
- LAST_UPGRADE_CHECK =
Returns The last known object version to Xcodeproj.
'0700'
- LAST_SWIFT_UPGRADE_CHECK =
Returns The last known object version to Xcodeproj.
'0700'
- XCSCHEME_FORMAT_VERSION =
Returns The version of ‘.xcscheme` files supported by Xcodeproj.
'1.3'
- KNOWN_ISAS =
Returns The all the known ISAs grouped by superclass.
{ 'AbstractObject' => %w( PBXBuildFile AbstractBuildPhase PBXBuildRule XCBuildConfiguration XCConfigurationList PBXContainerItemProxy PBXFileReference PBXGroup PBXProject PBXTargetDependency PBXReferenceProxy AbstractTarget ), 'AbstractBuildPhase' => %w( PBXCopyFilesBuildPhase PBXResourcesBuildPhase PBXSourcesBuildPhase PBXFrameworksBuildPhase PBXHeadersBuildPhase PBXShellScriptBuildPhase ), 'AbstractTarget' => %w( PBXNativeTarget PBXAggregateTarget PBXLegacyTarget ), 'PBXGroup' => %w( XCVersionGroup PBXVariantGroup ), }.freeze
- FILE_TYPES_BY_EXTENSION =
Returns The known file types corresponding to each extension.
{ 'a' => 'archive.ar', 'app' => 'wrapper.application', 'bundle' => 'wrapper.plug-in', 'dylib' => 'compiled.mach-o.dylib', 'framework' => 'wrapper.framework', 'h' => 'sourcecode.c.h', 'm' => 'sourcecode.c.objc', 'markdown' => 'text', 'mdimporter' => 'wrapper.cfbundle', 'octest' => 'wrapper.cfbundle', 'pch' => 'sourcecode.c.h', 'plist' => 'text.plist.xml', 'sh' => 'text.script.sh', 'swift' => 'sourcecode.swift', 'xcassets' => 'folder.assetcatalog', 'xcconfig' => 'text.xcconfig', 'xcdatamodel' => 'wrapper.xcdatamodel', 'xcodeproj' => 'wrapper.pb-project', 'xctest' => 'wrapper.cfbundle', 'xib' => 'file.xib', }.freeze
- PRODUCT_TYPE_UTI =
Returns The uniform type identifier of various product types.
{ :application => 'com.apple.product-type.application', :framework => 'com.apple.product-type.framework', :dynamic_library => 'com.apple.product-type.library.dynamic', :static_library => 'com.apple.product-type.library.static', :bundle => 'com.apple.product-type.bundle', :octest_bundle => 'com.apple.product-type.bundle', :unit_test_bundle => 'com.apple.product-type.bundle.unit-test', :app_extension => 'com.apple.product-type.app-extension', :command_line_tool => 'com.apple.product-type.tool', :watch_app => 'com.apple.product-type.application.watchapp', :watch2_app => 'com.apple.product-type.application.watchapp2', :watch_extension => 'com.apple.product-type.watchkit-extension', :watch2_extension => 'com.apple.product-type.watchkit2-extension', }.freeze
- PRODUCT_UTI_EXTENSIONS =
Returns The extensions or the various product UTIs.
{ :application => 'app', :framework => 'framework', :dynamic_library => 'dylib', :static_library => 'a', :bundle => 'bundle', :octest_bundle => 'octest', :unit_test_bundle => 'xctest', }.freeze
- COMMON_BUILD_SETTINGS =
Returns The common build settings grouped by platform, and build configuration name.
{ :all => { 'PRODUCT_NAME' => '$(TARGET_NAME)', 'ENABLE_STRICT_OBJC_MSGSEND' => 'YES', }.freeze, [:debug] => { 'MTL_ENABLE_DEBUG_INFO' => 'YES', }.freeze, [:release] => { 'MTL_ENABLE_DEBUG_INFO' => 'NO', }.freeze, [:ios] => { 'SDKROOT' => 'iphoneos', }.freeze, [:osx] => { 'SDKROOT' => 'macosx', }.freeze, [:tvos] => { 'SDKROOT' => 'appletvos', }.freeze, [:watchos] => { 'SDKROOT' => 'watchos', }.freeze, [:debug, :osx] => { # Empty? }.freeze, [:release, :osx] => { 'DEBUG_INFORMATION_FORMAT' => 'dwarf-with-dsym', }.freeze, [:debug, :ios] => { # Empty? }.freeze, [:debug, :application, :swift] => { 'SWIFT_OPTIMIZATION_LEVEL' => '-Onone', 'ENABLE_TESTABILITY' => 'YES', }.freeze, [:debug, :dynamic_library, :swift] => { 'ENABLE_TESTABILITY' => 'YES', }.freeze, [:debug, :framework, :swift] => { 'ENABLE_TESTABILITY' => 'YES', }.freeze, [:debug, :static_library, :swift] => { 'ENABLE_TESTABILITY' => 'YES', }.freeze, [:framework] => { 'VERSION_INFO_PREFIX' => '', 'DYLIB_COMPATIBILITY_VERSION' => '1', 'DEFINES_MODULE' => 'YES', 'DYLIB_INSTALL_NAME_BASE' => '@rpath', 'CURRENT_PROJECT_VERSION' => '1', 'VERSIONING_SYSTEM' => 'apple-generic', 'DYLIB_CURRENT_VERSION' => '1', 'SKIP_INSTALL' => 'YES', 'INSTALL_PATH' => '$(LOCAL_LIBRARY_DIR)/Frameworks', }.freeze, [:ios, :framework] => { 'LD_RUNPATH_SEARCH_PATHS' => ['$(inherited)', '@executable_path/Frameworks', '@loader_path/Frameworks'], 'CODE_SIGN_IDENTITY[sdk=iphoneos*]' => 'iPhone Developer', 'TARGETED_DEVICE_FAMILY' => '1,2', }.freeze, [:osx, :framework] => { 'LD_RUNPATH_SEARCH_PATHS' => ['$(inherited)', '@executable_path/../Frameworks', '@loader_path/Frameworks'], 'FRAMEWORK_VERSION' => 'A', 'COMBINE_HIDPI_IMAGES' => 'YES', }.freeze, [:framework, :swift] => { 'DEFINES_MODULE' => 'YES', }.freeze, [:debug, :framework, :swift] => { 'SWIFT_OPTIMIZATION_LEVEL' => '-Onone', }.freeze, [:osx, :static_library] => { 'EXECUTABLE_PREFIX' => 'lib', }.freeze, [:ios, :static_library] => { 'OTHER_LDFLAGS' => '-ObjC', 'SKIP_INSTALL' => 'YES', }.freeze, [:osx, :dynamic_library] => { 'EXECUTABLE_PREFIX' => 'lib', 'DYLIB_COMPATIBILITY_VERSION' => '1', 'DYLIB_CURRENT_VERSION' => '1', }.freeze, [:application] => { 'ASSETCATALOG_COMPILER_APPICON_NAME' => 'AppIcon', }.freeze, [:ios, :application] => { 'CODE_SIGN_IDENTITY[sdk=iphoneos*]' => 'iPhone Developer', 'LD_RUNPATH_SEARCH_PATHS' => ['$(inherited)', '@executable_path/Frameworks'], }.freeze, [:osx, :application] => { 'COMBINE_HIDPI_IMAGES' => 'YES', 'CODE_SIGN_IDENTITY' => '-', 'LD_RUNPATH_SEARCH_PATHS' => ['$(inherited)', '@executable_path/../Frameworks'], }.freeze, [:bundle] => { 'PRODUCT_NAME' => '$(TARGET_NAME)', 'WRAPPER_EXTENSION' => 'bundle', 'SKIP_INSTALL' => 'YES', }.freeze, [:ios, :bundle] => { 'SDKROOT' => 'iphoneos', }.freeze, [:osx, :bundle] => { 'COMBINE_HIDPI_IMAGES' => 'YES', 'SDKROOT' => 'macosx', 'INSTALL_PATH' => '$(LOCAL_LIBRARY_DIR)/Bundles', }.freeze, }.freeze
- PROJECT_DEFAULT_BUILD_SETTINGS =
Returns The default build settings for a new project.
{ :all => { 'ALWAYS_SEARCH_USER_PATHS' => 'NO', 'CLANG_CXX_LANGUAGE_STANDARD' => 'gnu++0x', 'CLANG_CXX_LIBRARY' => 'libc++', 'CLANG_ENABLE_OBJC_ARC' => 'YES', 'CLANG_WARN_BOOL_CONVERSION' => 'YES', 'CLANG_WARN_CONSTANT_CONVERSION' => 'YES', 'CLANG_WARN_DIRECT_OBJC_ISA_USAGE' => 'YES', 'CLANG_WARN__DUPLICATE_METHOD_MATCH' => 'YES', 'CLANG_WARN_EMPTY_BODY' => 'YES', 'CLANG_WARN_ENUM_CONVERSION' => 'YES', 'CLANG_WARN_INT_CONVERSION' => 'YES', 'CLANG_WARN_OBJC_ROOT_CLASS' => 'YES', 'CLANG_WARN_UNREACHABLE_CODE' => 'YES', 'CLANG_ENABLE_MODULES' => 'YES', 'GCC_C_LANGUAGE_STANDARD' => 'gnu99', 'GCC_WARN_64_TO_32_BIT_CONVERSION' => 'YES', 'GCC_WARN_ABOUT_RETURN_TYPE' => 'YES', 'GCC_WARN_UNDECLARED_SELECTOR' => 'YES', 'GCC_WARN_UNINITIALIZED_AUTOS' => 'YES', 'GCC_WARN_UNUSED_FUNCTION' => 'YES', 'GCC_WARN_UNUSED_VARIABLE' => 'YES', }, :release => { 'COPY_PHASE_STRIP' => 'YES', 'ENABLE_NS_ASSERTIONS' => 'NO', 'VALIDATE_PRODUCT' => 'YES', }.freeze, :debug => { 'ONLY_ACTIVE_ARCH' => 'YES', 'COPY_PHASE_STRIP' => 'NO', 'GCC_DYNAMIC_NO_PIC' => 'NO', 'GCC_OPTIMIZATION_LEVEL' => '0', 'GCC_PREPROCESSOR_DEFINITIONS' => ['DEBUG=1', '$(inherited)'], 'GCC_SYMBOLS_PRIVATE_EXTERN' => 'NO', }.freeze, }.freeze
- COPY_FILES_BUILD_PHASE_DESTINATIONS =
Returns The corresponding numeric value of each copy build phase destination.
{ :absolute_path => '0', :products_directory => '16', :wrapper => '1', :resources => '7', # default :executables => '6', :java_resources => '15', :frameworks => '10', :shared_frameworks => '11', :shared_support => '12', :plug_ins => '13', }.freeze
- PROXY_TYPES =
Returns The corresponding numeric value of each proxy type for PBXContainerItemProxy.
{ :native_target => '1', :reference => '2', }.freeze
- HEADER_FILES_EXTENSIONS =
Returns The extensions which are associated with header files.
%w(.h .hh .hpp .ipp .tpp).freeze