Fork me on GitHub
#cljsrn
<
2016-09-20
>
rhiannon3118:09:09

My iOS app builds fine from Xcode, but when I download the app through TestFlight and launch it on my iPhone, I get “Waiting for Figwheel to load files.” on an otherwise blank app screen forever

misha18:09:57

@rhiannon31

NSURL *jsCodeLocation;

  /**
   * Loading JavaScript code - uncomment the one you want.
   *
   * OPTION 1
   * Load from development server. Start the server from the repository root:
   *
   * $ npm start
   *
   * To run on device, change `localhost` to the IP address of your computer
   * (you can get this by typing `ifconfig` into the terminal and selecting the
   * `inet` value under `en0:`) and make sure your computer and iOS device are
   * on the same Wi-Fi network.
   */

  jsCodeLocation = [NSURL URLWithString:@""];

  /**
   * OPTION 2
   * Load from pre-bundled file on disk. The static bundle is automatically
   * generated by the "Bundle React Native code and images" build step when
   * running the project on an actual device or running the project on the
   * simulator in the "Release" build configuration.
   */

//   jsCodeLocation = [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
you need the 2nd option, did you uncomment it? (in AppDelegate.m)

misha18:09:34

in (re-natal). not sure about boot-react-native

rhiannon3119:09:06

@misha thanks - no I haven’t done that, will give it a go now

misha19:09:24

it might be easier (and maybe even equivalent to testflight) to test on real device through xcode first

rhiannon3119:09:42

I tried testing it through xcode on my device a number of times, but couldn’t get it to work

rhiannon3119:09:13

I was hoping that testflight might fix that!

misha21:09:30

you need to use device, if you are using re-natal. and restart/re-package stuff.

rhiannon3121:09:55

thank you - will try that