Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
577 views
in Technique[技术] by (71.8m points)

ios - Run ipa on device without cable and not with TestFlight?

Is it possible to distribute IPA to device without TestFlight, and not via cable? I have a new MacBook Pro with usb-c and an iPhone. Hard to get company set up TestFlight. Any idea how to test on device?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Yes. Ad-Hoc OTA is the way to go.

On developer.apple.com:

  1. navigate to your account & login
  2. click Certificates, IDs & Profiles in the side menu on the left
  3. on the left, find Devices & click +
  4. register multiple devices by uploading a spreadsheet including the UDIDs and names of the devices
  5. follow the steps to finalize the registration process

You might need to wait 24 hours; I found, it sometimes takes really long for the changes to take effect.

Inside Xcode:

  1. prep: open Xcode settings, accounts, your account and then re-download all the profiles and certificates
  2. archive the product
  3. open the Organizer window and find the archive you've just created
  4. click Distribute App
  5. choose Ad-Hoc
  6. make sure to have include manifest for OTA installation enabled
  7. follow the steps
  8. finally, click export and choose a location to save the files

Upload all the files (icons, .plist & .ipa) to your server. Note that the server needs to be https, this is mandatory. If your's isn't, upload it to Dropbox or some other cloud service. If you're using Dropbox, make sure to replace www.dropbox.com with dl.dropboxusercontent.com.

Manifest

  1. open the manifest.plist file and insert all the new urls
    • again, for dropbox: replace www.dropbox.com with dl.dropboxusercontent.com
  2. upload the manifest plist to a secure server.

Link:

itms-services://?action=download-manifest&url=https://dl.dropboxusercontent.com/s/YourURLHere/manifest.plist

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...