Xcode "Build and Archive" from command line -



Xcode "Build and Archive" from command line -

xcode 3.2 provides awesome new feature under build menu, "build , archive" generates .ipa file suitable advertisement hoc distribution. can open organizer, go "archived applications," , "submit application itunesconnect."

is there way utilize "build , archive" command line (as part of build script)? i'd assume xcodebuild involved somehow, man page doesn't seem this.

update michael grinich requested clarification; here's can't command-line builds, features can xcode's organizer after "build , archive."

you can click "share application..." share ipa beta testers. guillaume points out below, due xcode magic, ipa file not require separately distributed .mobileprovision file beta testers need install; that's magical. no command-line script can it. example, arrix's script (submitted may 1) not meet requirement. more importantly, after you've beta tested build, can click "submit application itunes connect" submit exact same build apple, binary tested, without rebuilding it. that's impossible command line, because signing app part of build process; can sign bits advertisement hoc beta testing or can sign them submission app store, not both. no ipa built on command-line can beta tested on phones , submitted straight apple.

i'd love come along , prove me wrong: both of these features work great in xcode gui , cannot replicated command line.

i found how automate build , archive process comand line, wrote blog article explaining how can accomplish that.

the command have utilize xcrun:

/usr/bin/xcrun -sdk iphoneos packageapplication -v "${release_builddir}/${application_name}.app" -o "${build_history_dir}/${application_name}.ipa" --sign "${developer_name}" --embed "${provisoning_profile}"

you find details in the article. if have questions dont hesitate ask.

xcode command-line build

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -