Archive multiple IOS xcode target in command line -
i have ios xcode project has several targets. number of targets in project continue grow project progresses , expands. when create new version, pain have go through each target , manually create archive. looked how archive multiple targets using command line, none of answers spoke trying accomplish. , guidance appreciated.
i believe following partial command part of solution:
xcodebuild archive
archive: archive scheme build root (symroot). requires specifying workspace , scheme.
i suppose want build ci server manually if want read schemes in xcode project
xcodebuild -list | awk 'p && nf {print \$0";";} /schemes:/ {p=1}' > schemelist.txt
this put schemes in text file. have read text file manually retrieve each scheme.
you can use below command line produce archive
xcodebuild -scheme ${schemename} -sdk iphoneos$sdkversion -configuration release clean archive -archivepath ${archivepath}.xcarchive
and below xcode command produce ipa.
xcodebuild -exportarchive -archivepath ${archivepath}.xcarchive -exportoptionsplist exportoptions.plist -exportpath ${exportpath}
Comments
Post a Comment