question

JassimAlRahma-9056 avatar image
0 Votes"
JassimAlRahma-9056 asked YonglunLiu-MSFT commented

Unable to deploy iOS app to device

Hi,

I am still unable to deploy iOS app to the device even after updating my Visual Studio for Mac but now I am getting this error:

243604-screen-shot-2022-09-22-at-12658-am.png

I deleted the obj and bin, uninstalled the app from the device, and restarted my Mac and device many times.

Here is my VS for Mac version:

243683-screen-shot-2022-09-22-at-12902-am.png


dotnet-maui
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.

1 Answer

YonglunLiu-MSFT avatar image
0 Votes"
YonglunLiu-MSFT answered YonglunLiu-MSFT commented

Hello,

It is caused by that you signed this application with a Distribution provisioning profile.

You need to use Developer provisioning profile to debug your app.

You could select the Signing Identity to be Developer (automatic) or turn to Apple Developer to create a provisional profile which is of development type and use it to resolve the error.

In addition, Xcode 14 is not is not supported in MAUI for iOS, please refer to this thread Can't execute or debug Xamarin IOS project to get the details about how to downgrade Xcode.

Best Regards,

Alec Liu.



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.


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

How can I do the provisioning profile in VS for Mac 17.4 (Preview)?

0 Votes 0 ·

Step1. Please right click your project and select properties.
Step2. Select Bundle Signing option.
Step3. Change Signing Identity to Developer(Automatic), Configuration to Debug and Provisioning Profile to Automatic.

0 Votes 0 ·

May I know if you have got any chance to check my answer? I am glad to help if you have any other questions.

0 Votes 0 ·