Xamarin.ios Visual Studio 2022 Archive failing (windows -> Remote)

Kevin Deery 11 Reputation points
2022-02-07T13:36:03.783+00:00

Hey,

Extremely frustrating week of going round in circles to no avail.

Certificates
In place on the Macbook for distribution
Added to App Store
Added to Keychain

Identifier
Tried with wildcard and explicit (Values match bundle name)

Profile
In place and linked to correct certificate

Just to point , when i view this on Visual Studio for mac, Keychain status is valid. When i look at these on Windows with active connection to the mac it says its not "Not in Keychain"

Apple Accounts
Tools -> Options -> Xamarin -> Apple accounts
I see the connected account , Role is XCODE_FREE_USER however in most tutorials i see Agent (does this make a difference>)

The create Certificate for Distribution is greyed out therefore i manually have to create the certificate on the mac and upload to the dev portal. (is this a problem?)

171840-2.png

Build
Release -> iPhone -> Remote Device

171886-1.png

Bundle Signing

171952-3.png

I would appreciate any help, im 100% out of ideas at this point

Thanks
Kevin

Developer technologies | .NET | Xamarin
{count} vote

1 answer

Sort by: Most helpful
  1. Kevin Deery 11 Reputation points
    2022-02-15T10:56:54.963+00:00

    Success (What a pain), ive managed to sign this

    1. Delete all certificates from Key Chain
    2. Open xcode (make sure apple account is connected), generate Development and Distribution certificates
    3. Update Profiles to use new certificates (Apple dev portal)
    4. Export from Keychain .p12 file
    5. Open Visual Studio , Tools -> Xamarin -> Apple Accounts (make sure account is connect)
    6. Click View Details
    7. Import Dev and Distribution certificate
    8. Download profiles
    9. Release configuration , Manual , choose profile and Team (not automatic)
    10. Archive in Release mode, iPhone, IOS, Remote device (i have ipad connected)

    Do not use your macbook, it will fail if your targeting App Store. Deployment is Generic therefore the Macbook thinks its for itunes too.

    Hope this helps someone

    @Microsoft really need better instructions for deploying with iOS


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.