question

jalza avatar image
0 Votes"
jalza asked KyleWang-MSFT commented

"A valid provisioning profile for this executable was not found" deploying app from Visual Studio 2019

I get this error when I want to deploy Xamarin.Forms iOS app in my device:

 Deploy Error: Could not install the application 'C:\Users\{myuser}\AppData\Local\Temp\Xamarin\HotRestart\Signing\{MyApp}.iOS.app\out\{MyApp}.iOS.ipa' on the device {My iPhone}. Details: ApplicationVerificationFailed({10 digits number}) - Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.OzsrZN/extracted/Payload/{MyApp}.iOS.app : 0xe8008015 (A valid provisioning profile for this executable was not found.)
 2>Deploy failed. The app '{MyApp}.iOS.app' could not be deployed to the device '{My iPhone}'. Please check the logs for more details.

I'm using Visual Studio Professional 2019 Version 16.11.3 ​on Windows 10 Pro laptop. One month earlier I didn't have problems to deploy the app. My company (developer account) and my (individual account) certificates expired, so I created a new ones (development and distribution) and installed them in the macbook I use to pair with Visual Studio. Then I created provisioning profiles (development and distribution). I think that I installed the profiles using Xcode in the macbook.

In iOS project properties > iOS Bundle Signing > Bundle Signing > Scheme: Automatic Provisioning is selected. I have selected the only team I have (with my company name in it). In Custom Entitlements I have Entitlements.plist file.

As the error I get is about provisioning profiles I think that something is wrong with the provisioning profiles. How can I check if everything is correct in apple accounts o in the macbook?

dotnet-xamarinformsdotnet-ios
· 6
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.

@jalza Make sure you have added the UDID of your device in provisioning profiles. And uninstall and reinstall the app on your device.

0 Votes 0 ·
jalza avatar image jalza KyleWang-MSFT ·

@KyleWang-MSFT yes, all the devices are added to the provisioning profile, and the app uninstalled.

0 Votes 0 ·
jalza avatar image jalza KyleWang-MSFT ·

Also I have to say, that when I tried to deploy the app to the iphone, Visual Studio created a new provisioning profile, but I don't know why.

0 Votes 0 ·

@jalza Clean and rebuild the project. Try to select Manual Provisioning under Bundle Signing. Refer to Manual provisioning for Xamarin.iOS.

0 Votes 0 ·
Show more comments

0 Answers