Xcode 7: App installation failed: A valid provisioning profile for this executable was not found

后端 未结 12 979
悲哀的现实
悲哀的现实 2020-12-13 03:17

I have already searched and almost implemented max solution but it\'s not installing any app even though if I am creating just sample single view app.

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

    In my case, my certificate is overdue..

    0 讨论(0)
  • 2020-12-13 04:11

    I could run on Simulator just fine, but trying to install the App on device was throwing this exact error.

    I had a test target in addition to the main target. The test target had signing set to a different team and profile. Setting the unit test target to match the main target settings for signing solved my issue.

    Didn't notice it had been automatically changed over to a different team, was caused by being added to a new Enterprise team.

    0 讨论(0)
  • 2020-12-13 04:11

    For me, it's because the project I was trying to build is someone else's. The bundle identifier does not match with my team's provisioning profile.

    Change bundle identifier to something else help.

    0 讨论(0)
  • 2020-12-13 04:16

    ============== update ====================
    I fixed this issue today.
    First, go to ~/Library/MobileDevice/Provisioning Profiles. Make sure Xcode isn't running. Then, delete all provisioning files (like xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx.mobileprovision).
    Start Xcode.
    You will see something like "Fix this issue" in your Target's General tab. Click it.
    Xcode will now load new provisioning profile.
    That's it.

    ----------- OLD Answer -------------

    I have same problem now.
    I've checked my provisioning profile using https://github.com/chockenberry/Provisioning/releases.
    In my case, my provisioning profile had the wrong UDIDs but right machine count.
    I've registered machines, and Apple Developer Center listed right UDIDs for those machines.
    However, whenever I downloaded new provisioning profile, it contained wrong UDIDs.
    I think Apple's system is outputting wrong provisioning profile.
    I called Apple support for this issue today, but Apple only emailed me with their knowledge base links(forums,documents,etc).

    0 讨论(0)
  • 2020-12-13 04:16

    In my case was The build system. I had to change the default build system in "File > Project / Workspace Settings" and change it to the Legacy Build system.

    0 讨论(0)
  • 2020-12-13 04:20

    Possibly you are using App Store distribution provisioning profile. Use development or Ad-Hoc provisioning profile.

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