ios - Export an OTA installable IPA from XCARCHIVE -


i'm migrating our build scripts produce xcarchive files, can upload builds right xcode organizer, however, i'm having trouble getting builds work on air now.

i'm building archive with:

xcodebuild -scheme myscheme \        "code_sign_identity[sdk=iphoneos*]=$appstore_identity" \        provisioning_profile=$appstore_profile_id \         -archivepath $outputarchive         archive` 

then i'm trying export , re-sign using enterprise distribution profile with:

enterprise_profile_name=`basename $enterprise_profile_file .mobileprovision` \ xcodebuild  -exportarchive \             -archivepath "$outputarchive" \             -exportformat ipa \             -exportprovisioningprofile "$enterprise_profile_name" \             -exportpath "$outputipa" 

the resulting ipa looks correct (contains correct profile, codesign says it's valid, etc), however, when generate manifest file can installed on air things stop working. on ios 7 devices 'installing..., waiting...' loop , app never get's installed.

any suggestions?

update 1

i've tried exporting app archive , resigning packageapplication:

xcodebuild -exportarchive \             -archivepath "$outputarchive" \             -exportformat app \             -exportwithoriginalsigningidentity \             -exportpath "$outputapp"  xcrun packageapplication \         "$outputapp" \         -o "$outputipa" \         --sign "$enterprise_identity" \         --embed "$enterprise_profile_file" 

but resulting ipa still fails install ota , syncing via itunes.

@mishiemoo , chatted offline , seems i'm trying isn't possible because trying work across teams. have 2 teams , b, each own identity , provisioning profile. has enterprise profile com.foo.*. b has regular profile com.foo.bar.

i building b , trying resign a. isn't working because 2 different accounts 2 different team identifiers.

result: need build twice (once each account).


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -