admin管理员组

文章数量:1122832

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

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

Share Improve this question asked Nov 21, 2024 at 11:49 Max ShapiraMax Shapira 1 2
  • First try to create an xcode project with same bundle name as you app and try to deploy it to your device.... If any thing wrong with the provisioning profile it will throw an error, and it's easy to know more details from xcode. – Bhavanesh N Commented Nov 21, 2024 at 13:06
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Bot Commented Nov 22, 2024 at 8:42
Add a comment  | 

1 Answer 1

Reset to default 0

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.

本文标签: xcodeInvalid provisioning profile in NET MAUI iOSStack Overflow