Andrew Ebling
Andrew Ebling

Reputation: 10283

Download .ipa build via App Store Connect API

Due to some unique quality and regulatory requirements in our organisation, we need to be able to download a .ipa build from App Store Connect, in order to be able to compare it against a locally built binary. I appreciate this is an unusual requirement, but it is non-negotiable.

Clearly there is no way to do this via the App Store Connect web interface, so I've been looking at the App Store Connect API. However it is ambiguous from the documentation, whether it is possible to use this to download an .ipa build.

Does anyone know if this is possible, and how one might go about doing it if so please?

Upvotes: 7

Views: 22182

Answers (5)

JiangHongTiao
JiangHongTiao

Reputation: 885

I know I'm answering pretty old question, but if someone would still need this.. It seems Apple has added in the meantime way how to download artifacts, if you build it through Xcode Cloud.

Go to: Xcode Cloud -> Builds -> Expand Archiving build step -> Click Build number -> In the Left menu: Archiving action -> Artifacts -> There you choose what you want to download.

Happy testing

Upvotes: 0

Morris
Morris

Reputation: 613

If the file gets deleted before you can copy it, you can use this command:

watch -n 0.1 find "~/Library/Group\ Containers/K36BKF7T3D.group.com.apple.configurator" -iname "*.ipa" -exec 'cp -r {} ~/Downloads \;'

When it's downloaded it will copy it to the Downloads folder. You're welcome.

Part of the credits to my colleague Daniël.

Upvotes: 1

Kreidol
Kreidol

Reputation: 396

EDIT: I know this question is aimed at Downloading Appstore/Testflight builds, specifically, but wanted to provide this answer for others who find your question while looking for it from anywhere.

You can download iOS .ipa from Firebase distribution, as well as for Android .apks. But you do need to have the right permissions.

enter image description here
I just did it 5 minutes ago. See ☝️?

Go into App Distribution > find your app scheme/variant > expand build number > see if you have a Download button. If you don't, your company needs to bump your permissions up a bit higher. enter image description here

Keep in mind that firebase apps can experience limitations when interacting with Apple SDK features, though, like SIWA. You'd need to use Testflight to test things like that if they don't work for you (we have decent devs and never could get it working on Firebase builds).

Upvotes: 0

Tajinder singh
Tajinder singh

Reputation: 886

We can download IPA file with the help of Apple Configurator. Follow below steps to download IPA file.

  • Download Apple Configurator 2 app on your MAC.
  • Connect your iPhone with MAC and Apple ID should be same in apple Configurator and iPhone.
  • New window will display with app count badge in All Devices Tab.
  • Right click on your connected device in Apple Configurator and select Add and then Apps.
  • Process will complete and Popup will show with options, no need to click any option and go to this path

~/Library/Group Containers/K36BKF7T3D.group.com.apple.configurator/Library/Caches/Assets/TemporaryItems/MobileApps/

  • Save IPA file in your directory -Now stop Apple Configurator

Upvotes: 9

Max
Max

Reputation: 6238

Apple does not provide any way of retrieving an upload app/IPA. It's neither possible through App Store Connect nor the App Store Connect API.

You can only check entitlements and additional build information in the App Store Connect interface. For that go to App Store Connect > My Apps > Activity > All Builds > Click on the build

(Fastlane does also not provide any way, because Apple does not expose the data. It uses the "web API", i.e. has access to more information than the "standard" App Store Connect API)

Upvotes: 6

Related Questions