xcode8 - Command line create Ad Hoc .ipa issue -


since updating xcode 8.3, i've found xcrun packageapplication deprecated , i've been trying switch on using xcodebuild exportarchive. i've seem quite few posts problems doing still haven't managed working myself.

my test call is:

xcodebuild -exportarchive ipa -archivepath test.xcarchive/products/applications/test.app -exportpath . -exportoptionsplist a.plist 

my xcarchive seems fine can package ad hoc distribution manually in xcode.

my plist is:

<?xml version="1.0" encoding="utf-8"?> <!doctype plist public "-//apple//dtd plist 1.0//en" "http://www.apple.com/dtds/propertylist-1.0.dtd"> <plist version="1.0"> <dict> <key>uploadsymbols</key> <false/> <key>uploadbitcode</key> <false/> <key>method</key> <string>ad-hoc</string> <key>compilebitcode</key> <false/> </dict> </plist> 

but error:

error: exportarchive: exportoptionsplist error key 'method': expected 1 of {}, found error domain=idefoundationerrordomain code=1 "exportoptionsplist error key 'method': expected 1 of {}, found " userinfo={nslocalizeddescription=exportoptionsplist error key 'method': expected 1 of {}, found }

i've been trying use fast lane gym. that, can create .ipa on command line need specify provisioning profile use it's not being signed correct 1 testers.

if need more information, please let me know.

thanks, chris.

your value -archivepath param not correct, please try reference xcarchive. can omit ipa string after -exportarchive, has no effect:

xcodebuild -exportarchive -archivepath test.xcarchive -exportpath . -exportoptionsplist a.plist 

the xcarchive contains info.plist, specifies app bundle can located inside xcarchive, don't need specify yourself.

see man xcodebuild details


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -