2016-11-28 1 views
-2

Я реализовал данные запроса следующий:IBM MFP 8.0 IOS авария, когда из защищенного адаптера

  1. Создать адаптер с пользовательской проверкой безопасности
  2. Creat сферы «основным» и назначить его к моим проверкам безопасности
  3. Создать адаптер для доступа к данным с @OAuthSecurity (Сфера = «главный»)
  4. IOS класса унаследованного от SecurityCheckChallengeHandler
  5. IOS приложение падает на запрос данных от адаптера. Если отключить проверку безопасности, все работает нормально. App падает перед вызовом «handleChallenge»

Вход с 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 
+0

Просьба предоставить фактическое воспроизводимое приложение примера и проверку безопасности, чтобы это можно было отладить. –

ответ

1

Это может быть связано с требованием в Xcode 8, чтобы добавить возможность «брелок обмена» (на вкладке Capabilities в 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/

Примечание: Возможность Keychain Sharing является обязательным при запуске IOS приложений в IOS Simulator при использовании Xcode 8. Вам необходимо включить эту возможность вручную перед созданием проекта Xcode ,

Смежные вопросы