react-native icon indicating copy to clipboard operation
react-native copied to clipboard

[Fatal] Update -[RCTBatchedBridge loadSource:] in Xcode 7 iOS 9

Open eshwartm opened this issue 11 years ago • 9 comments

I install the environment for react-native, and try to get AwesomeProject running.

On the terminal that opens, I get a SyntaxError: Use of const in strict mode pointing to the line:

const babel = require('babel-core'); ^^^^^

And this exception:

'NSInternalInconsistencyException', reason: 'It looks like the implementationof DEV has changed. Update -[RCTBatchedBridge loadSource:].'

Is the new version of Xcode and build target being iOS 9, the problem? Or something else?

eshwartm avatar Sep 30 '15 04:09 eshwartm

What version of Node are you running? Please check that it is 4+.

ide avatar Sep 30 '15 04:09 ide

node --version is v4.1.1

eshwartm avatar Sep 30 '15 06:09 eshwartm

Hm.. not sure what's going on then.

ide avatar Sep 30 '15 06:09 ide

I just got the same after updating my RN to 0.14-stable and my node version is 4.0.0

corymsmith avatar Oct 27 '15 17:10 corymsmith

This was fixed by adding &dev=true to the bundle query string as I had created this app many versions of RN ago when that wasn't included in the generated project.

http://localhost:8081/index.ios.bundle?platform=ios&dev=true

corymsmith avatar Oct 27 '15 17:10 corymsmith

@corymsmith Thank you, this works fine.

jadsonlourenco avatar Oct 28 '15 14:10 jadsonlourenco

This should be fixed in master: https://github.com/facebook/react-native/commit/500ffa9b763d03e759e9b2897da7f4f7904934cf

ide avatar Oct 28 '15 18:10 ide

I encountered the same problem as well. I hvae the correct path (http://localhost:8081/index.ios.bundle?platform=ios&dev=true)

any hints?

yychun1217 avatar Oct 29 '15 04:10 yychun1217

I encountered the same problem while running on a device.

my simulator runs well.

My environment is ios 9.1, xcode 7.1.

nosensezzz avatar Oct 29 '15 18:10 nosensezzz