列出可用的目標方案和構建配置

列出當前目錄中專案的所有可用方案

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