React native iOS上的Expo SecureStore无法从iCloud密钥链获取数据
我目前有两个应用程序(1个iOS,1个MacOS)通过iCloud钥匙链共享一些数据。下面是如何进行设置的React native iOS上的Expo SecureStore无法从iCloud密钥链获取数据,react-native,expo,keychain,react-native-keychain,React Native,Expo,Keychain,React Native Keychain,我目前有两个应用程序(1个iOS,1个MacOS)通过iCloud钥匙链共享一些数据。下面是如何进行设置的 App 1 (iOS): bundle id: com.appios KeyChain Groups (Signing & Capabilities): com.aaaa KeyChain Sevice: com.bbbb Key: ccc App 2 (MacOS): bundle id: com.appmacos KeyChain Groups (Signing &
App 1 (iOS):
bundle id: com.appios
KeyChain Groups (Signing & Capabilities): com.aaaa
KeyChain Sevice: com.bbbb
Key: ccc
App 2 (MacOS):
bundle id: com.appmacos
KeyChain Groups (Signing & Capabilities): com.aaaa
KeyChain Sevice: com.bbbb
Key: ccc
它是有效的。现在我想用ReactNative
创建应用程序3并读取相同的数据,所以我使用了Expo的SecureStore
,我希望它能起到作用我在Xcode中设置了:
App 3 (iOS-ReactNative):
bundle id: com.apprn
KeyChain Groups (Signing & Capabilities): com.aaaa
以下是我的基本实现:
import * as SecureStore from 'expo-secure-store';
SecureStore.getItemAsync('cccc', {
keychainService:'com.bbbb'
})
.then(value => console.log(value))
.catch(err => console.log(err))
我已经在安装了其他iOS应用程序(应用程序1)的真实设备上进行了测试,但是getItemAsync
始终返回null
我做错什么了吗?这是否可行