Access App Identifier Prefix programmatically

前端 未结 5 803
死守一世寂寞
死守一世寂寞 2020-11-28 20:15

How can I access the Bundle Seed ID/Team ID/App Identifier Prefix string programmatically? (These are all the same thing as far as I can tell).

I am using the UICKe

5条回答
  •  迷失自我
    2020-11-28 20:55

    This is a good question but to achieve what you were intended to do, there could have been a solution that does not require to retrieve the Bundle Seed ID.

    From this article, about the same keychain wrapper you're using:

    By default it will pick the first access-group specified in your Entitlements.plist when writing and will search across all access-groups when none is specified.

    The key will then be search in all groups where access is granted. So to solve your problem, you could add access group of all your bundle apps into your entitlements.plist instead of using a "shared stuff" group, put $(CFBundleIdentifier) as your first keychain group (your keychain wrapper will then write in this group) and you're all set

提交回复
热议问题