Skip to content

Instantly share code, notes, and snippets.

@priteshshah1983
Last active December 11, 2015 23:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save priteshshah1983/4680264 to your computer and use it in GitHub Desktop.
Save priteshshah1983/4680264 to your computer and use it in GitHub Desktop.
I was referring to this code:
// This is of the form: TEAMID.mSSO
#define kmSSOKeychainGroup @"3Q4M6DQ9WM.mSSO"
which is used here:
[keychainSearch setObject:kmSSOKeychainGroup forKey:(id)kSecAttrAccessGroup]; // inform the search that we're using the shared keychain
The use case I was talking about: I want to create a static library with the keychain stuff for two customers with team ids: TEAMID1 and TEAMID2.
I would have to somehow read the appropriate TEAMID from within the app which contains the static library. One option could be to have the customer define the TEAMID in a .plist file or something. But, it would be nice if I could just read the TEAMID during runtime.
Unfortunately, [[NSBundle mainBundle] bundleIdentifier] does not return the TEAMID.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment