Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

xcodebuild - build all targets using command line

Tags:

ios

xcodebuild

I'm using the command line to build all the targets in my project. I have 3 targets in my project but the build file(.app) is getting created for one target.

Below is script

CONFIG="Ad Hoc"
SDK="iphoneos"
xcodebuild -alltargets -sdk "$SDK" -configuration "$CONFIG"
like image 656
Raghav Avatar asked Dec 19 '22 11:12

Raghav


1 Answers

xcodebuild -project projectname.xcodeproj -alltargets
like image 99
Raghav Avatar answered Dec 21 '22 23:12

Raghav