'Xamarin: Unable to upload Archive to AppStore
Visual Studio 2019 (Windows) / Xamarin 4.7.0.968
I create an iOS Archive (with no errors) but when I choose Distribute / AppStore and select the ID/Profile that I have already set up in Visual Studio, I get prompted for ID/Password as expected. But then it fails with the error:
AppStore bundle validation failed for archive MyApp.Mobile.iOS
"altool" exited with code 1.
Does anyone have any ideas what may be wrong?
Solution 1:[1]
Uploading to the App Store didn't worked for me following these instructions and using Visual Studio 2019 (16.7.1). I always got
Errors
App Store bundle validation failed for archive XXX
"altool" exited with code 1
We are unable to create an authentication session.
Apple mentions three ways for uploading:
- Xcode
- altool
- Transporter app
The easiest way is to use Xcode. When you have build for Release and archived your application (in VS 2019 on your Windows machine), you can do this on your Mac in Xcode: Window > Organizer > Archives > Distribute App
Solution 2:[2]
Make sure:
- You use App Specific Password.
- Make sure you INCREACE THE VERSION AND THE BUILD NUMBERS in info.plist
Solution 3:[3]
I used the Transporter App because nothing else was working. The upload failed again, but Transporter actually showed a great error message... my build version number had to be updated in Info.plist (oops!).
After updating the version number and re-archiving, the Distribute button worked as intended.
To use the Transport App
- Download Transport App (made by Apple) from App store and open it on the mac
- Build the iOS project in release mode on Visual Studio
- Right-click the iOS project in Visual Studio and Show IPA on Build Server
- If Show IPA on Build Server is greyed-out/disabled navigate to the file directly on your mac instead...
- Open Finder
- Click Go > Go to Folder... on the toolbar
- enter ~/Library/Caches/Xamarin/mtbs/builds/
- Continue navigating to the release folder... {app name}/bin/{iPhone}/Release
- Find the file with the .ipa extension
- If Show IPA on Build Server is greyed-out/disabled navigate to the file directly on your mac instead...
- Drag the IPA file into the open Transporter app
- Click Deliver
- If failed, click the Issue button to see why
Solution 4:[4]
With the most recent VS 2019 on Windows and Xcode on Mac, Show IPA file on Build was not highlighted nor was the icon for it in the menu bar. But when I launched VS again the both were highlighted and the folder displayed on the Mac when executed. Perhaps there is a latency problem with VS where you need to restart it for the feature to work.
Solution 5:[5]
I got this (fairly cryptic) error message when I was using an incorrect "App Specific Password".
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | testing |
| Solution 2 | Ljupcho Hristov |
| Solution 3 | Shadesz |
| Solution 4 | B Conrad |
| Solution 5 | Meekohi |
