Fork me on GitHub

Hi all, newbie here. I just created a new project using re-natal. It works great when running in the IOS simulator but when I switch to my iPhone I get a "Error loading script, please check your config setup". I have updated AppDelegate.m to point to my Mac ip and called re-natal use-ios-device <myip>. Any ideas how to troubleshoot this?


Looking in the xcode console log it looks like it tries to load google closure


2016-03-25 11:36:42.137 [info][tid:com.facebook.React.JavaScript] Loading Closure base.
2016-03-25 11:36:42.137 [info][tid:com.facebook.React.JavaScript] Shimming require
2016-03-25 11:36:42.155 [error][tid:com.facebook.React.JavaScript] Error loading script, please check your config setup.
2016-03-25 11:36:42.168 [error][tid:com.facebook.React.JavaScript] { [TypeError: Network request failed]
  line: 14392,
  column: 21,
  sourceURL: '' }


I think I found it. It still tries to load goog/base.js from localhost. Now I just have to figure out why...


I deleted index.ios.js and target/, called re-natal use-figwheel again and all of a sudden it worked. I must have missed something before. Sorry for the noise simple_smile


@johannesgu: Yeah, I’ve hit that a couple of times myself. The order of operations is really important when making any changes to a react-native project.

lein clean       ;; wipe everything
re-natal use-figwheel || lein prod-build ;; produces the index.ios and files
lein figwheel ios ;; if in dev