Xcodebuild - Build all targets using command line

I am using command line to create all targets in my project. I have 3 targets in my project, but the build file (.app) is generated for one target.

Below script

CONFIG="Ad Hoc"
SDK="iphoneos"
xcodebuild -alltargets -sdk "$SDK" -configuration "$CONFIG"

      

+3


source to share


1 answer


xcodebuild -project projectname.xcodeproj -alltargets

      



+9


source







All Articles