Seems Like .NET MAUI Is Nonetheless Clunky Dealing With iOS’s Provisioning Profile “System”

0
23
Seems Like .NET MAUI Is Nonetheless Clunky Dealing With iOS’s Provisioning Profile “System”


To all:

I have been making an attempt to port an app I wrote final summer time in Xamarin Types over to the most recent model of .NET MAUI. I had few points (however not none) with the Android model, however – as common – iOS is so arcane that both Microsoft’s engineers are lacking one thing, or the method actually remains to be simply that unhealthy. And I’ve 17.12.3, the most recent replace, too.

TLDR: Nab this repository:
https://github.com/ctmobiledev/DummyDec3-MAUI-iOS
Attempt it, and see for those who get the identical factor. On the “Archive Particulars” dialog, below “Provisioning Profile”, I solely get the error message “No matching profiles discovered.” And that’s JUST after having outlined the profile at developer.apple.com!

Under is the most recent set of directions I attempted to work by way of the night I posted this Many thanks for any insights!

At AppStoreConnect:

Apps >> Register a brand new app ID

Apps >> “+” (Add) >> Fill out display:

App ID/Prefix/Group ID
Description
Bundle ID → use reverse area if you’d like, say Express or “.*” shall be required on the finish (does not imply wild card for any areas within the identify)

Click on Register

Go to Apps >> New App
NOTE: could take a couple of minutes for the brand new ID to indicate up (unhealthy efficiency on Apple’s half), refresh the display with F5 till the drop-down has the ID simply entered above.

When finished, the Distribution tab/display ought to learn Put together for Distribution (yellow mild icon).

In Visible Studio (Group Version):

Restart VS if you have not already.

Create a brand new mission.

Select .NET MAUI App template (could have to seek for “maui” to search out it).

On Configure your new mission, choose the C:MAUI folder if it hasn’t been chosen already.

Click on Subsequent.

Depart 8.0 assist, click on Subsequent.

Click on Create, it will generate the bottom information.

Provisioning and Constructing:

Proper-click on the mission identify (not the answer identify, however the mum or dad proper beneath it).

Shut (“X”) all of the debug home windows at display backside.

Go to the highest of the tree with “Utility” and make modifications to something with out a “$” image.

Open the “iOS” node within the tree at display left.

Go right down to “MAUI Shared”, full any blanks there.

Scroll previous Android to the iOS part, increase the tree at display left.

Uncheck the LLVM compiler for Launch builds.

Bundle Signing part – click on on Configure Automated Provisioning

Attempt deciding on a crew. If it fails, shut the window and alter to Guide Provisioning.

Select the one iPhone Distribution Certificates (starting with 2F7)

Depart Provisioning Profile as Automated.

On the Manifest line, click on the hyperlink and alter the Bundle Identifier. Attempt compiling with out including the 10-char quantity first.

Change construct sort to Launch if hasn’t been finished but.

Do a Clear, after which a Rebuild (which compiles from scratch, not incrementally).

If there are Android licenses needing approval, approve them, then Clear and Rebuild once more.

Change the machine to the iOS bodily machine (e.g., “iPhone 12 Machine” matching the About web page on the iPhone or iPad).

Proper-click on the mission “head”, one degree beneath the highest of the tree. Processing will present “Archiving App Bundle…” The method can take anyplace between 5 and 20 minutes. To see how lengthy the most recent construct has been going, take a look at the “Creation Date” discipline on the second line. NOTE: The Creation Date will change to the compilation completion when it is finished.

Creation of IPA file and add course of

That is the place .NET MAUI has had issues for me. Cannot get to saving to an IPA file.

Click on the Distribute… button for the most recent construct simply accomplished. Double verify the archive particulars within the higher left nook below the display title to make sure they’re appropriate, particularly the bundle iD.

Of the three buttons, click on on App Retailer.

Change the Signing Identification drop-down to the iPhone Distribution choice. NOTE: the 10-digit crew ID must be chosen.

For the Provisioning Profile drop-down, there SHOULD be the provisioning profile ID specified earlier on.

Return to the CSPROJ file – the second line of the Resolution Explorer “tree” and search for iOS, then Bundle Signing. Change again to Automated Provisioning.

Select Configure Automated Provisioning once more.

Select a crew. Once more, if an error message happens, exit Visible Studio utterly, doing a Save All earlier than exiting.

Restart VS, and even the PC if desired.

Select the final mission edited, will probably be on high. Look ahead to the pc to reconnect to the Mac pc with Pair To Mac (do it manually if wanted).

Double-Checking

Go to developer.apple.com and sign up ON THE MAC COMPUTER (not the Home windows one working VS).

Click on on Profiles.

Find the App ID outlined above.

Choose ALL Certificates, all containers must be checked.

Choose ALL Units, all gadgets must be checked.

Make sure the identify reads: “VS: WildCard Growth” precisely.

Click on Save.

On the Generate A Provisioning Profile display, click on on Obtain.

Within the browser’s Downloads folder, there shall be a file referred to as:

VS_WildCard_Development.mobileprovision

Double-click on this file to put in it, it’s going to wind up in Xcode, which VS has to “speak” to as a way to get ID’s and numbers and names appropriate.

Exit VS and restart it.

Go to the CSPROJ (second line of the tree within the Resolution Explorer).

Select Guide Provisioning.

For Signing Identification, guarantee it reads the iPhone Distribution.

For Provisioning Profile, open the drop-down and choose VS: WildCard Growth.

Proper-click on the CSPROJ file.

At this level I gave up. Both I am lacking one thing, or there’s nonetheless severe bugs on the iOS facet for .NET MAUI. Working with Xamarin Types final yr was sophisticated, however at the very least I used to be lastly capable of generate one thing I may add with Transporter. Can anybody see the place I slipped up? Thanks.

The general public GitHub repository is right here (and it is only a pattern mission, nothing fancy):

https://github.com/ctmobiledev/DummyDec3-MAUI-iOS

Any assist or insights could be tremendously appreciated. I actually like how far MAUI has include Android, however iOS is like programming within the Rosetta Stone. I’m wondering if I would like a particular incantation to make this work…

LEAVE A REPLY

Please enter your comment!
Please enter your name here