[英]Generate Keychain IBM Mobile First V 7.1
I am using IBM Mobile First V 7.1 on an iOS app, the problem is after my app is submitted to the store, Fabric starts to send me weird exception: 我在iOS应用程序上使用IBM Mobile First V 7.1,问题是我的应用程序提交到商店后,Fabric开始向我发送奇怪的异常:
Fatal Exception: Unable to generate key pair.
致命异常:无法生成密钥对。 Keychain returned the following status: -25308
钥匙串返回以下状态:-25308
and every time I check Crashlytics I see a different trace stack of the exception, and the below is one of the exception that I got: 每次我检查Crashlytics时,都会看到异常的不同跟踪堆栈,以下是我得到的异常之一:
Fatal Exception: Unable to generate key pair.
0 CoreFoundation 0x18db1d1b8 __exceptionPreprocess
1 libobjc.A.dylib 0x18c55455c objc_exception_throw
2 CoreFoundation 0x18db1d100 -[NSException initWithCoder:]
3 RTA 0x1012ba4a0 +[WLCertManager generateKeyPair:withPublicKeyLabel:withKeySize:]
4 RTA 0x1012be730 +[WLCertManager signJWSPartsWithPayload:withPrivateKeyLabel:withPublicKeyLabel:withKeySize:]
5 RTA 0x10129ffcc -[WLAuthorizationManager buildJWSPartsWithClientId:]
6 RTA 0x10128607c __71-[WLRequest addClientInstanceIdHeaderWithRequest:withCompetionHandler:]_block_invoke
7 RTA 0x10129b4ec -[WLAuthorizationManager clientInstanceIdWithCompletionHandler:]
8 RTA 0x101285f2c -[WLRequest addClientInstanceIdHeaderWithRequest:withCompetionHandler:]
9 RTA 0x101284f40 -[WLRequest sendRequest:path:withOptions:]
10 RTA 0x10128685c -[WLRequest makeRequest:withOptions:withCallback:]
11 RTA 0x1012862f4 -[WLRequest makeRequest:withOptions:]
12 RTA 0x1012c36e8 -[WLClient invokeProcedure:withDelegate:options:]
13 RTA 0x1002e8d60 specialized FavouritesModel.getFavouritesList(FavouritesRequestDelegate?) -> () (FavouritesModel.swift)
14 RTA 0x1002e8484 FavouritesModel.getFavouritesList(FavouritesRequestDelegate?) -> () (FavouritesModel.swift:21)
15 RTA 0x10037508c MainDashboardViewController.pullToRefreshAction() -> () (MainDashboardViewController.swift:1793)
16 RTA 0x100389dc8 partial apply for MainDashboardViewController.(upperViewAnimation() -> ()).(closure #2).(closure #4) (MainDashboardViewController.swift:614)
17 Foundation 0x18e61a46c __NSFireDelayedPerform
18 CoreFoundation 0x18dacb1d8 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__
19 CoreFoundation 0x18dacaeec __CFRunLoopDoTimer
20 CoreFoundation 0x18daca7a8 __CFRunLoopDoTimers
21 CoreFoundation 0x18dac83a4 __CFRunLoopRun
22 CoreFoundation 0x18d9f62b8 CFRunLoopRunSpecific
23 GraphicsServices 0x18f4aa198 GSEventRunModal
24 UIKit 0x193a3d7fc -[UIApplication _run]
25 UIKit 0x193a38534 UIApplicationMain
26 RTA 0x100913fe0 main (AppDelegate.swift:35)
27 libdispatch.dylib 0x18c9d95b8 (Missing)
After some investigation and searching I found some recommendation to enable Keychain Sharing and the below screenshot is my app entitlement: 经过一番调查和搜索,我发现了一些建议来启用“钥匙串共享”,下面的屏幕快照是我的应用程序应享有的权利:
Please any advise how I can solve this problem or is there any missing configuration should be applied 请任何建议我该如何解决此问题,或者应该应用任何缺少的配置
Fatal Exception: Unable to generate key pair.
致命异常:无法生成密钥对。 Keychain returned the following status: -25308
钥匙串返回以下状态:-25308
The above error occurs when app tries to generate key pair while phone is locked or while app is running during background mode. 当手机锁定或在后台模式下运行时,如果应用尝试生成密钥对,则会发生上述错误。 It seems to be your app is doing MFP requests while app is background or phone is locked.
似乎是您的应用在后台或手机被锁定时正在执行MFP请求。
Currently Mobilefirst iOS 7.x Client SDK's do not support MFP requests running in the background. 当前,Mobilefirst iOS 7.x客户端SDK不支持在后台运行的MFP请求。 You can use non-MFP API's if you are accessing unsecured resources.
如果要访问不安全的资源,则可以使用非MFP API。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.