Cannot deploy to a physical iPhone using MAUI

phil ciraolo 86 Reputation points
2022-06-23T13:13:32.01+00:00

I cannot deploy to a physical iPhone. I beleieve this issue started after last VS2022 update to 17.3.0 but I cannot be sure. Deployment to my iPhone was working fine at one time but has since stopped.

My iPhone shows in the Debug drop down and in iTunes but when I run I now get the error:

Deploy Error: Could not install the application 'C:\Users\pcira\AppData\Local\Temp\Xamarin\HotRestart\Signing\TestiOS.app\out\TestiOS.ipa' on the device Phil’s iPhone. Details: ApplicationVerificationFailed|0xE8008015 - Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.ls9qhY/extracted/Payload/TestiOS.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)
2>Deploy failed. The app 'TestiOS.app' could not be deployed to the device 'Phil’s iPhone'. Please check the logs for more details.
2>Deploy failed

I did delete and add back my Apple account under Tools/Options/xamarin/Apple Accounts. I beleive before I did this it was displayed as a Interprise Account but now shows as Individual.
I added a Certificate using the Create Certificate button in the Details dialog which created a cert showing valid in the Options/Details dialog.

I have an Identifier named "VS Wildcard" in my Apple account which displays * (wildcard) as the Bundle ID.

My iPhone has been added in the Devices section of the Apple Account.

I have a Provisioning Profile named "VS: WildCard Development" that shows VS Wildcard (*) as App Id, 1 cert, 1 Device,status = Active.

No Keys and no Service in Apple Account.

The Tools/Options/xamarin/Apple Accounts/view details shows the vaild cert but no Provisioning Profiles.

I have tried setting project properties iOS/Build/Bundle Signing/scheme to Automatic Provisioning then selecting the Configure Automatic Provisioning link, selecting my team (me as individual). It trys the configure but errors with "An App ID with Indentifier '*' is not available. Setting.

I have tried adding my own wild card ID's com.senex.*, and com.senex.calezoo and then re-creating certs and profiles but no success.

Using MAUI on VS2022 17.3.0 Preview 2.0 on Windows 10 Home ver 21H1 OS build 19043.1766, iPhone SE ver 15.5 connected via USB. Itunes 12.12.4.1

This thread was created on the request of @Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.)

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,922 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 26,626 Reputation points Microsoft Vendor
    2022-06-24T02:22:21.8+00:00

    Hello @phil ciraolo ,

    I see you are using Hot Restart. There is a related issue has been tracked at https://developercommunity.visualstudio.com/t/:-0xe8008015-A-valid-provisioning-profi/10073337?space=8&q=hotrestart&sort=newest, you could follow the progress.

    We can use Pair to Mac for iOS development so far, please connect your iPhone to your MAC and deploy on your iPhone.

    Best Regards,
    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

0 additional answers

Sort by: Most helpful