react-native: [RCTBatchedBridge] Exception when running app
Even on a fresh install, I keep receiving this exception when trying to run my RN app:
2015-08-21 11:30:02.977 MyApp[46251:1723441] -[RCTBatchedBridge perfStats]: unrecognized selector sent to instance 0x7fabf9bb8a00
2015-08-21 11:30:02.983 MyApp[46251:1723441] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[RCTBatchedBridge perfStats]: unrecognized selector sent to instance 0x7fabf9bb8a00'
*** First throw call stack:
(
0 CoreFoundation 0x0000000106018c65 __exceptionPreprocess + 165
1 libobjc.A.dylib 0x0000000105cb1bb7 objc_exception_throw + 45
2 CoreFoundation 0x00000001060200ad -[NSObject(NSObject) doesNotRecognizeSelector:] + 205
3 CoreFoundation 0x0000000105f7613c ___forwarding___ + 988
4 CoreFoundation 0x0000000105f75cd8 _CF_forwarding_prep_0 + 120
5 MyApp 0x0000000104815516 -[RCTBatchedBridge _mainThreadUpdate:] + 422
6 QuartzCore 0x0000000106e7710f _ZN2CA7Display15DisplayLinkItem8dispatchEv + 37
7 QuartzCore 0x0000000106e76fd7 _ZN2CA7Display11DisplayLink14dispatch_itemsEyyy + 315
8 CoreFoundation 0x0000000105f80174 __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION__ + 20
9 CoreFoundation 0x0000000105f7fd35 __CFRunLoopDoTimer + 1045
10 CoreFoundation 0x0000000105f41d3d __CFRunLoopRun + 1901
11 CoreFoundation 0x0000000105f41366 CFRunLoopRunSpecific + 470
12 GraphicsServices 0x0000000108e91a3e GSEventRunModal + 161
13 UIKit 0x0000000106fd08c0 UIApplicationMain + 1282
14 MyApp 0x00000001047b68af main + 111
15 libdyld.dylib 0x0000000109673145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
RN version 0.8.0
About this issue
- Original URL
- State: closed
- Created 9 years ago
- Comments: 35 (6 by maintainers)
I fixed this error just by
rm -rf node_modules && npm install
.Had a similar issue, I fixed it by updating plist with the following:
here’s the facebook page that describes the changes:
https://developers.facebook.com/docs/ios/ios9
Either that or reset simulator settings: