React-Native Offline Bundle - Images not showing : <p>I have a React-Native app I'm trying to deploy in Release mode to my phone. I can bundle the app to the phone. Database, Video and audio assets are all in there but no images are showing in the UI. </p>

<p>I have done the following to 'bundle' my app:</p>

<ol>
<li>in the project folder in Terminal run <code>react-native bundle --platfrom ios --dev false --entry-file index.ios.js --bundle-output main.jsbundle</code></li>
<li>Drag the reference to the <code>main.jsbundle</code> file into XCode under <code>myapp</code> folder</li>
<li>In XCode, open <code>AppDelegate.m</code> and uncomment <code>jsCodeLocation = [[NSBundle mainBundle]…</code></li>
<li>Open <code>Product &gt; Scheme &gt; Edit Scheme</code> then change <code>Build Configuration</code> to <code>Release</code></li>
<li>Select <code>myapp</code> under the project navigator and then:
under <code>TARGETS: myappTests</code> > <code>Build Phases</code> > <code>Link Binary With Libraries</code>
press <code>+</code>
select <code>Workspace</code> > <code>libReact.a</code> and <code>Add</code></li>
</ol>

<p>When I try and compile in XCode with the <code>../node_modules/react-native/packager/react-native-xcode.sh</code> setting in <code>myapp &gt; targets &gt; myapp &gt; Bundle React Native code and images</code> it fails with <code>error code 1</code>. </p>

<p>I've seen LOADS of posts on this and I've tried:</p>

<ul>
<li>to check <code>Run script only when installing</code>- the app then installs but with no images</li>
<li>adding <code>source ~/.bash_profile</code> to react-native-xcode.sh - the app build fails</li>
</ul>

<p>Any help would be greatly appreciated! </p>
