KeyChain integration causing crash with “missing entitlement” error — via command line builds

后端 未结 3 1430
你的背包
你的背包 2021-01-15 05:09

I\'m having a problem with some KeyChain code causing archives created via xcodebuild to crash when distributed as ad-hoc apps and run on a device. The problem

相关标签:
3条回答
  • 2021-01-15 05:20

    I think this line is wrong:

    [[KeychainItemWrapper alloc] initWithIdentifier:@"myapp" accessGroup:nil]
    

    You will want to pass your access group name in there. It may or may not fix your problem, these things are a bit "sensitive".

    0 讨论(0)
  • 2021-01-15 05:27

    This error indicates a problem with your app's entitlements. In my experience, the cause is often that the App Identifier Prefix in the app's entitlements doesn't match the App Identifier Prefix in the provisioning profile.

    To verify, use the codesign tool to view your app's entitlements:

    codesign -d --entitlements - MyApp.app/
    

    Then, compare the App Identifier Prefix to that in the provisioning profile:

    cat MyApp.app/embedded.mobileprovision
    
    0 讨论(0)
  • 2021-01-15 05:39

    After long work, i've found a solution to this issue and modified the floatsign.sh script (https://gist.github.com/mediabounds/1367348) accordingly - the entitlements have to be update like @sglist said. You can find the implementation here: https://gist.github.com/Weptun/5406993

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