Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

List Targets from XCode via command line

Tags:

xcode

macos

Is it possible to get the targets of a Xcode project from the command line, or any other way without opening the file in Xcode itself?

Thanks!

like image 957
DarthVadar123451 Avatar asked Dec 02 '22 14:12

DarthVadar123451


1 Answers

try

xcodebuild -list 


macaroni:CLIClone todd$ xcodebuild -list
Information about project "CLIClone":

Targets:
    CLIClone

Build Configurations:
    Debug
    Release

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

Schemes:
    CLIClone
like image 107
Todd Avatar answered Dec 06 '22 10:12

Todd