简体   繁体   English

应用程序移动帐户A到iOS中的B后,可能丢失钥匙串访问问题

[英]Potential Loss of Keychain Access Issue After Application Move Account A To B in iOS

Our iOS app is transfer from Account A to B, Earlier we had used the certificates which was created in Account A and upload a build on iTunes Connect using certificates of Account A. 我们的iOS应用程序是从帐户A转移到B,之前我们使用了帐户A中创建的证书,并使用帐户A的证书在iTunes Connect上上传。

Now when we uploading app on iTunesconenct for Beta Testing that time we have used the certificates which was created in Account B(Due to Transfer App Account). 现在,当我们在iTunesconenct上传应用程序以进行Beta测试时,我们已经使用了在帐户B中创建的证书(由于转移应用程序帐户)。

So, Now application identifier of the live app is different from the application identifier of the Beta TestFlight Testing App on App Store. 因此,现在应用程序的应用程序标识符与App Store上Beta TestFlight Testing App的应用程序标识符不同。 And we have got the warning potential loss of keychain access. 而且我们有钥匙链访问的警告可能丢失。

Right Now, We are using SSKeychain Wrapper for Store UUID to track user. 现在,我们正在使用SSKeychain Wrapper for Store UUID来跟踪用户。 [SSKeychain setPassword:UUID forService:@"com.example.appname” account:@“appname” error:&error] [SSKeychain setPassword:UUID forService:@“com.example.appname”account:@“appname”error:&error]

If App ID Prefix changed then SSKeychain loss it's access? 如果App ID Prefix发生了变化,那么SSKeychain会丢失它的访问权限吗?

Because We track UUID in database for further use using SSKeychain. 因为我们使用SSKeychain跟踪数据库中的UUID以供进一步使用。 My doubt is if APPID Prefix changed then it is also effect the SSKeychain and it is generate new UUID for all devices? 我怀疑的是,如果APPID Prefix发生了变化,那么它也会影响SSKeychain,它会为所有设备生成新的UUID吗?

So, How we can solve this issue ? 那么,我们如何解决这个问题呢? Please let us know about solutions of this issue. 请告诉我们有关此问题的解决方案。

The keychain access is tied to the App(s) ID Prefix(s). 密钥链访问与App(s)ID前缀相关联。 They must have the same prefix. 它们必须具有相同的前缀。 We had a case where different Apps in the same Developer Account and different Prefix(s) and they would not share the same keychain access. 我们遇到了同一开发者帐户中的不同应用程序和不同的前缀,并且他们不会共享相同的钥匙串访问权限的情况。 Had to have Apple fix so all were the same. 不得不让Apple修复所以都是一样的。

In your case, if you move the app to account B, the App ID will have a different prefix and would not be able to access the "old" keychain. 在您的情况下,如果您将应用程序移动到帐户B,App ID将具有不同的前缀,并且无法访问“旧”钥匙串。

As far as I know there is NO workaround for this if the App Prefix has changed. 据我所知,如果应用程序前缀已更改,则没有解决方法。

Yes, all devices would get a new keychain store for data and would not be able to access the "old" keychain data. 是的,所有设备都会获得一个新的数据钥匙链存储,并且无法访问“旧的”钥匙串数据。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM