cat-x / ali_iot_plugin

MIT License
1 stars 4 forks source link

iOS 添加了安全图片后启动奔溃了,貌似是由于依赖的阿里SDK太老了 #1

Open ArmsZhou opened 1 year ago

ArmsZhou commented 1 year ago

error: module importing failed: invalid pathname 2023-02-09 15:49:30.317345+0800 Runner[31894:1730466] Metal API Validation Enabled 2023-02-09 15:49:30.491531+0800 Runner[31894:1730466] D | kSmartLaunchLog - IMSCountryMgr.m:89 | country get lang : zh-CN 2023-02-09 15:49:30.539508+0800 Runner[31894:1730466] I | kSmartLaunchLog - SmartApiClientLaunch.m:67 | 全球统一激活中心,use account get host! 2023-02-09 15:49:30.539701+0800 Runner[31894:1730466] SG ERROR: 203 2023-02-09 15:49:30.539741+0800 Runner[31894:1730466] D | IMSApiClient - IMSConfiguration.m:46 | API 通道服务器域名:api.link.aliyun.com 2023-02-09 15:49:30.539825+0800 Runner[31894:1730466] D | IMSApiClient - IMSConfiguration.m:52 | API 通道服务器环境:线上 2023-02-09 15:49:30.540101+0800 Runner[31894:1730466] SG ERROR: 204 2023-02-09 15:49:30.540141+0800 Runner[31894:1730466] D | kSmartLaunchLog - SmartApiClientLaunch.m:85 | api client config authCode : china_production 2023-02-09 15:49:30.540318+0800 Runner[31894:1730466] D | kSmartLaunchLog - SmartAuthenticationLaunch.m:70 | oa set idc host : api.link.aliyun.com 2023-02-09 15:49:30.540372+0800 Runner[31894:1730466] I | kSmartLaunchLog - SmartAuthenticationLaunch.m:87 | region oa gw host : 2023-02-09 15:49:30.540440+0800 Runner[31894:1730466] [Info] [ALBBOpenAccountSDK] asyncInit start... 2023-02-09 15:49:30.540466+0800 Runner[31894:1730466] [Info] ========================OpenAccount======================== 2023-02-09 15:49:30.551968+0800 Runner[31894:1730673] flutter: The Dart VM service is listening on http://127.0.0.1:61078/9YNL_DQ3lZA=/ 2023-02-09 15:49:30.826659+0800 Runner[31894:1730652] [] nehelper sent invalid result code [1] for Wi-Fi information request 2023-02-09 15:49:30.828290+0800 Runner[31894:1730657] [] nehelper sent invalid result code [1] for Wi-Fi information request 2023-02-09 15:49:30.830678+0800 Runner[31894:1730466] [Info] 系统版本: iOS 15.6.1 2023-02-09 15:49:30.830724+0800 Runner[31894:1730466] [Info] 设备型号: iPhone 2023-02-09 15:49:30.830754+0800 Runner[31894:1730466] [Info] SDK版本: 3.4.0.27 2023-02-09 15:49:30.830810+0800 Runner[31894:1730466] [Info] plugin: ALBBOpenAccountUIPlugin, ALBBOpenAccountSSOPlugin, ALBBOpenAccountSDKInitPlugin, ALBBOpenAccountSDKPlugin, ALBBOpenAccountTracePlugin, ALBBOpenAccountSecurityPlugin, ALBBOpenAccountRpcPlugin, ALBBOpenAccountPlugin, ALBBOpenAccountSessionPlugin, ALBBOpenAccountConfigPlugin 2023-02-09 15:49:30.832656+0800 Runner[31894:1730657] [Debug] registerIconfont path=/private/var/containers/Bundle/Application/FFC94EE6-4A97-4BD0-A25E-8D03072CA8F3/Runner.app/ALBBOpenAccount.bundle/ALBBOpenAccountUIFont.ttf 2023-02-09 15:49:30.832977+0800 Runner[31894:1730657] [Debug] provider <CGDataProvider 0x101c213c0 [0x1db5201b8]> 2023-02-09 15:49:30.833050+0800 Runner[31894:1730657] [Debug] font <CGFont (0x28288a400): aliAccountIconfont> 2023-02-09 15:49:30.833270+0800 Runner[31894:1730657] [Debug] registerIconfont succcess 2023-02-09 15:49:30.833381+0800 Runner[31894:1730466] [Info] ========================OpenAccount======================== 2023-02-09 15:49:30.833511+0800 Runner[31894:1730648] SG ERROR: 204 2023-02-09 15:49:30.833566+0800 Runner[31894:1730648] [Error] 错误编码 : 702 错误类型 : SecurityGuard - APP_KEY_NOT_EXISTED 错误消息 : 从身份图片(yw_1222_china_production.jpg)提取App Key失败(百川用户请前往百川控制台下载V5版本安全图片) 错误建议 : 请检查身份图片 2023-02-09 15:49:30.833749+0800 Runner[31894:1730653] [Error] init failure, error code is 702 2023-02-09 15:49:30.833879+0800 Runner[31894:1730466] SG ERROR: 508 2023-02-09 15:49:30.833916+0800 Runner[31894:1730466] W | IMSAuthentication - IMSCredential.m:132 | 从 本地 读取 credential 失败! 2023-02-09 15:49:30.833978+0800 Runner[31894:1730466] I | IMSBoneKit - IMSBoneConfiguration.m:46 | setPluginEnvironment: 1 2023-02-09 15:49:30.834119+0800 Runner[31894:1730466] D | AlinkAppExpress - LKAppExpress.m:80 | LKIoTExpress, mqtt found.<LKIoTExpress: 0x28288ae00> 2023-02-09 15:49:30.834183+0800 Runner[31894:1730466] D | AlinkAppExpress - LKAppExpress.m:85 | genieAccsManagerClass, genie sdk not found. 2023-02-09 15:49:30.834605+0800 Runner[31894:1730648] Terminating app due to uncaught exception of class 'ALBBOpenAccountLogMessage' libc++abi: terminating with uncaught exception of type ALBBOpenAccountLogMessage dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib Terminating app due to uncaught exception of class 'ALBBOpenAccountLogMessage' terminating with uncaught exception of type ALBBOpenAccountLogMessage (Recorded stack frame)

cat-x commented 1 year ago

阿里的iOS的SDK太乱了,可能需要你自己手动去指定pod中 阿里的不同sdk的版本。 以前尝试过升级SDK,但互相关系的阿里其他SDK在某些版本会出新的问题,可能会你编译成功,但是登录会一直卡住

ArmsZhou commented 1 year ago

嗯。我的业务也不需要这么多阿里依赖。借鉴了你的封装思路,我在自己写插件了。😊

weifucheng1102 commented 1 year ago

嗯。我的业务也不需要那么多阿里依赖。借用了你的封装思路,我在自己写插件了。😊

您好,方便看下您写的插件吗?

qcjxberin commented 1 year ago

@ArmsZhou 目前写的怎么样了?