nelson PARRILLA
nelson PARRILLA

Reputation: 703

ios distribution certificate: A valid provisioning profile for this executable was not found

I unfortunately removed the ios distribution certificate of my application. I want to create an other one but have the error when I build my app: App installation failed: A valid provisioning profile for this executable was not found.

Here is my process to create a provisioning profile:

  1. Request certificate:
    • In keychain access, I Choose Keychain Access > Certificate Assistant > Request a Certificate From a Certificate Authority.
    • Enter the e-mail address and name of my apple developer account, save the CertficateSigningRequest.certSigningRequest.
  2. Create ios production certificate:
  3. Create distribution provisioning profile
    • In provisioning profile, I add App store distribution provisioning profile.
    • Continue and select my App ID, then my production certificate generated in step 2.
    • I set the name as 'myapp distribution'.
  4. Set provisioning profile in Xcode
    • In Xcode, I download the provisioning profile in Xcode > preferences then choose Team Name, click view Details and download my new provisioning profile.
    • In Xcode left view, I choose my project > build settings > Code Signing and set "Don't Code sign" for each Code Signing Identity.
    • For TARGETS, Code signing identity for debug is iPhone Developer:'my app ID' (Debug and any iOS SDK) and for Release iPhone Distribution:'My app ID' (Release Any iOS SDK). The provisioning Profile for Debug is my App development (Development provisioning profile) and for Release my App distribution (Distribution provisioning profile).

Then, when I build and run with release mode in my iphone, I have this error: App installation failed: A valid provisioning profile for this executable was not found.

I think that my iphone is not linked with the production provisioning profile, Nevertheless it is registered in my developer account.

Upvotes: 2

Views: 2682

Answers (2)

nhathm
nhathm

Reputation: 393

In my case, I did reset all certificate and provisioning, but no luck.

Then I realized my phone's date time was wrong, the year is 2017. Then I reset date time setting. Build it again and everything works.

So, check your phone's date time setting.

Upvotes: 2

Arik Segal
Arik Segal

Reputation: 3031

Following the last hint, I would suggest you try the following:

  1. In Apple's Member-Center, go to "Certificates, Identifiers and Profiles", and under "iOS Apps" choose "Devices"

  2. Make sure your device is listed.

  3. Go to the section "Provisioning Profiles" -> "Distribution", click the Ad-Hoc profile and then click "Edit".

  4. In the "Certificates" section, make sure that the distribution certificate is checked.

  5. In the "Devices" section, make sure that your device is checked.

  6. Click "Generate", re-download and re-build.

good luck.

Upvotes: 2

Related Questions