xcode-select切换或者指定xcode命令行版本
切换xcode命令行版本 sudo xcode-select --switch /指定版本的xcode路径Xcode.app 恢复默认的xcode命令行版本 当使用 xcodebuild 莫名其妙的出问题时,可以考虑使用此命令恢复 sudo xcode-select -r 使用对话框安装命令行工具 sudo xcode-select --install
切换xcode命令行版本 sudo xcode-select --switch /指定版本的xcode路径Xcode.app 恢复默认的xcode命令行版本 当使用 xcodebuild 莫名其妙的出问题时,可以考虑使用此命令恢复 sudo xcode-select -r 使用对话框安装命令行工具 sudo xcode-select --install
列出工作空间中的所有scheme xcodebuild -list -workspace abc.xcworkspace 输出 Information about workspace "abc": Schemes: abc AFNetworking FMDB GTMBase64 Minizip Pods-abc 列出项目的所有target及Configurations xcodebuild -list -project abc.xcodeproj 输出 Information about project "abc": Targets: abc Build Configurations: Debug Release If no build configuration is specified and -scheme is not passed then "Release" is used. Schemes: abc 编译指定的scheme或Target 指定scheme xcodebuild -workspace abc.xcworkspace -scheme test 或者 xcodebuild -project abc.xcodeproj -scheme test 此时默认编译 Release 版 ...