question

38126496 avatar image
0 Votes"
38126496 asked WenyanZhang-MSFT commented

Win11 VS2022 latest Preview Maui & iOS - 0xe8008015 (A valid provisioning profile for this executable was not found)

So, how exactly do I deploy the "Hello World" MAUI app to my iPhone?

Here's what I tested / did:
- Deploying a "Hello World"-Swift project from XCode works. Also successfully paired the Mac to VS on Windows.
- I tried both manual and automatic provisioning
- I created the proper API key as per the instructions
- Mucked about with the App Id and registered it on Apple's Dev Portal. Also tried Wildcard.

But everything always yields the dreaded: 0xe8008015 (A valid provisioning profile for this executable was not found)

So. What is there to do and why is that actually still an issue?

vs-generaldotnet-maui
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Try to check the Bundle Identifier of your Swift project, and fill in Info.plist under Platforms/ iOS in your MAUI Project, make sure your swift project and MAUI project have the same Identifier. Then build again. Your Wildcard is in the format com.[DomainName].*, your Bundle Identifier of Swift project or MAUI project also should be in this format.

In addition, you could try to open your MAUI project, double-click Properties, go to iOS -> Bundle Signing, select Manual Provisioning for Scheme, choose Developer(Automatic) for Signing identity, then check if there is an Automatic option for Provisioning profile or other profile file. If not, you have to import one.

Besides, May I ask have you connected your iPhone directly with your PC before? Try to clean obj/bin folder, re-open VS and re-pair to mac, make sure your iPhone connected with MAC.

0 Votes 0 ·
38126496 avatar image 38126496 WenyanZhang-MSFT ·

Cleaning / re-Open and re-pair I already did.

But I found out that it works if I connect the phone to the Mac (it is then visible under "Remote Devices").

If it only works in such a way then I'm not sure why "Local Devices" is even an option. Though the iOS-simulator also opens on my PC.

This is all very confusing and the error messages don't really point towards this / the documentation might be improved.

0 Votes 0 ·

I have not heard from you for a couple of days. Please let me know if there is anything that I can help here.

0 Votes 0 ·

1 Answer

WenyanZhang-MSFT avatar image
0 Votes"
WenyanZhang-MSFT answered

Hello @38126496 ,

Please make sure your iPhone has been connected with MAC.

If it only works in such a way then I'm not sure why "Local Devices" is even an option

"Local Devices" means you connect your device directly to Windows pc, and 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.
"Remote Devices" means you connect your device to MAC, and you are using Pair to Mac for iOS development.

Besides, you could scroll down the MAUI documentation page and submit feedback for this page. I will report the documentation issue as well.

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.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.