Get application bundle seed ID in iOS

  • Avatar photo
  • 2013年9月4日

You can programmatically retrieve the Bundle Seed ID by looking at the access group attribute (i.e.kSecAttrAccessGroup) of an existing KeyChain item. In the code below, I look up for an existing KeyChain entry and create one if it doesn’t not exist. Once I have a KeyChain entry, I extract the access group information from it and return the access group’s first component separated by “.” (period) as the Bundle Seed ID.