Xcode 10: A valid provisioning profile for this executable was not found

前端 未结 30 1396
名媛妹妹
名媛妹妹 2020-11-29 15:12

Since yesterday I\'ve been getting the following error when trying run an app on my device: \"A valid provisioning profile for this executable was not found.\". This is afte

相关标签:
30条回答
  • 2020-11-29 15:35

    I had follow all above steps but it's not work form me finally. I was created duplicate Target and it's working fine. I have no idea what's wrong maybe cache memory issue

    0 讨论(0)
  • 2020-11-29 15:35

    It seems that Apple fixed this bug in Xcode 10.2 beta 2 Release.

    https://developer.apple.com/documentation/xcode_release_notes/xcode_10_2_beta_2_release_notes

    Signing and Distribution Resolved Issues

    When you’re building an archive of a macOS app and using a Developer ID signing certificate, Xcode includes a secure timestamp in the archive’s signature. As a result, you can now submit an archived app to Apple’s notary service with xcrun altool without first needing to re-sign it with a timestamp. (44952627)

    When you’re building an archive of a macOS app, Xcode no longer injects the com.apple.security.get-task-allow entitlement into the app’s signature. As a result, you can now submit an archived app to Apple’s notary service using xcrun altool without first needing to strip this entitlement. (44952574)

    Fixed an issue that caused the distribution workflow to report inaccurate or missing information about the signing certificate, provisioning profile, and entitlements used when exporting or uploading an app. (45761196)

    Fixed an issue where thinned .ipa files weren’t being signed when exported from the Organizer. (45761101)

    Xcode 10.2 beta 2 Release can be downloaded here: https://developer.apple.com/download/

    0 讨论(0)
  • 2020-11-29 15:40

    In my case, Device date-time was set to a future date. Changing the date setting to "automatic" fixed the issue.

    0 讨论(0)
  • 2020-11-29 15:40

    Finally, I figured out what's going on... almost take me 2 hours

    My case is, my phone's date is not correct. I forgot I changed my phone's date. I guess that makes all of my provisioning profiles expired...

    So if you've tried all of those answers but nothing works. Go to the SETTINGS, check your phone's date.

    0 讨论(0)
  • 2020-11-29 15:41

    I was struggling with this today, it was super frustrating. For now, just go into "File" > "Project Settings..." (or in some cases "Workspace Settings...") and then select "Legacy Build System" from the "Build System" dropdown.

    0 讨论(0)
  • 2020-11-29 15:41

    I have tried all the above solutions.

    However, in my case, after hours of headache it was because of the Test Project does not have a valid account for provisioning the signing. After I selected a team to provision in the Test Project with automatic managed signing. This problem went away.

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