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.)