I currently have 2 apps (1 iOS, 1 MacOS) that share some data via the iCloud Keychain. Here is how the setup is made.
App 1 (iOS): bundle id: com.appios KeyCh