dpTech
dpTech

Reputation: 39

Cannot push .net MAUI app to iPhone from Windows Computer - ApplicationVerificationFailed

Up until this week I have been using Xamarin.Forms for my mobile development. I got a request for a simple app and I thought I would take this opportunity to use .net MAUI. Things were going fine and I tried the app on Windows, on Android and then attempted to try it on iPhone. I cannot get Visual Studio 2022 17.3.0 Preview 2.0 to install the app on the iPhone.

I have a paid Apple Developer account and I can install and run my Xamarin.Forms apps on an iPhone just fine. For my Xamarin.Forms app I use Automatic Provisioning for bundle signing.

I can't even get the blank .net MAUI app to install on the iPhone. I tried the default values of Bundle Signing (Scheme = Manual, Signing Identity = Developer (automatic)). I have tried Automatic Provisioning (configuring Automatic Provisioning game me a green check mark). Every time I push that little green play button I get ApplicationVerificationFailed (A valid provisioning profile for this executable was not found).

Visual Studio 2022 17.3.0 Preview 2.0 on Windows 11 64-bit.
iPhone 11 Pro Max - software version 15.5 (plugged directly into the Windows machine)

Did .net MAUI devolve from Xamarin.Forms in this capability or am I missing something?

Thanks

Upvotes: 3

Views: 1587

Answers (2)

Alexandar May - MSFT
Alexandar May - MSFT

Reputation: 10148

This issue is currently being tracked in this thread.

Please follow up with that thread closely as our team will provide an update if either more information is needed, a workaround is available, or the issue is resolved.

Fortunately, per this thread, the workaround is that we can add a new entitlements file to your .NET Multi-platform App UI (.NET MAUI) app project, and add a new XML file named Entitlements.plist to the Platforms\iOS\ folder of your app project. Then add the following XML to the file:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
</dict>
</plist>

Upvotes: 0

dpTech
dpTech

Reputation: 39

One step closer is better than not...

Thanks To Alexander, I was able to at least install the app on an iPhone (app doesn't work but at least it installed and I was able to launch it).

The work around can be found here.

Basically, I copied the Entitlements.plist file from my working Xamarin.Forms iOS app and pasted it under Platforms/iOS folder in my MAUI project (and removed some keys within the file).

Thanks Steve and Alexander for your contributions.

Upvotes: 0

Related Questions