列出可用的目标方案和构建配置

列出当前目录中项目的所有可用方案

xcodebuild -list

你可以选择将路径传递给项目或工作区文件

xcodebuild -list -workspace ./MyApp.xcworkspace
xcodebuild -list -project ./MyApp.xcodeproj

示例输出

Information about project "Themoji":
    Targets:
        Themoji
        ThemojiUITests
        Unit

    Build Configurations:
        Debug
        Release

    If no build configuration is specified and -scheme is not passed then "Release" is used.

    Schemes:
        Themoji
        ThemojiUITests
        Units