来自安全适配器的请求数据时,IBM MFP 8.0 ios崩溃

时间:2016-11-28 13:46:00

标签: ibm-mobilefirst

我已实施以下内容:

  1. 使用自定义安全检查创建适配器
  2. 创作范围"主要"并将其分配给我的安全检查
  3. 创建用于访问数据的适配器 @OAuthSecurity(范围="主要")
  4. IOS类继承自SecurityCheckChallengeHandler
  5. IOS应用程序在从适配器请求数据时崩溃。 如果我禁用安全检查一切正常。应用程序在调用" handleChallenge"
  6. 之前崩溃

    从XCode控制台登录:

    objc[2527]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x11a098998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x119e26d38). One of the two will be used. Which one is undefined.
    2016-11-28 16:25:04.800 fiorimfp[2527:119968] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/aleks/Library/Developer/CoreSimulator/Devices/3B5A1053-1175-4E95-8045-21CB084E7ECA/data/Containers/Data/Application/00A7BCA1-6996-4A93-9738-0EF0BFC07D7C/Library/Cookies/ru.sberbank.fiorimfp.binarycookies
    2016-11-28 16:25:05.052 fiorimfp[2527:119968] Apache Cordova native platform version 4.3.0 is starting.
    2016-11-28 16:25:05.053 fiorimfp[2527:119968] Multi-tasking -> Device: YES, App: YES
    2016-11-28 16:25:05.089 fiorimfp[2527:119968] 
    
    Started backup to iCloud! Please be careful.
    Your application might be rejected by Apple if you store too much data.
    For more information please read "iOS Data Storage Guidelines" at:
    https://developer.apple.com/icloud/documentation/data-storage/
    To disable web storage backup to iCloud, set the BackupWebStorage preference to "local" in the Cordova config.xml file
    
    2016-11-28 16:25:06.120 fiorimfp[2527:119968] Using UIWebView
    2016-11-28 16:25:06.122 fiorimfp[2527:119968] [CDVTimer][handleopenurl] 0.141978ms
    2016-11-28 16:25:06.136 fiorimfp[2527:119968] [CDVTimer][intentandnavigationfilter] 14.124990ms
    2016-11-28 16:25:06.137 fiorimfp[2527:119968] [CDVTimer][gesturehandler] 0.104964ms
    2016-11-28 16:25:06.137 fiorimfp[2527:119968] [CDVTimer][TotalPluginStartup] 15.310049ms
    2016-11-28 16:25:17.007 fiorimfp[2527:119968] Testing Server Connection
    2016-11-28 16:25:17.259 fiorimfp[2527:119968] Received the following access token value: (null)
    2016-11-28 16:25:17.288 fiorimfp[2527:119968] Could not add the Keychain Item.
    2016-11-28 16:25:17.328608 fiorimfp[2527:120679] [] ____nwlog_simulate_crash_inner_block_invoke dlopen CrashReporterSupport failed
    2016-11-28 16:25:17.329498 fiorimfp[2527:120679] [] __nwlog_err_simulate_crash simulate crash failed "nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available"
    2016-11-28 16:25:17.336809 fiorimfp[2527:120679] [] nw_socket_set_common_sockopts setsockopt SO_NOAPNFALLBK failed: [42] Protocol not available, dumping backtrace:
            [x86_64] libnetcore-856.20.4
        0   libsystem_network.dylib             0x0000000110b25682 __nw_create_backtrace_string + 123
        1   libnetwork.dylib                    0x0000000111a9c932 nw_socket_add_input_handler + 3100
        2   libnetwork.dylib                    0x0000000111a7a4f4 nw_endpoint_flow_attach_protocols + 3768
        3   libnetwork.dylib                    0x0000000111a79511 nw_endpoint_flow_setup_socket + 563
        4   libnetwork.dylib                    0x0000000111a78270 -[NWConcrete_nw_endpoint_flow startWithHandler:] + 2612
        5   libnetwork.dylib                    0x0000000111a9344d nw_endpoint_handler_path_change + 1261
        6   libnetwork.dylib                    0x0000000111a92e7c nw_endpoint_handler_start + 570
        7   libdispatch.dylib                   0x00000001108a2980 _dispatch_call_block_and_release + 12
        8   libdispatch.dylib                   0x00000001108cc0cd _dispatch_client_callout + 8
        9   libdispatch.dylib                   0x00000001108a9e6b _dispatch_queue_serial_drain + 236
        10  libdispatch.dylib                   0x00000001108aab9f _dispatch_queue_invoke + 1073
        11  libdispatch.dylib                   0x00000001108ad3b7 _dispatch_root_queue_drain + 720
        12  libdispatch.dylib                   0x00000001108ad08b _dispatch_worker_thread3 + 123
        13  libsystem_pthread.dylib             0x0000000110d584de _pthread_wqthread + 1129
        14  libsystem_pthread.dylib             0x0000000110d56341 start_wqthread + 13
    

1 个答案:

答案 0 :(得分:1)

这可能是由于Xcode 8要求添加" Keychain sharing"功能(来自Xcode中的功能选项卡)。由于这个原因,我在MobileFirst Foundation 8.0中看到了应用程序崩溃。

2016-11-28 16:25:17.259 fiorimfp[2527:119968] Received the following access token value: (null)
2016-11-28 16:25:17.288 fiorimfp[2527:119968] Could not add the Keychain Item.

尝试添加缺少的(?)功能,看看是否能解决崩溃问题。

供参考,请参阅此处:https://mobilefirstplatform.ibmcloud.com/tutorials/en/foundation/8.0/application-development/sdk/cordova/

  

注意:使用Xcode 8时,在iOS模拟器中运行iOS应用程序时必须使用Keychain Sharing功能。您需要在构建Xcode项目之前手动启用此功能。