【问题标题】:React Native libc++abi.dylib: terminating with uncaught exception of type NSExceptionReact Native libc++abi.dylib:以 NSException 类型的未捕获异常终止
【发布时间】:2017-02-06 04:34:52
【问题描述】:

我正在尝试创建我的第一个 react 原生 iOS 应用。 目前我正在关注Facebook React Native Docs 开始,但不幸的是我在我的第一个react-native run-ios 上偶然发现了一个问题。由于某种原因,我无法正常运行初始应用程序。

我正在使用 OSX El Capitan(版本 10.11.5)和最新的 Xcode(版本 8.0 (8A218a))开发 Macbook Air。

屏幕截图和错误消息:

Here you can see Window Screenshot

2016-09-28 11:06:00.065533 HelloWorld[1589:92816] bundleid: org.reactjs.native.example.HelloWorld, enable_level: 0, persist_level: 0, propagate_with_activity: 0
2016-09-28 11:06:00.068463 HelloWorld[1589:92816] subsystem: com.apple.siri, category: Intents, enable_level: 1, persist_level: 1, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
2016-09-28 11:06:00.131054 HelloWorld[1589:93235] subsystem: com.apple.UIKit, category: HIDEventFiltered, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2016-09-28 11:06:00.132294 HelloWorld[1589:93235] subsystem: com.apple.UIKit, category: HIDEventIncoming, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2016-09-28 11:06:00.171878 HelloWorld[1589:93231] subsystem: com.apple.BaseBoard, category: MachPort, enable_level: 1, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 0, privacy_setting: 0, enable_private_data: 0
2016-09-28 11:06:00.222728 HelloWorld[1589:92816] subsystem: com.apple.UIKit, category: StatusBar, enable_level: 0, persist_level: 0, default_ttl: 0, info_ttl: 0, debug_ttl: 0, generate_symptoms: 0, enable_oversize: 1, privacy_setting: 2, enable_private_data: 0
2016-09-28 11:06:00.281 HelloWorld[1589:92816] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle </Users/alen/Library/Developer/CoreSimulator/Devices/95895E4B-4F37-4E4B-BE5E-CD9C38966986/data/Containers/Bundle/Application/F09DF533-2E7A-411F-9698-DCBE1560C2DD/HelloWorld.app> (loaded)' with name 'Main''
*** First throw call stack:
(
    0   CoreFoundation                      0x000000010fdab34b __exceptionPreprocess + 171
    1   libobjc.A.dylib                     0x000000010ecbb21e objc_exception_throw + 48
    2   CoreFoundation                      0x000000010fe14265 +[NSException raise:format:] + 197
    3   UIKit                               0x000000011273401a -[UINib instantiateWithOwner:options:] + 507
    4   UIKit                               0x0000000112736803 -[NSBundle(UINSBundleAdditions) loadNibNamed:owner:options:] + 223
    5   UIKit                               0x000000011232761c -[UIApplication _loadMainNibFileNamed:bundle:] + 75
    6   UIKit                               0x0000000112327c13 -[UIApplication _loadMainInterfaceFile] + 260
    7   UIKit                               0x0000000112326274 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1406
    8   UIKit                               0x0000000112323539 -[UIApplication workspaceDidEndTransaction:] + 188
    9   FrontBoardServices                  0x00000001157b276b __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
    10  FrontBoardServices                  0x00000001157b25e4 -[FBSSerialQueue _performNext] + 189
    11  FrontBoardServices                  0x00000001157b296d -[FBSSerialQueue _performNextFromRunLoopSource] + 45
    12  CoreFoundation                      0x000000010fd50311 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    13  CoreFoundation                      0x000000010fd3559c __CFRunLoopDoSources0 + 556
    14  CoreFoundation                      0x000000010fd34a86 __CFRunLoopRun + 918
    15  CoreFoundation                      0x000000010fd34494 CFRunLoopRunSpecific + 420
    16  UIKit                               0x0000000112321db6 -[UIApplication _run] + 434
    17  UIKit                               0x0000000112327f34 UIApplicationMain + 159
    18  HelloWorld                          0x000000010e3697ff main + 111
    19  libdyld.dylib                       0x0000000113cfc68d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException

希望有人能帮我写一些代码,在此先感谢!

【问题讨论】:

    标签: ios xcode macos reactjs react-native


    【解决方案1】:

    你可以尝试几件事

    考虑到您刚刚开始,请从头开始,在不同的文件夹中,如果它不起作用,它与 react-native 无关,而是您的操作系统或开发软件的问题,如果您需要进一步的帮助,请贴出项目的完整代码。

    【讨论】:

    • 1. 不工作 2. 不工作 3. 不工作,尝试 iPhone 5 4。 不工作 5. 不工作,尝试 8.3
    • 感谢 Gazta 的帮助!我这里没有这个选项 - take.ms/Iogqo
    • 再次更新答案
    • 好吧,你不会相信这一点,我已经记录了创建初始应用程序的过程,以证明它不会在另一个文件夹中工作,但它工作了哈哈哈看看这个take.ms/OlRL1
    【解决方案2】:

    对我来说,这是添加 redux compse 后的套管 撰写增强器( 应用中间件(...中间件), 自动补水(), )

    【讨论】:

      猜你喜欢
      • 2015-09-08
      • 1970-01-01
      • 2014-12-14
      • 2014-10-04
      • 2017-05-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-11
      相关资源
      最近更新 更多