skip to Main Content

I’m currently struggling with an issue in running MAUI app on iOS device.
First of all, the app has no errors that prevents it from running, as I have also it running on Android without any issues.

The steps the I took in order to try and run it, and also trying to resolve it:

  1. Asked the account to create an issuer id and so got all what I’ve needed in order to add an individual account in Visual Studio for Mac
  2. Added the apple developer account in Visual Studio
  3. Created a Certificate Signing Request using Keychain Access
  4. Using the CSR, created a certificate in my apple developer account, downloaded it and added the certificate to the Keychain access on my MacBook
  5. Created a new provision profile in my apple developer account with the new certificate.
  6. In Visual Studio went to apple developer accounts, and in the relevant account, downloaded all profiles.
  7. In the main .csproj file, configured the bundle signing to the created certificate and the created provisioning profile

When trying to run, everything compiles just fine, but when getting to deployment to the device getting an error:

ApplicationVerificationFailed: Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.H3ngrg/extracted/EyeSightInstaller.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)

I have already updated Xcode to 16.1
Visual Studio for Mac 17.6.14 (build 413)
macOS Sequoia 15.1.1

I’ve tried creating again and again different certificates, profiles and various combinations of the certificates, profiles, automatic and manual provisioning

2

Answers


  1. Chosen as BEST ANSWER

    Not sure if this solution will for everyone, but I got it running and working so if anyone finding it, try this solution (only if there is Entitlements.plist file in your project):

    1. Clear everything in your Entitlements.plist file and have there only the header and empty dictionary
    header...
    
    <dict></dict>
    
    1. Set the provisioning to manual
    2. Choose Automatic signing identity
    3. Choose Automatic provisioning profile
    4. Run the app, it should work now.
    5. After the app installed and launched, revert the Entitlements.plist to what it had and what you need to have for your project
    6. Without uninstalling the app from the device and without cleaning the build, run it again, as said - it should work now.

    Basically, looks like for the initial install, if there is a requirement for the Entitlement.plist file, we need to empty it and revert it only after the initial install and run.


    • worked for me as well! at least the empty Entitlements.plist
    • but a rerun with the reverted Entitlements.plist does not (give me the same error as before)
    • may be because I do not know howto set provisioning to manual (using vscode build)
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search