- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我正在刷我的第一个 ReactNative IOS 应用程序。使用 XCode 和设备模拟器,一切正常。但是,当我在我的 Iphone4S 上安装该应用程序( Release模式,为开发部署保存)时,它会崩溃并显示一个非常不透明的崩溃报告(即使它被符号化了......)。
Incident Identifier: 4F2E39E3-04AA-464F-8E8A-A3E64DAB967C
CrashReporter Key: acfbbf1516e80394d2495007d52f7c5828dd89ba
Hardware Model: iPhone3,1
Process: KinderApp Release [217]
Path: /var/mobile/Applications/E5AA4CFF-F0CB-4FD6-819A-0ECF2FE0BC5B/KinderApp Release.app/KinderApp Release
Identifier: io.deux.KinderApp
Version: 1 (1.0)
Code Type: ARM (Native)
Parent Process: launchd [1]
Date/Time: 2016-03-23 17:42:45.407 +0100
OS Version: iOS 7.1.2 (11D257)
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x2e1edf7e __exceptionPreprocess + 126
1 libobjc.A.dylib 0x3899ecca objc_exception_throw + 34
2 CoreFoundation 0x2e1edec0 +[NSException raise:format:] + 100
3 KinderApp Release 0x000ce6da __hidden#7134_ (__hidden#7589_:133)
4 KinderApp Release 0x000e5ae8 __hidden#9463_ (__hidden#9656_:491)
5 KinderApp Release 0x000e3a74 __hidden#9411_ (__hidden#9656_:112)
6 libdispatch.dylib 0x38e8682e _dispatch_call_block_and_release + 6
7 libdispatch.dylib 0x38e8681a _dispatch_client_callout + 18
8 libdispatch.dylib 0x38e86772 _dispatch_main_queue_callback_4CF$VARIANT$up + 250
9 CoreFoundation 0x2e1b889c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 4
10 CoreFoundation 0x2e1b7170 __CFRunLoopRun + 1296
11 CoreFoundation 0x2e121eba CFRunLoopRunSpecific + 518
12 CoreFoundation 0x2e121c9e CFRunLoopRunInMode + 102
13 GraphicsServices 0x3302765e GSEventRunModal + 134
14 UIKit 0x30a6e148 UIApplicationMain + 1132
15 KinderApp Release 0x00089e82 main (__hidden#9_:16)
16 libdyld.dylib 0x38eabab2 tlv_initializer + 2
Thread 0 Crashed:
0 libsystem_kernel.dylib 0x38f611f0 __pthread_kill + 8
1 libsystem_pthread.dylib 0x38fcb792 pthread_kill + 54
2 libsystem_c.dylib 0x38f11fd8 abort + 72
3 libc++abi.dylib 0x38240cd2 abort_message + 70
4 libc++abi.dylib 0x382596e0 default_terminate_handler() + 248
5 libobjc.A.dylib 0x3899ef62 _objc_terminate() + 190
6 libc++abi.dylib 0x382571c4 std::__terminate(void (*)()) + 76
7 libc++abi.dylib 0x38256a18 __cxa_throw + 112
8 libobjc.A.dylib 0x3899ed9e objc_exception_throw + 246
9 CoreFoundation 0x2e1edec0 +[NSException raise:format:] + 100
10 KinderApp Release 0x000ce6da __hidden#7134_ (__hidden#7589_:133)
11 KinderApp Release 0x000e5ae8 __hidden#9463_ (__hidden#9656_:491)
12 KinderApp Release 0x000e3a74 __hidden#9411_ (__hidden#9656_:112)
13 libdispatch.dylib 0x38e86830 _dispatch_call_block_and_release + 8
14 libdispatch.dylib 0x38e8681c _dispatch_client_callout + 20
15 libdispatch.dylib 0x38e86772 _dispatch_main_queue_callback_4CF$VARIANT$up + 250
16 CoreFoundation 0x2e1b889c __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 4
17 CoreFoundation 0x2e1b7170 __CFRunLoopRun + 1296
18 CoreFoundation 0x2e121eba CFRunLoopRunSpecific + 518
19 CoreFoundation 0x2e121c9e CFRunLoopRunInMode + 102
20 GraphicsServices 0x3302765e GSEventRunModal + 134
21 UIKit 0x30a6e148 UIApplicationMain + 1132
22 KinderApp Release 0x00089e82 main (__hidden#9_:16)
23 libdyld.dylib 0x38eabab4 start + 0
Thread 1:
0 libsystem_kernel.dylib 0x38f4e808 kevent64 + 24
1 libdispatch.dylib 0x38e9ade8 _dispatch_mgr_invoke + 228
2 libdispatch.dylib 0x38e89f6e _dispatch_mgr_thread$VARIANT$up + 34
Thread 2:
0 libsystem_kernel.dylib 0x38f61c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38fc8bda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38fc8a94 start_wqthread + 4
Thread 3 name: com.apple.NSURLConnectionLoader
Thread 3:
0 libsystem_kernel.dylib 0x38f4eaa8 semaphore_wait_trap + 8
1 libdispatch.dylib 0x38e99f74 _dispatch_semaphore_wait_slow + 172
2 libxpc.dylib 0x38fd90ae xpc_connection_send_message_with_reply_sync + 150
3 libsystem_network.dylib 0x38fa2a08 net_helper_interface_is_cellular + 180
4 libsystem_network.dylib 0x38f9fb2e tcp_connection_is_cellular + 90
5 CFNetwork 0x2dddba8a SocketStream::socketCallbackConnectLocked(SocketStreamSignalHolder*, void const*) + 118
6 CFNetwork 0x2dddb9d0 SocketStream::socketCallback(__CFSocket*, unsigned long, __CFData const*, void const*) + 88
7 CFNetwork 0x2dddb942 SocketStream::_SocketCallBack_stream(__CFSocket*, unsigned long, __CFData const*, void const*, void*) + 54
8 CoreFoundation 0x2e1bb2f0 __CFSocketPerformV0 + 368
9 CoreFoundation 0x2e1b9208 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 12
10 CoreFoundation 0x2e1b86d6 __CFRunLoopDoSources0 + 202
11 CoreFoundation 0x2e1b6eca __CFRunLoopRun + 618
12 CoreFoundation 0x2e121eba CFRunLoopRunSpecific + 518
13 CoreFoundation 0x2e121c9e CFRunLoopRunInMode + 102
14 Foundation 0x2eb62082 +[NSURLConnection(Loader) _resourceLoadLoop:] + 314
15 Foundation 0x2ebd7a5a __NSThread__main__ + 1058
16 libsystem_pthread.dylib 0x38fca916 _pthread_body + 138
17 libsystem_pthread.dylib 0x38fca886 _pthread_start + 98
18 libsystem_pthread.dylib 0x38fc8aa0 thread_start + 4
Thread 4:
0 libsystem_kernel.dylib 0x38f61c70 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x38fc8bda _pthread_wqthread + 306
2 libsystem_pthread.dylib 0x38fc8a94 start_wqthread + 4
Thread 5 name: com.apple.CFSocket.private
Thread 5:
0 libsystem_kernel.dylib 0x38f61434 __select + 20
1 CoreFoundation 0x2e1bc708 __CFSocketManager + 480
2 libsystem_pthread.dylib 0x38fca916 _pthread_body + 138
3 libsystem_pthread.dylib 0x38fca886 _pthread_start + 98
4 libsystem_pthread.dylib 0x38fc8aa0 thread_start + 4
Thread 0 crashed with ARM Thread State (32-bit):
r0: 0x00000000 r1: 0x00000000 r2: 0x00000000 r3: 0x00002060
r4: 0x00000006 r5: 0x3acc918c r6: 0x00000000 r7: 0x27d80004
r8: 0x155abe60 r9: 0x00000001 r10: 0x155b17c0 r11: 0x155b22e0
ip: 0x00000148 sp: 0x27d7fff8 lr: 0x38fcb797 pc: 0x38f611f0
cpsr: 0x00000010
编辑:与此同时,我能够在 Xcode 上重现错误并获得更明确的错误日志。
当我在 AppDelegate.m 中注释这一行时出现错误:
jsCodeLocation = [NSURL URLWithString:@"http://localhost:8081/index.ios.bundle?platform=ios&dev=true"];
并且我取消注释这一行:
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
这是控制台日志:
2016-03-25 14:59:06.078 [error][tid:com.facebook.React.JavaScript] Unable to execute JS call: __fbBatchedBridge is undefined
2016-03-25 14:59:06.083 KinderApp Release[5500:23084] *** Terminating app due to uncaught exception 'RCTFatalException: Unable to execute JS call: __fbBatchedBridge is undefined', reason: 'Unable to execute JS call: __fbBatchedBridge is undefined'
*** First throw call stack:
(
0 CoreFoundation 0x01645a14 __exceptionPreprocess + 180
1 libobjc.A.dylib 0x00894e02 objc_exception_throw + 50
2 CoreFoundation 0x0164593d +[NSException raise:format:] + 141
3 KinderApp Release 0x0014b71b RCTFatal + 460
4 KinderApp Release 0x0016acf2 __69-[RCTBatchedBridge _actuallyInvokeAndProcessModule:method:arguments:]_block_invoke + 54
5 KinderApp Release 0x00165347 __52-[RCTJSCExecutor _executeJSCall:arguments:callback:]_block_invoke + 1506
6 KinderApp Release 0x00165a11 -[RCTJSCExecutor executeBlockOnJavaScriptQueue:] + 191
7 KinderApp Release 0x00164d01 -[RCTJSCExecutor _executeJSCall:arguments:callback:] + 185
8 KinderApp Release 0x00164b31 -[RCTJSCExecutor callFunctionOnModule:method:arguments:callback:] + 181
9 KinderApp Release 0x0016ac7b -[RCTBatchedBridge _actuallyInvokeAndProcessModule:method:arguments:] + 190
10 KinderApp Release 0x0016a1bb __39-[RCTBatchedBridge enqueueJSCall:args:]_block_invoke_2 + 144
11 KinderApp Release 0x0016913b __36-[RCTBatchedBridge didFinishLoading]_block_invoke + 158
12 KinderApp Release 0x00165a11 -[RCTJSCExecutor executeBlockOnJavaScriptQueue:] + 191
13 libobjc.A.dylib 0x008a9059 -[NSObject performSelector:withObject:] + 70
14 Foundation 0x004a30d8 __NSThreadPerformPerform + 323
15 CoreFoundation 0x0155f6ff __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 15
16 CoreFoundation 0x0155538b __CFRunLoopDoSources0 + 523
17 CoreFoundation 0x015547a8 __CFRunLoopRun + 1032
18 CoreFoundation 0x015540e6 CFRunLoopRunSpecific + 470
19 CoreFoundation 0x01553efb CFRunLoopRunInMode + 123
20 KinderApp Release 0x00163b93 +[RCTJSCExecutor runRunLoopThread] + 318
21 Foundation 0x004a59ba -[NSThread main] + 76
22 Foundation 0x0055a1cc __NSThread__start__ + 1346
23 libsystem_pthread.dylib 0x04e5e794 _pthread_body + 138
24 libsystem_pthread.dylib 0x04e5e70a _pthread_body + 0
25 libsystem_pthread.dylib 0x04e5bfa6 thread_start + 34
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)
最佳答案
也许可以在 Xcode > Window > Devices 中尝试并查看设备日志以查看是否有任何突出的内容,您的配置文件是否正常等?
关于ios - React Native - IOS 崩溃 - Symbolicate 崩溃报告 -,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36185907/
在这种情况下,我们在应用程序中同时使用react-native-gesture-handler Touchable和react-native Touchable。 (通过Touchables,我的意思
我有一个 MainFooter包含页脚和迷你播放器的组件,单击时动画显示为全 View 。我有一个问题,每当我们点击一个页脚选项卡时,播放器最大化然后卡在那里,没有响应。 此外,播放器内部的向下箭
我在 native react 之上使用 native 基础组件,我想知道如何在 UI 中使卡片呈圆形而不是矩形。有圆形的 Prop 吗? 最佳答案 好吧,实际上没有人能回答这个问题,但幸运的是我在
我在 native react 之上使用 native 基础组件,我想知道如何在 UI 中使卡片呈圆形而不是矩形。有圆形的 Prop 吗? 最佳答案 好吧,实际上没有人能回答这个问题,但幸运的是我在
我是 react-native 的新手,所以我认为“HTML”而不是“native”可能有点太多了,所以我的问题看起来很愚蠢。 我使用 react-native-router-flux 进行路由,并使
当我使用这个例子在我的应用程序上实现 Image-slider 时,我遇到了这个错误。 import React,{Component} from 'react' import {View,T
我正在为我们的产品使用“Native Base”组件,并且效果很好, 但我有一点被卡住了,它是关于将 Items 放入 Nativebase Picker 的问题。我的代码是这样的 渲染方法代码 -
正如文档中所建议的,我将一些长的数据获取代码移动到 native 模块中以释放 JS 线程,但我观察到这仍然阻塞了 UI。为什么会这样,我能做些什么来避免这种情况? 从 JS 调用 native 模块
我正在使用一个名为 react-native-svg 的框架在 React Native View 中绘制 SVG 元素。 我的目标是,当我点击 View 时(我在全局 View 上使用 PanRes
在 IOS 中发现错误 Native Module cannot be null 我不使用 react-native-push-notification 最佳答案 这通常发生在您未能将第三个库链接到您
当应用程序关闭时,我可以获得由 Linking.getInitialURL() 点击的深层链接网址。 .当应用程序处于后台状态时,则不会安装任何内容。所以,我什至无法通过 Linking.addEve
1) 说原生库是什么意思?什么样的图书馆?那些将用作 gradle 依赖项? 2)如何链接这些?我在使用 link 或 rnpm 时遇到了麻烦。 最佳答案 链接 native 库意味着您要将已经实现的
我需要帮助来构建我的 react 原生项目。我尝试过react-native run-android,但出现以下错误: react-native : The term 'react-native' i
我需要帮助来构建我的 react 原生项目。我尝试过react-native run-android,但出现以下错误: react-native : The term 'react-native' i
我是 React-Native 的新手,到目前为止我很喜欢它。我正在尝试创建一个屏幕(用于跨平台应用程序),右上角有一个菜单图标,单击时,我想打开一个菜单,希望使用 react-native-menu
RN doco 和其他示例展示了如何从 native iOS View Controller 启动 React-Native View ,但反之则不然。谁能解释一下我该怎么做? 最佳答案 我能够弄清楚
对于 react-native - WebStorm 用户: 我正在使用 Jet Brains IDE WebStorm 开始一个带有 React Native 的项目。 在项目 => node_mo
在升级过去的 react-native 0.60 之后......我被警告我应该取消链接所有手动链接的第 3 方库(因为 RN 现在通过自动链接处理它)。 但是,当我运行 react-native u
你可以使用像 https://github.com/tolu360/react-native-google-places 这样的库吗?在世博项目中?我假设任何 npm 库都可以添加,但是像这个 goo
我主要喜欢 React Native。自 0.22 以来一直在使用它。目前为 0.35。 但是为什么链接原生库就像抽奖一样呢?我很少在第一次拍摄时让它发挥作用,而破裂的东西通常是完全不同的东西。 每个
我是一名优秀的程序员,十分优秀!