在iPhone模擬器上一切正常。在構建應用程序的iPhone我得到的錯誤:如何爲iPhone構建React Native App?
A bundleURL is required to create an RCTRootView
在AppDelegate.m我去掉下面行的;
jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
並下載了預生成main.jsbundle到項目的根文件夾的iOS:
curl http://localhost:8081/index.ios.bundle -o main.jsbundle
我試圖在AppDelegate.swift中做這個 - 似乎沒有工作 - 在這裏也被問到:https://github.com/facebook/react-native/issues/240 – wantrapreneur 2016-06-08 21:41:38