Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PrepareAppBundle Task Failed Unexpectedly - Xamarin Forms

Things were working fine before but all of a sudden I can't build and deploy my Xamarin Forms 5 app to my iPhone connected to my Windows 11 machine via USB cable.

Initial error I got was the following:

The 'HotRestart.Tasks.DetectSigningIdentity' task failed unexpectedly.

Here's a screenshot of the error:

enter image description here

I then tried to rebuild the project and I got the following error:

The "PrepareAppBundle" task failed unexpectedly.

Here's a screenshot of that:

enter image description here

To make sure it's not my project that's causing the error, I created a fresh new Xamarin Forms app and tried to look at it on my iPhone without changing a single line anywhere in the new app and I ended up with the same exact errors above.

I'm on the latest version of Visual Studio 2022 - version 17.1.3 and my laptop runs Windows 11 with all the latest updates.

I'm able to run the app on Android Simulator AND a physical Android device connected to my laptop via the same USB port. It just seems to be failing on iPhone.

Any idea what's causing this issue?

like image 745
Sam Avatar asked Aug 17 '26 22:08

Sam


1 Answers

Just upgraded Visual Studio to 17.1.4 and the problem is FIXED!!!

like image 148
Sam Avatar answered Aug 19 '26 16:08

Sam



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!