When I switch my iOS project to the release schema (as described https://facebook.github.io/react-native/docs/running-on-device.html), I get this error:
2016-11-29 11:49:01.621 [fatal][tid:main] No script URL provided. Make sure the packager is running or you have embedded a JS bundle in your application bundle.unsanitizedScriptURLString:((null))
Do I need to create a static js bundle in production mode? The docs suggest that in earlier React Native docs, but I'm running React Native 0.35 (originally 0.30)
react-native upgrade
afterwards? YourAppDelegate.m
should look like this: github.com/facebook/react-native/blob/master/local-cli/… – martinarroyojsCodeLocation = [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index.ios" fallbackResource:nil];
– Chih-Chao Lamreact-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output iOS/main.jsbundle
I get this error:TransformError: [deleted]/node_modules/firebase/database.js: [deleted]/node_modules/firebase/database.js: Property consequent of ConditionalExpression expected node to be of a type ["Expression"] but instead got null
Could that be the issue? – Chih-Chao Lam