A valid provisioning profile for this executable was not found

前端 未结 13 1526
清酒与你
清酒与你 2020-12-31 08:49

I just cracked open an older project to apply a bug fix.

After 2 minutes of fixing the, bug I go to build it to my device, and I get this error \"A valid provisioni

相关标签:
13条回答
  • 2020-12-31 09:10

    For that, you can check it in below way:

    1) First confirm that certificate is installed in your mac properly. Both certificate Distribution & Developer should be added properly. And if it is not there, then create new and then again install it.

    2) Check profiles Developer, Distribution & AdHoc profile install properly. And these all profiles must be bounds with respective certificates. And if profile was expire then create the new one and again install it.

    3) Then set profiles in your project.

    I hope these all check will be helpful to you and you will able to test your app in device.

    Cheers.

    0 讨论(0)
  • 2020-12-31 09:11

    Ok, so I solved this, somehow in trying to build for the app store I changed the build config for the "run" scheme from debug to release.. and naturally release was using a distribution cert.. which wasn't (and can't be) installed on my device.

    I hate xcode 4. (this aspect of it :P)

    What is a scheme anyway? :S

    0 讨论(0)
  • 2020-12-31 09:11

    You need to assign provision profile at target level as well as Project level. So if you are using Xcode 4 you can see two column. So you need to assign provision profile in both. Also, Make sure

    1. you drag and drop your provision profile to iTunes or Xcode.
    2. Make sure you added your device id in the new provision profile.

    Select provision profile in all the configuration if above not work. Just to give it a try.

    0 讨论(0)
  • 2020-12-31 09:12

    Change settings like on screen.

    Change settings like on screen.

    0 讨论(0)
  • 2020-12-31 09:22

    I have a solution as well. This happened to me last night with the exact same error. I had a program that was previously compiling and now that I am adding an update to my app, the same error was displayed. The problem is that I forgot to change my provisioning profile back to Developer. (You set it to Distribution when uploading your app to the App Store).

    Here are the settings for Xcode 4.6.

    In your app click Targets -> YourAppName -> Code Signing Identy.

    Change iPhone Distribution to iPhone Developer.

    Your app will now compile.

    0 讨论(0)
  • 2020-12-31 09:23

    After Struggling many hours I found a solution below.

    Just open "File" -> "Project Setting" or "Workspace Setting"

    Select "Legacy Build System" from "Build System" then make it "Done".

    Now clean and run your app again. It Works.

    0 讨论(0)
提交回复
热议问题