app开发 app开发

注册
查看: 649|回复: 3

[求助中] iOS 报错:libc++abi.dylib:terminating with uncaught exception of type NSEx...

Rank: 3Rank: 3

主题:
53
帖子:
179
云币:
121

[求助中] iOS 报错:libc++abi.dylib:terminating with uncaught exception of type NSEx...

649 3 | 发表于 2017-1-11 15:40:49 |阅读模式 | |
本帖最后由 okaysoft 于 2017-1-11 15:58 编辑

在已有的native代码中加入了 superWebView,使用APIWindowContainer加载网页,网页加载完成后,包错:libc++abi.dylib:terminating with uncaught exception of type NSException

仔细对照了视频教程,每一步都是按过程来的
Other Linker Flags 也设的是:-OjbC
求帮助! thank you!

报错后APP就闪退
发表于 2017-1-11 19:04:22 |
完整的日志发来看看。你是不是值写错了,是-ObjC

Rank: 3Rank: 3

主题:
53
帖子:
179
云币:
121
 楼主| 发表于 2017-1-11 20:11:29 |
本帖最后由 okaysoft 于 2017-1-11 20:16 编辑

是-ObjC,顶楼我打错了。完整日志如下
objc[1071]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x12000a998) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x11fe2c880). One of the two will be used. Which one is undefined.
2017-01-11 20:10:50.746 YunHui[1071:41255] UMLOG: analytics sdk version 3.6.4 , app version 1.0.0 Stable
2017-01-11 20:10:50.752 YunHui[1071:42473] UMLOG: Request OC for updatetime body={"appkey":"586ce79ca325116d060006c4","app_version":"1.0.0 Stable"}
2017-01-11 20:10:50.761 YunHui[1071:41255] [RongCloud][A-init-O], appkey: 8w7jv4qb8winy, main_thread: 1
2017-01-11 20:10:50.792 YunHui[1071:42730] App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file.
2017-01-11 20:10:50.867 YunHui[1071:42748] INFO    (20:10:50:866 |    0)  33295; Thread with name:Trace started
2017-01-11 20:10:50.868 YunHui[1071:42748] INFO    (20:10:50:866 |    0)   1027; Agora Rtc Engine SDK ver 1.6.0 build 160, built on Aug 31 2016 18:32:02
2017-01-11 20:10:50.891 YunHui[1071:42748] INFO    (20:10:50:891 |   25)   1027; network: 'NETWORK_UNKOWN' -> 'WIFI' ipv4/v6 '192.168.0.112'/'fe80::1c47:b2e5:5748:14ff' gw ''/'' subtype 0 level -1 ssid '' bssid '' rssi 0 asu 0
2017-01-11 20:10:50.891 YunHui[1071:42748] INFO    (20:10:50:891 |    0)   1027; found 'NULL' device: 'iPhone/x86_64/iOS/10.2'
2017-01-11 20:10:50.901 YunHui[1071:41255] 9CA50976-D447-44E1-920D-CDBE9E541BC9
2017-01-11 20:10:50.973 YunHui[1071:42748] INFO    (20:10:50:892 |    1)  35847; Agora Rtc Engine started
2017-01-11 20:10:50.974 YunHui[1071:42748] INFO    (20:10:50:893 |    1)  35847; CacheManager: load cache from storage elapsed 1
2017-01-11 20:10:50.976 YunHui[1071:42748] ERROR   (20:10:50:893 |    0)  35847; built-in encryption is enabled
2017-01-11 20:10:50.977 YunHui[1071:42748] INFO    (20:10:50:899 |    6)  35847; [ps] start to apply
2017-01-11 20:10:50.979 YunHui[1071:42748] INFO    (20:10:50:900 |    1)  35847; [ps] applied
2017-01-11 20:10:51.287 YunHui[1071:41255] [RongCloud][A-connect-T], token: +GcWPjrnUO11mDQB/r95b1XqmWBULg+P5JddS76IYktqv8A/vpYLCfzhXYHYUfRZdQimeUxze8iQh5FfJmkXYDlKIm2pyIH+, main_thread: 1
2017-01-11 20:10:51.288 YunHui[1071:41255] [RongCloud]RCCallLibExtensionModule notifyConnectionStatusChanged: 10
2017-01-11 20:10:51.289 YunHui[1071:41255] [RongCloud]-[RCCallManager didSignalNetworkSuspend]
2017-01-11 20:10:51.290 YunHui[1071:42476] [RongCloud]-[RCCallManager stopUserOperationTimer]
2017-01-11 20:10:51.290 YunHui[1071:41255] [RongCloud][L-connect-S], status: 10
2017-01-11 20:10:51.290 YunHui[1071:42476] [RongCloud]-[RCCallManager stopRemoteTimer]
2017-01-11 20:10:51.290 YunHui[1071:41255] [RongCloud]RCCallLibExtensionModule setCurrentToken = +GcWPjrnUO11mDQB/r95b1XqmWBULg+P5JddS76IYktqv8A/vpYLCfzhXYHYUfRZdQimeUxze8iQh5FfJmkXYDlKIm2pyIH+
2017-01-11 20:10:51.291 YunHui[1071:42476] [RongCloud]-[RCCallManager terminateCurrentCall]
2017-01-11 20:10:51.291 YunHui[1071:41255] [RongCloud]-[RCCallMediaManager setCurrentToken:]
2017-01-11 20:10:51.291 YunHui[1071:42476] [RongCloud]updateMyCallStatusOfProfile: callStatus = 5
2017-01-11 20:10:51.291 YunHui[1071:41255] [RongCloud]token = +GcWPjrnUO11mDQB/r95b1XqmWBULg+P5JddS76IYktqv8A/vpYLCfzhXYHYUfRZdQimeUxze8iQh5FfJmkXYDlKIm2pyIH+
2017-01-11 20:10:51.291 YunHui[1071:42476] [RongCloud]-[RCCallMediaManager resetMediaEngineStatus]
2017-01-11 20:10:51.308 YunHui[1071:42476] [RongCloud]-[RCCallMediaManager resetToDefaultMediaEngineIfNeed]
2017-01-11 20:10:51.308 YunHui[1071:42476] [RongCloud]-[RCCallMediaManager switchEngine:]
2017-01-11 20:10:51.310 YunHui[1071:42476] [RongCloud]-[RCCallManager generateCallLog:]
2017-01-11 20:10:51.312 YunHui[1071:42476] [RongCloud]-[RCCallManager stopLocalPreview:]
2017-01-11 20:10:51.312 YunHui[1071:41255] [RongCloud]Reachability Flag Status: -R ------- networkStatusForFlags
2017-01-11 20:10:51.314 YunHui[1071:41255] [RongCloud][L-connect-T], type: app_operation, navi_url: https://nav.cn.ronghub.com/navi.xml, ip: 120.92.13.84, port: 443
2017-01-11 20:10:51.322 YunHui[1071:42821] [RongCloud][P-tcp_connect-O],ip:120.92.13.84,port:443
2017-01-11 20:10:51.322 YunHui[1071:41255] 该启动事件不包含来自融云的推送服务
2017-01-11 20:10:51.379 YunHui[1071:42821] [RongCloud][P-send_connect-O]
2017-01-11 20:10:51.425 YunHui[1071:41255] UMLOG: (online_params) (null)
2017-01-11 20:10:51.426 YunHui[1071:41255] online config has fininshed and note = (null)
2017-01-11 20:10:51.432 YunHui[1071:41255] UMLOG: session begin:78AFE90362F42D552A412477225C485D
2017-01-11 20:10:51.438 YunHui[1071:41255] [RongCloud]-[RCCallAgoraMediaEngineEnabler rtcEngine:didApiCallExecute:error:]
2017-01-11 20:10:51.442 YunHui[1071:41255] [RongCloud]api = rtc.api.start_engine, error = 0
2017-01-11 20:10:51.451 YunHui[1071:41255] [RongCloud][L-connect-R], result: success, type: app_operation
2017-01-11 20:10:51.453 YunHui[1071:41255] [RongCloud]RCCallLibExtensionModule setUserId = B5cnufK
2017-01-11 20:10:51.453 YunHui[1071:41255] [RongCloud]-[RCCallMediaManager setUserId:]
2017-01-11 20:10:51.454 YunHui[1071:41255] [RongCloud]userId = B5cnufK
2017-01-11 20:10:51.456 YunHui[1071:41255] [RongCloud]RCCallLibExtensionModule notifyConnectionStatusChanged: 0
2017-01-11 20:10:51.457 YunHui[1071:41255] [RongCloud]-[RCCallManager didSignalNetworkResume]
2017-01-11 20:10:51.512 YunHui[1071:41255] [RongCloud][L-connect-S], status: 0
2017-01-11 20:10:51.517 YunHui[1071:41255] [RongCloud][L-navi_http-T], url: https://nav.cn.ronghub.com/navi.xml, update_time: 1484051705
2017-01-11 20:10:56.964 YunHui[1071:41255] -[RCDMeInfoTableViewController startLoad]: unrecognized selector sent to instance 0x7fe437c3e170
2017-01-11 20:10:56.973 YunHui[1071:41255] Exception name:NSInvalidArgumentException
Exception reason:-[RCDMeInfoTableViewController startLoad]: unrecognized selector sent to instance 0x7fe437c3e170
Exception stack
        0   CoreFoundation                      0x000000011379bd4b __exceptionPreprocess + 171
        1   libobjc.A.dylib                     0x0000000112c2b21e objc_exception_throw + 48
        2   CoreFoundation                      0x000000011380bf04 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
        3   CoreFoundation                      0x0000000113721005 ___forwarding___ + 1013
        4   CoreFoundation                      0x0000000113720b88 _CF_forwarding_prep_0 + 120
        5   YunHui                              0x000000010b47a755 -[RCDMeTableViewController tableView:didSelectRowAtIndexPath:] + 293
        6   UIKit                               0x000000010eb013b9 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1848
        7   UIKit                               0x000000010eb015cd -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 330
        8   UIKit                               0x000000010e9b662f _runAfterCACommitDeferredBlocks + 320
        9   UIKit                               0x000000010e9a3273 _cleanUpAfterCAFlushAndRunDeferredBlocks + 566
        10  UIKit                               0x000000010e9d4746 _afterCACommitHandler + 176
        11  CoreFoundation                      0x0000000113740267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
        12  CoreFoundation                      0x00000001137401d7 __CFRunLoopDoObservers + 391
        13  CoreFoundation                      0x0000000113724f8e __CFRunLoopRun + 1198
        14  CoreFoundation                      0x0000000113724884 CFRunLoopRunSpecific + 420
        15  GraphicsServices                    0x000000011547aa6f GSEventRunModal + 161
        16  UIKit                               0x000000010e9a9c68 UIApplicationMain + 159
        17  YunHui                              0x000000010b4e87cf main + 111
        18  libdyld.dylib                       0x0000000114f8168d start + 1
)
2017-01-11 20:10:56.974 YunHui[1071:41255] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RCDMeInfoTableViewController startLoad]: unrecognized selector sent to instance 0x7fe437c3e170'
*** First throw call stack:
(
        0   CoreFoundation                      0x000000011379bd4b __exceptionPreprocess + 171
        1   libobjc.A.dylib                     0x0000000112c2b21e objc_exception_throw + 48
        2   CoreFoundation                      0x000000011380bf04 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
        3   CoreFoundation                      0x0000000113721005 ___forwarding___ + 1013
        4   CoreFoundation                      0x0000000113720b88 _CF_forwarding_prep_0 + 120
        5   YunHui                              0x000000010b47a755 -[RCDMeTableViewController tableView:didSelectRowAtIndexPath:] + 293
        6   UIKit                               0x000000010eb013b9 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1848
        7   UIKit                               0x000000010eb015cd -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 330
        8   UIKit                               0x000000010e9b662f _runAfterCACommitDeferredBlocks + 320
        9   UIKit                               0x000000010e9a3273 _cleanUpAfterCAFlushAndRunDeferredBlocks + 566
        10  UIKit                               0x000000010e9d4746 _afterCACommitHandler + 176
        11  CoreFoundation                      0x0000000113740267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
        12  CoreFoundation                      0x00000001137401d7 __CFRunLoopDoObservers + 391
        13  CoreFoundation                      0x0000000113724f8e __CFRunLoopRun + 1198
        14  CoreFoundation                      0x0000000113724884 CFRunLoopRunSpecific + 420
        15  GraphicsServices                    0x000000011547aa6f GSEventRunModal + 161
        16  UIKit                               0x000000010e9a9c68 UIApplicationMain + 159
        17  YunHui                              0x000000010b4e87cf main + 111
        18  libdyld.dylib                       0x0000000114f8168d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)



错误过程日志如下


2017-01-11 20:14:30.781 YunHui[1115:56200] -[RCDMeInfoTableViewController startLoad]: unrecognized selector sent to instance 0x7fd6c473ef70
2017-01-11 20:14:30.785 YunHui[1115:56200] Exception name:NSInvalidArgumentException
Exception reason:-[RCDMeInfoTableViewController startLoad]: unrecognized selector sent to instance 0x7fd6c473ef70
Exception stack
        0   CoreFoundation                      0x000000011395dd4b __exceptionPreprocess + 171
        1   libobjc.A.dylib                     0x0000000112ded21e objc_exception_throw + 48
        2   CoreFoundation                      0x00000001139cdf04 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
        3   CoreFoundation                      0x00000001138e3005 ___forwarding___ + 1013
        4   CoreFoundation                      0x00000001138e2b88 _CF_forwarding_prep_0 + 120
        5   YunHui                              0x000000010b63c755 -[RCDMeTableViewController tableView:didSelectRowAtIndexPath:] + 293
        6   UIKit                               0x000000010ecc33b9 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1848
        7   UIKit                               0x000000010ecc35cd -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 330
        8   UIKit                               0x000000010eb7862f _runAfterCACommitDeferredBlocks + 320
        9   UIKit                               0x000000010eb65273 _cleanUpAfterCAFlushAndRunDeferredBlocks + 566
        10  UIKit                               0x000000010eb96746 _afterCACommitHandler + 176
        11  CoreFoundation                      0x0000000113902267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
        12  CoreFoundation                      0x00000001139021d7 __CFRunLoopDoObservers + 391
        13  CoreFoundation                      0x00000001138e6f8e __CFRunLoopRun + 1198
        14  CoreFoundation                      0x00000001138e6884 CFRunLoopRunSpecific + 420
        15  GraphicsServices                    0x00000001155ada6f GSEventRunModal + 161
        16  UIKit                               0x000000010eb6bc68 UIApplicationMain + 159
        17  YunHui                              0x000000010b6aa7cf main + 111
        18  libdyld.dylib                       0x00000001150b468d start + 1
)
2017-01-11 20:14:30.786 YunHui[1115:56200] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RCDMeInfoTableViewController startLoad]: unrecognized selector sent to instance 0x7fd6c473ef70'
*** First throw call stack:
(
        0   CoreFoundation                      0x000000011395dd4b __exceptionPreprocess + 171
        1   libobjc.A.dylib                     0x0000000112ded21e objc_exception_throw + 48
        2   CoreFoundation                      0x00000001139cdf04 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
        3   CoreFoundation                      0x00000001138e3005 ___forwarding___ + 1013
        4   CoreFoundation                      0x00000001138e2b88 _CF_forwarding_prep_0 + 120
        5   YunHui                              0x000000010b63c755 -[RCDMeTableViewController tableView:didSelectRowAtIndexPath:] + 293
        6   UIKit                               0x000000010ecc33b9 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1848
        7   UIKit                               0x000000010ecc35cd -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 330
        8   UIKit                               0x000000010eb7862f _runAfterCACommitDeferredBlocks + 320
        9   UIKit                               0x000000010eb65273 _cleanUpAfterCAFlushAndRunDeferredBlocks + 566
        10  UIKit                               0x000000010eb96746 _afterCACommitHandler + 176
        11  CoreFoundation                      0x0000000113902267 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
        12  CoreFoundation                      0x00000001139021d7 __CFRunLoopDoObservers + 391
        13  CoreFoundation                      0x00000001138e6f8e __CFRunLoopRun + 1198
        14  CoreFoundation                      0x00000001138e6884 CFRunLoopRunSpecific + 420
        15  GraphicsServices                    0x00000001155ada6f GSEventRunModal + 161
        16  UIKit                               0x000000010eb6bc68 UIApplicationMain + 159
        17  YunHui                              0x000000010b6aa7cf main + 111
        18  libdyld.dylib                       0x00000001150b468d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)

Rank: 3Rank: 3

主题:
53
帖子:
179
云币:
121
 楼主| 发表于 2017-1-12 02:49:34 |
问题已自行解决,谢谢!
您需要登录后才可以回帖 登录 | 立即注册

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