Post

Replies

Boosts

Views

Activity

Comment on Unable to read/write Keychain Access Group in FileProvider Extension
Think I may have found it -- the issue was that the main app and extension had different bundle identifiers (com.orexresearch.EMPSecure versus com.orexresearch.EMPSecure.EMPFileProvider), and the Dropbox Swift toolkit was including the full bundle identifier in its search terms! I also had to patch the Dropbox Swift toolkit so that it stored the token with the kSecAttrAccessGroup attribute set to the Keychain Access Group value, and the kSecUseDataProtectionKeychain attribute set to TRUE -- the documentation at https://developer.apple.com/documentation/security/keychain_services/keychain_items/sharing_access_to_keychain_items_among_a_collection_of_apps glosses over the fact that you need to set either kSecUseDataProtectionKeychain or kSecAttrSynchronizable for kSecAttrAccessGroup to work; that's only mentioned at https://developer.apple.com/documentation/security/ksecattraccessgroup .
Jan ’22