xamarin.iosios15

Can't deploy my Xamarin app to iPhone 13 with iOS 15 Simulator


I've updated to xcode 13 and Visualstudio for mac to version 8.10.12. And now I have the iphone 13 simulator, with iOS 15. The problem is that when I try to debug my app, I get this error from visual studio.

error HE0046: Failed to install the app 'ma.myapp.app' on the device 'iOS 15.0 (19A339) - iPhone 13 mini': “Myapp” Needs To Be Updated

In the info.plist, the minimum version is set to iOS 9 And I don't understand why my app runs perfectly on iOS 14 but not on 15. Please can someone help ?


Solution

  • When I had this error, the error message specified by visualstudio wasn't explicit enough.

    So I opened a terminal on my mac and entered the following command

    grep ma.myapp.app ~/Library/Logs/CoreSimulator/ -R

    This gave me logs corresponding to the app I tried to deploy. Once I had these logs, I read the logs corresponding to the time at which the error occurred. And I found out that the error was deeper that expected. Here is the message I got from the logs:

    Failed to find matching arch for input file: ../../~/myapp.NotificationServiceExtension

    It turned out that my notification service extension was targeting the wrong architecture.