xcodebuildコマンドの実行例集
xcodebuildコマンドの使い方をすぐ忘れてしまうのでメモ。
使っているXcodeのパス表示
$ xcode-select --print-path
/Applications/Xcode.app/Contents/Developer
バージョン表示
$ xcodebuild -version
Xcode 12.4
Build version 12D4e
SDK一覧
-
インストールされているSDKを表示し、
xcodebuild -sdk
に指定するSDK名を取得する。 -
-version
を指定すると詳細に表示される -
最新SDKでビルドする場合は
-sdk iphoneos
-sdk iphonesimulator
のようにバージョン番号を省略できる。
# iphone 実機用
xcodebuild -sdk iphoneos
# Simulator用
xcodebuild -sdk iphonesimulator
$ xcodebuild -showsdks
iOS SDKs:
iOS 14.4 -sdk iphoneos14.4
iOS Simulator SDKs:
Simulator - iOS 14.4 -sdk iphonesimulator14.4
macOS SDKs:
DriverKit 20.2 -sdk driverkit.macosx20.2
macOS 11.1 -sdk macosx11.1
tvOS SDKs:
tvOS 14.3 -sdk appletvos14.3
tvOS Simulator SDKs:
Simulator - tvOS 14.3 -sdk appletvsimulator14.3
watchOS SDKs:
watchOS 7.2 -sdk watchos7.2
watchOS Simulator SDKs:
Simulator - watchOS 7.2 -sdk watchsimulator7.2
% xcodebuild -version -sdk
iPhoneOS14.4.sdk - iOS 14.4 (iphoneos14.4)
SDKVersion: 14.4
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk
PlatformVersion: 14.4
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform
BuildID: 34AA5D88-518E-11EB-91C4-72143A615026
ProductBuildVersion: 18D46
ProductCopyright: 1983-2021 Apple Inc.
ProductName: iPhone OS
ProductVersion: 14.4
iPhoneSimulator14.4.sdk - Simulator - iOS 14.4 (iphonesimulator14.4)
SDKVersion: 14.4
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk
PlatformVersion: 14.4
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
BuildID: 34AA5D88-518E-11EB-91C4-72143A615026
ProductBuildVersion: 18D46
ProductCopyright: 1983-2021 Apple Inc.
ProductName: iPhone OS
ProductVersion: 14.4
DriverKit20.2.sdk - DriverKit 20.2 (driverkit.macosx20.2)
SDKVersion: 20.2
Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/DriverKit20.2.sdk
PlatformVersion: 11.1
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
MacOSX11.1.sdk - macOS 11.1 (macosx11.1)
SDKVersion: 11.1
Path: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk
PlatformVersion: 11.1
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
ProductBuildVersion: 20C63
ProductCopyright: 1983-2020 Apple Inc.
ProductName: macOS
ProductUserVisibleVersion: 11.1
ProductVersion: 11.1
iOSSupportVersion: 14.3
AppleTVOS14.3.sdk - tvOS 14.3 (appletvos14.3)
SDKVersion: 14.3
Path: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS14.3.sdk
PlatformVersion: 14.3
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform
BuildID: E3F85AF8-32C4-11EB-9F1B-1F54C5D7F887
ProductBuildVersion: 18K559
ProductCopyright: 1983-2020 Apple Inc.
ProductName: Apple TVOS
ProductVersion: 14.3
AppleTVSimulator14.3.sdk - Simulator - tvOS 14.3 (appletvsimulator14.3)
SDKVersion: 14.3
Path: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/SDKs/AppleTVSimulator14.3.sdk
PlatformVersion: 14.3
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform
BuildID: E3F85AF8-32C4-11EB-9F1B-1F54C5D7F887
ProductBuildVersion: 18K559
ProductCopyright: 1983-2020 Apple Inc.
ProductName: Apple TVOS
ProductVersion: 14.3
WatchOS7.2.sdk - watchOS 7.2 (watchos7.2)
SDKVersion: 7.2
Path: /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform/Developer/SDKs/WatchOS7.2.sdk
PlatformVersion: 7.2
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform
BuildID: 8D9D1CD2-32F3-11EB-B18E-209C67F7BDAB
ProductBuildVersion: 18S561
ProductCopyright: 1983-2020 Apple Inc.
ProductName: Watch OS
ProductVersion: 7.2
WatchSimulator7.2.sdk - Simulator - watchOS 7.2 (watchsimulator7.2)
SDKVersion: 7.2
Path: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform/Developer/SDKs/WatchSimulator7.2.sdk
PlatformVersion: 7.2
PlatformPath: /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform
BuildID: 8D9D1CD2-32F3-11EB-B18E-209C67F7BDAB
ProductBuildVersion: 18S561
ProductCopyright: 1983-2020 Apple Inc.
ProductName: Watch OS
ProductVersion: 7.2
Xcode 12.4
Build version 12D4e
環境変数などのBuild Settings
-
projectやworkspaceが存在するフォルダーで実行すること。
-
たくさん出るのでgrepで絞る。
$ xcodebuild -showBuildSettings
Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -showBuildSettings
Build settings for action build and target MyAppExample:
ACTION = build
AD_HOC_CODE_SIGNING_ALLOWED = NO
ALTERNATE_GROUP = staff
ALTERNATE_MODE = u+w,go-w,a+rX
ALTERNATE_OWNER = USERNAME
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = NO
ALWAYS_SEARCH_USER_PATHS = NO
ALWAYS_USE_SEPARATE_HEADERMAPS = NO
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
APPLY_RULES_IN_COPY_HEADERS = NO
ARCHS = arm64 armv7
ARCHS_STANDARD = arm64 armv7
ARCHS_STANDARD_32_64_BIT = armv7 arm64
ARCHS_STANDARD_32_BIT = armv7
ARCHS_STANDARD_64_BIT = arm64
ARCHS_STANDARD_INCLUDING_64_BIT = arm64 armv7
ARCHS_UNIVERSAL_IPHONE_OS = armv7 arm64
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor
AVAILABLE_PLATFORMS = appletvos appletvsimulator iphoneos iphonesimulator macosx watchos watchsimulator
BITCODE_GENERATION_MODE = marker
BUILD_ACTIVE_RESOURCES_ONLY = NO
BUILD_COMPONENTS = headers build
BUILD_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Products
BUILD_LIBRARY_FOR_DISTRIBUTION = NO
BUILD_ROOT = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Products
BUILD_STYLE =
BUILD_VARIANTS = normal
BUILT_PRODUCTS_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Products/Release-iphoneos
BUNDLE_CONTENTS_FOLDER_PATH_deep = Contents/
BUNDLE_EXECUTABLE_FOLDER_NAME_deep = MacOS
BUNDLE_FORMAT = shallow
BUNDLE_FRAMEWORKS_FOLDER_PATH = Frameworks
BUNDLE_PLUGINS_FOLDER_PATH = PlugIns
BUNDLE_PRIVATE_HEADERS_FOLDER_PATH = PrivateHeaders
BUNDLE_PUBLIC_HEADERS_FOLDER_PATH = Headers
CACHE_ROOT = /var/folders/dq/lgbm733d7yj4cqjwz5bs09bc0000gn/C/com.apple.DeveloperTools/12.4-12D4e/Xcode
CCHROOT = /var/folders/dq/lgbm733d7yj4cqjwz5bs09bc0000gn/C/com.apple.DeveloperTools/12.4-12D4e/Xcode
CHMOD = /bin/chmod
CHOWN = /usr/sbin/chown
CLANG_ANALYZER_NONNULL = YES
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE
CLANG_CXX_LANGUAGE_STANDARD = gnu++14
CLANG_CXX_LIBRARY = libc++
CLANG_ENABLE_MODULES = YES
CLANG_ENABLE_OBJC_ARC = YES
CLANG_ENABLE_OBJC_WEAK = YES
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES
CLANG_WARN_BOOL_CONVERSION = YES
CLANG_WARN_COMMA = YES
CLANG_WARN_CONSTANT_CONVERSION = YES
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR
CLANG_WARN_DOCUMENTATION_COMMENTS = YES
CLANG_WARN_EMPTY_BODY = YES
CLANG_WARN_ENUM_CONVERSION = YES
CLANG_WARN_INFINITE_RECURSION = YES
CLANG_WARN_INT_CONVERSION = YES
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES
CLANG_WARN_STRICT_PROTOTYPES = YES
CLANG_WARN_SUSPICIOUS_MOVE = YES
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE
CLANG_WARN_UNREACHABLE_CODE = YES
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES
CLASS_FILE_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build/JavaClasses
CLEAN_PRECOMPS = YES
CLONE_HEADERS = NO
CODESIGNING_FOLDER_PATH = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Products/Release-iphoneos/MyAppExample.app
CODE_SIGNING_ALLOWED = YES
CODE_SIGNING_REQUIRED = YES
CODE_SIGN_CONTEXT_CLASS = XCiPhoneOSCodeSignContext
CODE_SIGN_IDENTITY = Apple Development
CODE_SIGN_INJECT_BASE_ENTITLEMENTS = YES
CODE_SIGN_STYLE = Automatic
COLOR_DIAGNOSTICS = YES
COMBINE_HIDPI_IMAGES = NO
COMPILER_INDEX_STORE_ENABLE = Default
COMPOSITE_SDK_DIRS = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/CompositeSDKs
COMPRESS_PNG_FILES = YES
CONFIGURATION = Release
CONFIGURATION_BUILD_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Products/Release-iphoneos
CONFIGURATION_TEMP_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos
CONTENTS_FOLDER_PATH = MyAppExample.app
COPYING_PRESERVES_HFS_DATA = NO
COPY_HEADERS_RUN_UNIFDEF = NO
COPY_PHASE_STRIP = NO
COPY_RESOURCES_FROM_STATIC_FRAMEWORKS = YES
CORRESPONDING_SIMULATOR_PLATFORM_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
CORRESPONDING_SIMULATOR_PLATFORM_NAME = iphonesimulator
CORRESPONDING_SIMULATOR_SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator14.4.sdk
CORRESPONDING_SIMULATOR_SDK_NAME = iphonesimulator14.4
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_DEXT_INSTALL_PATH = /System/Library/DriverExtensions
DEFAULT_KEXT_INSTALL_PATH = /System/Library/Extensions
DEFINES_MODULE = NO
DEPLOYMENT_LOCATION = NO
DEPLOYMENT_POSTPROCESSING = NO
DEPLOYMENT_TARGET_CLANG_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET
DEPLOYMENT_TARGET_CLANG_FLAG_NAME = miphoneos-version-min
DEPLOYMENT_TARGET_CLANG_FLAG_PREFIX = -miphoneos-version-min=
DEPLOYMENT_TARGET_LD_ENV_NAME = IPHONEOS_DEPLOYMENT_TARGET
DEPLOYMENT_TARGET_LD_FLAG_NAME = ios_version_min
DEPLOYMENT_TARGET_SETTING_NAME = IPHONEOS_DEPLOYMENT_TARGET
DEPLOYMENT_TARGET_SUGGESTED_VALUES = 9.0 9.2 10.0 10.2 11.0 11.2 11.4 12.1 12.3 13.0 13.2 13.4 13.6 14.1 14.3 14.4
DERIVED_FILES_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build/DerivedSources
DERIVED_FILE_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build/DerivedSources
DERIVED_SOURCES_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.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 = en
DEVELOPMENT_TEAM = XC6P73X67Y
DOCUMENTATION_FOLDER_PATH = MyAppExample.app/en.lproj/Documentation
DONT_GENERATE_INFOPLIST_FILE = NO
DO_HEADER_SCANNING_IN_JAM = NO
DSTROOT = /tmp/MyAppExample.dst
DT_TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
DWARF_DSYM_FILE_NAME = MyAppExample.app.dSYM
DWARF_DSYM_FILE_SHOULD_ACCOMPANY_PRODUCT = NO
DWARF_DSYM_FOLDER_PATH = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Products/Release-iphoneos
EFFECTIVE_PLATFORM_NAME = -iphoneos
EMBEDDED_CONTENT_CONTAINS_SWIFT = NO
EMBEDDED_PROFILE_NAME = embedded.mobileprovision
EMBED_ASSET_PACKS_IN_PRODUCT_BUNDLE = NO
ENABLE_BITCODE = YES
ENABLE_DEFAULT_HEADER_SEARCH_PATHS = YES
ENABLE_HARDENED_RUNTIME = NO
ENABLE_HEADER_DEPENDENCIES = YES
ENABLE_NS_ASSERTIONS = NO
ENABLE_ON_DEMAND_RESOURCES = YES
ENABLE_STRICT_OBJC_MSGSEND = YES
ENABLE_TESTABILITY = NO
ENABLE_TESTING_SEARCH_PATHS = NO
ENTITLEMENTS_ALLOWED = YES
ENTITLEMENTS_DESTINATION = Signature
ENTITLEMENTS_REQUIRED = YES
EXCLUDED_INSTALLSRC_SUBDIRECTORY_PATTERNS = .DS_Store .svn .git .hg CVS
EXCLUDED_RECURSIVE_SEARCH_PATH_SUBDIRECTORIES = *.nib *.lproj *.framework *.gch *.xcode* *.xcassets (*) .DS_Store CVS .svn .git .hg *.pbproj *.pbxproj
EXECUTABLES_FOLDER_PATH = MyAppExample.app/Executables
EXECUTABLE_FOLDER_PATH = MyAppExample.app
EXECUTABLE_NAME = MyAppExample
EXECUTABLE_PATH = MyAppExample.app/MyAppExample
EXPANDED_CODE_SIGN_IDENTITY =
EXPANDED_CODE_SIGN_IDENTITY_NAME =
EXPANDED_PROVISIONING_PROFILE =
FILE_LIST = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build/Objects/LinkFileList
FIXED_FILES_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build/FixedFiles
FRAMEWORKS_FOLDER_PATH = MyAppExample.app/Frameworks
FRAMEWORK_FLAG_PREFIX = -framework
FRAMEWORK_SEARCH_PATHS = /users/USERNAME/Documents/Xcode/Lib/Debug-iphonesimulator
FRAMEWORK_VERSION = A
FULL_PRODUCT_NAME = MyAppExample.app
GCC3_VERSION = 3.3
GCC_C_LANGUAGE_STANDARD = gnu11
GCC_INLINES_ARE_PRIVATE_EXTERN = YES
GCC_NO_COMMON_BLOCKS = YES
GCC_PFE_FILE_C_DIALECTS = c objective-c c++ objective-c++
GCC_SYMBOLS_PRIVATE_EXTERN = YES
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
GENERATED_MODULEMAP_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/GeneratedModuleMaps-iphoneos
GENERATE_MASTER_OBJECT_FILE = NO
GENERATE_PKGINFO_FILE = YES
GENERATE_PROFILING_CODE = NO
GENERATE_TEXT_BASED_STUBS = 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
HIDE_BITCODE_SYMBOLS = YES
HOME = /Users/USERNAME
ICONV = /usr/bin/iconv
INFOPLIST_EXPAND_BUILD_SETTINGS = YES
INFOPLIST_FILE = MyAppExample/Info.plist
INFOPLIST_OUTPUT_FORMAT = binary
INFOPLIST_PATH = MyAppExample.app/Info.plist
INFOPLIST_PREPROCESS = NO
INFOSTRINGS_PATH = MyAppExample.app/en.lproj/InfoPlist.strings
INLINE_PRIVATE_FRAMEWORKS = NO
INSTALLHDRS_COPY_PHASE = NO
INSTALLHDRS_SCRIPT_PHASE = NO
INSTALL_DIR = /tmp/MyAppExample.dst/Applications
INSTALL_GROUP = staff
INSTALL_MODE_FLAG = u+w,go-w,a+rX
INSTALL_OWNER = USERNAME
INSTALL_PATH = /Applications
INSTALL_ROOT = /tmp/MyAppExample.dst
IPHONEOS_DEPLOYMENT_TARGET = 8.0
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 = MyAppExample.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
KASAN_DEFAULT_CFLAGS = -DKASAN=1 -fsanitize=address -mllvm -asan-globals-live-support -mllvm -asan-force-dynamic-shadow
KEEP_PRIVATE_EXTERNS = NO
LD_DEPENDENCY_INFO_FILE = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build/Objects-normal/armv7/MyAppExample_dependency_info.dat
LD_GENERATE_MAP_FILE = NO
LD_MAP_FILE_PATH = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build/MyAppExample-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_DEXT_INSTALL_PATH = /Library/DriverExtensions
LIBRARY_FLAG_NOSPACE = YES
LIBRARY_FLAG_PREFIX = -l
LIBRARY_KEXT_INSTALL_PATH = /Library/Extensions
LINKER_DISPLAYS_MANGLED_NAMES = NO
LINK_FILE_LIST_normal_arm64 =
LINK_FILE_LIST_normal_armv7 =
LINK_WITH_STANDARD_LIBRARIES = YES
LLVM_TARGET_TRIPLE_OS_VERSION = ios8.0
LLVM_TARGET_TRIPLE_VENDOR = apple
LOCALIZABLE_CONTENT_DIR =
LOCALIZED_RESOURCES_FOLDER_PATH = MyAppExample.app/en.lproj
LOCALIZED_STRING_MACRO_NAMES = NSLocalizedString CFCopyLocalizedString
LOCALIZED_STRING_SWIFTUI_SUPPORT = YES
LOCAL_ADMIN_APPS_DIR = /Applications/Utilities
LOCAL_APPS_DIR = /Applications
LOCAL_DEVELOPER_DIR = /Library/Developer
LOCAL_LIBRARY_DIR = /Library
LOCROOT =
LOCSYMROOT =
MACH_O_TYPE = mh_execute
MAC_OS_X_PRODUCT_BUILD_VERSION = 20D64
MAC_OS_X_VERSION_ACTUAL = 110200
MAC_OS_X_VERSION_MAJOR = 110000
MAC_OS_X_VERSION_MINOR = 110200
METAL_LIBRARY_FILE_BASE = default
METAL_LIBRARY_OUTPUT_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Products/Release-iphoneos/MyAppExample.app
MODULES_FOLDER_PATH = MyAppExample.app/Modules
MODULE_CACHE_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/ModuleCache.noindex
MTL_ENABLE_DEBUG_INFO = NO
MTL_FAST_MATH = 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/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build/Objects
OBJECT_FILE_DIR_normal = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build/Objects-normal
OBJROOT = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex
ONLY_ACTIVE_ARCH = NO
OS = MACOS
OSAC = /usr/bin/osacompile
OTHER_LDFLAGS = -framework MySwiftFramework
PACKAGE_TYPE = com.apple.package-type.wrapper.application
PASCAL_STRINGS = YES
PATH = /Applications/Xcode.app/Contents/Developer/usr/bin:/users/USERNAME/.nvm/versions/node/v14.15.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/Apple/usr/bin:/users/USERNAME/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 = MyAppExample.app/pbdevelopment.plist
PKGINFO_FILE_PATH = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build/PkgInfo
PKGINFO_PATH = MyAppExample.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_DISPLAY_NAME = iOS
PLATFORM_NAME = iphoneos
PLATFORM_PREFERRED_ARCH = arm64
PLATFORM_PRODUCT_BUILD_VERSION = 18D46
PLIST_FILE_OUTPUT_FORMAT = binary
PLUGINS_FOLDER_PATH = MyAppExample.app/PlugIns
PRECOMPS_INCLUDE_HEADERS_FROM_BUILT_PRODUCTS_DIR = YES
PRECOMP_DESTINATION_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build/PrefixHeaders
PRESERVE_DEAD_CODE_INITS_AND_TERMS = NO
PRIVATE_HEADERS_FOLDER_PATH = MyAppExample.app/PrivateHeaders
PRODUCT_BUNDLE_IDENTIFIER = com.digitalnauts.MyAppExample
PRODUCT_BUNDLE_PACKAGE_TYPE = APPL
PRODUCT_MODULE_NAME = MyAppExample
PRODUCT_NAME = MyAppExample
PRODUCT_SETTINGS_PATH = /users/USERNAME/Documents/Xcode/MyAppExample/MyAppExample/Info.plist
PRODUCT_TYPE = com.apple.product-type.application
PROFILING_CODE = NO
PROJECT = MyAppExample
PROJECT_DERIVED_FILE_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/DerivedSources
PROJECT_DIR = /users/USERNAME/Documents/Xcode/MyAppExample
PROJECT_FILE_PATH = /users/USERNAME/Documents/Xcode/MyAppExample/MyAppExample.xcodeproj
PROJECT_NAME = MyAppExample
PROJECT_TEMP_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build
PROJECT_TEMP_ROOT = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex
PROVISIONING_PROFILE_REQUIRED = YES
PUBLIC_HEADERS_FOLDER_PATH = MyAppExample.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/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build/ResourceManagerResources
REZ_OBJECTS_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build/ResourceManagerResources/Objects
SCAN_ALL_SOURCE_FILES_FOR_INCLUDES = NO
SCRIPTS_FOLDER_PATH = MyAppExample.app/Scripts
SDKROOT = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk
SDK_DIR = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk
SDK_DIR_iphoneos14_4 = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk
SDK_NAME = iphoneos14.4
SDK_NAMES = iphoneos14.4
SDK_PRODUCT_BUILD_VERSION = 18D46
SDK_VERSION = 14.4
SDK_VERSION_ACTUAL = 140400
SDK_VERSION_MAJOR = 140000
SDK_VERSION_MINOR = 140400
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/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Products/Release-iphoneos/DerivedSources
SHARED_FRAMEWORKS_FOLDER_PATH = MyAppExample.app/SharedFrameworks
SHARED_PRECOMPS_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/PrecompiledHeaders
SHARED_SUPPORT_FOLDER_PATH = MyAppExample.app/SharedSupport
SKIP_INSTALL = NO
SOURCE_ROOT = /users/USERNAME/Documents/Xcode/MyAppExample
SRCROOT = /users/USERNAME/Documents/Xcode/MyAppExample
STRINGS_FILE_OUTPUT_ENCODING = binary
STRIP_BITCODE_FROM_COPIED_FILES = YES
STRIP_INSTALLED_PRODUCT = YES
STRIP_STYLE = all
STRIP_SWIFT_SYMBOLS = YES
SUPPORTED_DEVICE_FAMILIES = 1,2
SUPPORTED_PLATFORMS = iphonesimulator iphoneos
SUPPORTS_MACCATALYST = NO
SUPPORTS_TEXT_BASED_API = NO
SWIFT_COMPILATION_MODE = wholemodule
SWIFT_OPTIMIZATION_LEVEL = -O
SWIFT_PLATFORM_TARGET_PREFIX = ios
SWIFT_VERSION = 5.0
SYMROOT = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/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_DEXT_INSTALL_PATH = /System/Library/DriverExtensions
SYSTEM_DOCUMENTATION_DIR = /Library/Documentation
SYSTEM_KEXT_INSTALL_PATH = /System/Library/Extensions
SYSTEM_LIBRARY_DIR = /System/Library
TAPI_VERIFY_MODE = ErrorsOnly
TARGETED_DEVICE_FAMILY = 1,2
TARGETNAME = MyAppExample
TARGET_BUILD_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Products/Release-iphoneos
TARGET_NAME = MyAppExample
TARGET_TEMP_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build
TEMP_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build
TEMP_FILES_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build
TEMP_FILE_DIR = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex/MyAppExample.build/Release-iphoneos/MyAppExample.build
TEMP_ROOT = /users/USERNAME/Library/Developer/Xcode/DerivedData/MyAppExample-bccbpvwrbmswdohhimuegjzkyxhv/Build/Intermediates.noindex
TEST_FRAMEWORK_SEARCH_PATHS = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Frameworks /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS14.4.sdk/Developer/Library/Frameworks
TEST_LIBRARY_SEARCH_PATHS = /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/lib
TOOLCHAIN_DIR = /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain
TREAT_MISSING_BASELINES_AS_TEST_FAILURES = NO
UID = 501
UNLOCALIZED_RESOURCES_FOLDER_PATH = MyAppExample.app
UNSTRIPPED_PRODUCT = NO
USER = USERNAME
USER_APPS_DIR = /users/USERNAME/Applications
USER_LIBRARY_DIR = /users/USERNAME/Library
USE_DYNAMIC_NO_PIC = YES
USE_HEADERMAP = YES
USE_HEADER_SYMLINKS = NO
USE_LLVM_TARGET_TRIPLES = YES
USE_LLVM_TARGET_TRIPLES_FOR_CLANG = YES
USE_LLVM_TARGET_TRIPLES_FOR_LD = YES
USE_LLVM_TARGET_TRIPLES_FOR_TAPI = YES
VALIDATE_PRODUCT = YES
VALIDATE_WORKSPACE = NO
VALID_ARCHS = arm64 arm64e armv7 armv7s
VERBOSE_PBXCP = NO
VERSIONPLIST_PATH = MyAppExample.app/version.plist
VERSION_INFO_BUILDER = USERNAME
VERSION_INFO_FILE = MyAppExample_vers.c
VERSION_INFO_STRING = "@(#)PROGRAM:MyAppExample PROJECT:MyAppExample-"
WRAPPER_EXTENSION = app
WRAPPER_NAME = MyAppExample.app
WRAPPER_SUFFIX = .app
WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES = NO
XCODE_APP_SUPPORT_DIR = /Applications/Xcode.app/Contents/Developer/Library/Xcode
XCODE_PRODUCT_BUILD_VERSION = 12D4e
XCODE_VERSION_ACTUAL = 1240
XCODE_VERSION_MAJOR = 1200
XCODE_VERSION_MINOR = 1240
XPCSERVICES_FOLDER_PATH = MyAppExample.app/XPCServices
YACC = yacc
arch = armv7
diagnostic_message_length = 190
variant = normal
- projectやworkspaceが存在するフォルダーで実行しないとエラーが発生する。
xcodebuild: error: The directory /xxx does not contain an Xcode project, workspace or package.
ビルド
xcodebuild \
-target MyAppExample \
-project MyAppExample.xcodeproj \
-configuration Release \
-sdk iphonesimulator \
build
- build フォルダ 以下にモジュールができる。
参考
-
Technical Note TN2339: Building from the Command Line with Xcode FAQ https://developer.apple.com/library/archive/technotes/tn2339/_index.html
-
Building for iOS Simulator-x86_64 … | Apple Developer Forums