集成RN:reason: 'No bridge implementation is available, giving up.'

布怀特 2017-08-31 05:04:36
集成RN遇到上面的error,有人遇到过吗,新手踩坑,求助大神~

2017-08-31 16:56:04.502 ReactTest[10182:302740] *** Assertion failure in -[RCTBridge bridgeClass](), /Users/iranshao/Desktop/ReactTest/node_modules/react-native/React/Base/RCTBridge.m:293
2017-08-31 16:56:04.510 ReactTest[10182:302740] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'No bridge implementation is available, giving up.'
*** First throw call stack:
(
0 CoreFoundation 0x00000001089c0b0b __exceptionPreprocess + 171
1 libobjc.A.dylib 0x0000000108425141 objc_exception_throw + 48
2 CoreFoundation 0x00000001089c4cf2 +[NSException raise:format:arguments:] + 98
3 Foundation 0x0000000107ff469b -[NSAssertionHandler handleFailureInFunction:file:lineNumber:description:] + 165
4 ReactTest 0x0000000107cbedb7 -[RCTBridge bridgeClass] + 535
5 ReactTest 0x0000000107cbef0d -[RCTBridge setUp] + 285
6 ReactTest 0x0000000107cbe317 -[RCTBridge initWithDelegate:bundleURL:moduleProvider:launchOptions:] + 375
7 ReactTest 0x0000000107cbe132 -[RCTBridge initWithBundleURL:moduleProvider:launchOptions:] + 146
8 ReactTest 0x0000000107cea667 -[RCTRootView initWithBundleURL:moduleName:initialProperties:launchOptions:] + 183
9 ReactTest 0x0000000107cb4d48 _TTOFCSo11RCTRootViewcfT9bundleURLGSQV10Foundation3URL_10moduleNameGSQSS_17initialPropertiesGSQGVs10DictionaryVs11AnyHashableP___13launchOptionsGSQGS2_S3_P____GSQS__ + 504
10 ReactTest 0x0000000107cb44f9 _TFCSo11RCTRootViewCfT9bundleURLGSQV10Foundation3URL_10moduleNameGSQSS_17initialPropertiesGSQGVs10DictionaryVs11AnyHashableP___13launchOptionsGSQGS2_S3_P____GSQS__ + 233
11 ReactTest 0x0000000107cb40a3 _TFC9ReactTest14ViewController11viewDidLoadfT_T_ + 483
12 ReactTest 0x0000000107cb4582 _TToFC9ReactTest14ViewController11viewDidLoadfT_T_ + 34
13 UIKit 0x00000001098ce01a -[UIViewController loadViewIfRequired] + 1235
14 UIKit 0x00000001098ce45a -[UIViewController view] + 27
15 UIKit 0x000000010979698a -[UIWindow addRootViewControllerViewIfPossible] + 65
16 UIKit 0x0000000109797070 -[UIWindow _setHidden:forced:] + 294
17 UIKit 0x00000001097a9ebe -[UIWindow makeKeyAndVisible] + 42
18 UIKit 0x000000010972337f -[UIApplication _callInitializationDelegatesForMainScene:transitionContext:] + 4346
19 UIKit 0x00000001097295e4 -[UIApplication _runWithMainScene:transitionContext:completion:] + 1709
20 UIKit 0x00000001097267f3 -[UIApplication workspaceDidEndTransaction:] + 182
21 FrontBoardServices 0x000000010fd035f6 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 24
22 FrontBoardServices 0x000000010fd0346d -[FBSSerialQueue _performNext] + 186
23 FrontBoardServices 0x000000010fd037f6 -[FBSSerialQueue _performNextFromRunLoopSource] + 45
24 CoreFoundation 0x0000000108966c01 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
25 CoreFoundation 0x000000010894c0cf __CFRunLoopDoSources0 + 527
26 CoreFoundation 0x000000010894b5ff __CFRunLoopRun + 911
27 CoreFoundation 0x000000010894b016 CFRunLoopRunSpecific + 406
28 UIKit 0x000000010972508f -[UIApplication _run] + 468
29 UIKit 0x000000010972b134 UIApplicationMain + 159
30 ReactTest 0x0000000107cb5907 main + 55
31 libdyld.dylib 0x000000010b91a65d start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb)



...全文
1477 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
布怀特 2017-09-17
  • 打赏
  • 举报
回复
引用 1 楼 yzhong_merry 的回复:
build setting 的 other linker flags 添加-ObjC
搞定了,多谢
yzhong_merry 2017-09-12
  • 打赏
  • 举报
回复
build setting 的 other linker flags 添加-ObjC

1,420

社区成员

发帖
与我相关
我的任务
社区描述
Swift,苹果于2014年WWDC(苹果开发者大会)发布的新开发语言,可与Objective-C共同运行于MAC OS和iOS平台,用于搭建基于苹果平台的应用程序。
swift 技术论坛(原bbs)
社区管理员
  • Swift
  • 网罗开发
  • 大熊猫侯佩
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧