起步软件技术论坛
搜索
 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3249|回复: 2

[结贴] 打包的ios使用MOB插件导致闪退

[复制链接]

36

主题

192

帖子

530

积分

高级会员

Rank: 4

积分
530
发表于 2019-6-18 14:42:58 | 显示全部楼层 |阅读模式
项目需求用到了短信验证,打包后安卓的正常,而ios的出现了闪退的情况,按照论坛里说的替换了device插件也没用。看管理员回复的是 ios连接到mac上,xcode选中这个手机看。。。。。  我打开了xcode搞不懂怎么选中它,,
所以搜了哈,这样:手机连接上Xcode,打开Xcode菜单:Windows->Device and Simulators。找到连接上的设备,选中查看日志 log,选中自己项目的日志,然后得到了下面的崩溃提示,基本上就只有mob会去访问通讯录了

  1. Version:      104

  2. Exception Type:  EXC_CRASH (SIGABRT)
  3. Exception Codes: 0x0000000000000000, 0x0000000000000000
  4. Exception Note:  EXC_CORPSE_NOTIFY
  5. Termination Reason: TCC, This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app's Info.plist must contain an NSContactsUsageDescription key with a string value explaining to the user how the app uses this data.
  6. Triggered by Thread:  1

  7. Filtered syslog:
  8. None found

  9. Thread 0 name:  Dispatch queue: com.apple.main-thread
  10. Thread 0:
  11. 0   libsystem_kernel.dylib                0x1ac7c950 semaphore_wait_trap + 8
  12. 1   libdispatch.dylib                     0x1aba291e _os_semaphore_wait + 16
  13. 2   libdispatch.dylib                     0x1aba2092 _dispatch_semaphore_wait_slow + 76
  14. 3   XXXXXXXXXXOA                             0x000f8188 0x54000 + 672136
  15. 4   XXXXXXXXXXOA                             0x000f8058 0x54000 + 671832
  16. 5   XXXXXXXXXXOA                             0x001012bc 0x54000 + 709308
  17. 6   XXXXXXXXXXOA                             0x000f60c8 0x54000 + 663752
  18. 7   XXXXXXXXXXOA                             0x0010049c 0x54000 + 705692
  19. 8   CoreFoundation                        0x1b46fdb8 __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 10
  20. 9   CoreFoundation                        0x1b46f6f8 _CFXRegistrationPost + 382
  21. 10  CoreFoundation                        0x1b46f4e0 ___CFXNotificationPost_block_invoke + 40
  22. 11  CoreFoundation                        0x1b4ca308 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1242
  23. 12  CoreFoundation                        0x1b3d30f4 _CFXNotificationPost + 540
  24. 13  Foundation                            0x1bd200ec -[NSNotificationCenter postNotificationName:object:userInfo:] + 66
  25. 14  UIKit                                 0x207771ec -[UIApplication _stopDeactivatingForReason:] + 1042
  26. 15  UIKit                                 0x2096a7ce __62-[UIApplication _sceneSettingsPostLifecycleEventDiffInspector]_block_invoke.1259 + 94
  27. 16  FrontBoardServices                    0x1cd8fcfe __52-[FBSSettingsDiffInspector inspectDiff:withContext:]_block_invoke.27 + 166
  28. 17  Foundation                            0x1bdc9420 __NSIndexSetEnumerate + 438
  29. 18  Foundation                            0x1bd4ac0e -[NSIndexSet enumerateIndexesWithOptions:usingBlock:] + 66
  30. 19  BaseBoard                             0x1cd0e818 -[BSSettingsDiff inspectChangesWithBlock:] + 102
  31. 20  FrontBoardServices                    0x1cd8a026 -[FBSSettingsDiff inspectOtherChangesWithBlock:] + 90
  32. 21  FrontBoardServices                    0x1cd8fb5c -[FBSSettingsDiffInspector inspectDiff:withContext:] + 300
  33. 22  UIKit                                 0x2096b02c __70-[UIApplication scene:didUpdateWithDiff:transitionContext:completion:]_block_invoke + 170
  34. 23  UIKit                                 0x2096acf2 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 824
  35. 24  UIKit                                 0x20c70732 -[UIApplicationSceneClientAgent scene:handleEvent:withCompletion:] + 412
  36. 25  FrontBoardServices                    0x1cd79f66 __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke.376 + 210
  37. 26  FrontBoardServices                    0x1cda4c12 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 18
  38. 27  FrontBoardServices                    0x1cda4acc -[FBSSerialQueue _performNext] + 220
  39. 28  FrontBoardServices                    0x1cda4db6 -[FBSSerialQueue _performNextFromRunLoopSource] + 44
  40. 29  CoreFoundation                        0x1b47ffdc __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
  41. 30  CoreFoundation                        0x1b47fb04
复制代码
mob说明  这个是mob的说明说回造成崩溃,我在x5的
Native\plugins\com.justep.cordova.plugin.security.mob
\src\ios\SMS_SDK\的MOBFoundation.framework和SMS_SDK.framework的Info.plist中添加了key:NSContactsUsageDescription(就是我崩溃这上面说的这个key),打包之后还是闪退,
所以想问问怎么做?这个不去访问通讯录的方法又怎么弄?
注意:如果不想要设置这个,需要在初始化方法下加上这个接口[SMSSDK enableAppContactFriends:NO];,隐藏弹出框,这个方法要设置为NO,同时,用户不能调用获取通讯录好友信息接口, 这样我们在SDK中才不会访问用户的通讯录

91

主题

13万

帖子

3万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
35913
发表于 2019-6-18 15:45:24 | 显示全部楼层
在/Native/templates/advanced/platforms/ios/X5/X5-Info.plist中配置重新打包看看
远程的联系方法QQ1392416607,添加好友时,需在备注里注明其论坛名字及ID,公司等信息
发远程时同时也发一下帖子地址,方便了解要解决的问题  WeX5教程  WeX5下载



如按照该方法解决,请及时跟帖,便于版主结贴
回复 支持 反对

使用道具 举报

36

主题

192

帖子

530

积分

高级会员

Rank: 4

积分
530
 楼主| 发表于 2019-6-18 17:16:21 | 显示全部楼层
jishuang 发表于 2019-6-18 15:45
在/Native/templates/advanced/platforms/ios/X5/X5-Info.plist中配置重新打包看看

没有出现闪退了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|X3技术论坛|Justep Inc.    

GMT+8, 2024-4-20 20:42 , Processed in 0.084782 second(s), 22 queries .

Powered by Discuz! X3.4

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表