Application failed codesign verification

后端 未结 9 1428
北海茫月
北海茫月 2021-01-05 07:57

I\'m getting the following error when trying to submit my app to the app store. I went through the initial provisioning process and am able to run the app on my phone so not

相关标签:
9条回答
  • 2021-01-05 08:06

    You can either double click a .mobileprovision file, or manually copy it to ~/Library/MobileDevice/Provisioning Profiles. Then it will show up inside the provisioning popup in your Target settings.

    0 讨论(0)
  • 2021-01-05 08:06

    Are you sure you provisioning profile is a distribution profile for app store and not a development/ad-hoc one??

    0 讨论(0)
  • 2021-01-05 08:14

    I had the same issue and this is what I did to get it to work:

    It turned out my Entitlements file was misformed.

    Through much trial and error I have figured out the issue. For others' sanity, here is the proper configuration:

    application-identifier          $(AppIdentifierPrefix)$(CFBundleIdentifier)
    
    com.apple.developer.ubiquity-container-identifiers
          Item 0                     $(TeamIdentifierPrefix)$(CFBundleIdentifier)
    

    This got it to validate successfully. I couldn't find this documented anywhere so hopefully it helps someone else.

    0 讨论(0)
  • 2021-01-05 08:16

    This error can also be caused if you incorrectly configured your application's "entitlements". A good place to check is for a warning in Xcode's Log Navigator (last page in left tab) and ensure that there is a green tick next to both the CodeSign and Validate steps in the build log when you Archive your project.

    0 讨论(0)
  • 2021-01-05 08:16

    I'm facing the same issue having iCloud KVStore as Capability active:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>com.apple.developer.icloud-container-identifiers</key>
        <array/>
        <key>com.apple.developer.ubiquity-kvstore-identifier</key>
        <string>$(TeamIdentifierPrefix)$(CFBundleIdentifier)</string>
    </dict>
    </plist>
    

    Xcode fails to sign to binary when I try to change the 'com.apple.developer.ubiquity-kvstore-identifier identifier to the main app KVStore Identifier as described in

    Configuring Common Key-Value Storage for Multiple Apps

    0 讨论(0)
  • 2021-01-05 08:18

    Verify the following:

    • When creating the distibution profile, make sure that Distribution Method is "App Store".
    • In project settings, go to Build tab and make sure Code Signing Identity is the distribution profile you created for the App Store
    • In Target settings (double-click on Target in your project), go to Build tab and make sure Code Signing Identity is the distribution profile you created for the App Store

    It's recommended that you have a configuration in your project settings for AdHoc and App Store builds. I've found it makes life easier when it comes time to deploy.

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