Closed Naoto-Ida closed 7 years ago
So a workaround for this now was to run:
react-native bundle --platform ios --dev false --entry-file index.ios.js --bundle-output iOS/main.jsbundle
Then remove the Bundle React Native code and images
script in Xcode.
I'd do a Release build and it would finish successfully.
Nothing in the app seems to be breaking. What could this be? A problem with the bundle script?
When building for Release scheme on Xcode, the build stops progressing without any warnings or alerts. Code builds fine on Debug Release. I am using Relay in my code with the required plugins
Same here.
I was loading GrapqhQL schema via network in a babel plugin (cf) which runs when react-native packeger runs. This logic was working well in 0.38.0 and as I upgraded to 0.42.0 it became unstable.
In my case, switching from loading the schema via network to loading from a local file made build great again.
I guess, in my case, nodejs process forks when bundling so fetching resources via network doesn't work well in certain situations. macOS asked me several times to allow nodejs to access network and server received same requests several times while bundling so I just thought something could go wrong.
@taiki-t So shall we close this? We seem to have found a workaround, but doesn't seem to be affecting others (but I'm pretty sure GraphQL is being used a lot for serving data to RN apps...).
@Naoto-Ida I'm fine with it. I'm happy with my solution. Thank you for considering me.
Ok. Hopefully its not just us thats having issues.
@Naoto-Ida - I tried your solution but I got this error: Script-00DD1BFF1BD5951E006B06BC.sh: (null): bad interpreter: No such file or directory
Description
When building for Release scheme on Xcode, the build stops progressing without any warnings or alerts. Code builds fine on Debug Release.
Before adding my JS it would build for Release scene without issues. I am using
Relay
in my code with the required plugins which query a local GraphQL implementation which is available at build time.Reproduction
react-native init AppName
to start with clean React Native proj.Release
, uncheck Debug executable.I'm not sure what this
+ [[ ! -n false ]]
at the end is. My Terminal is opened with the packager, and the output is as follows:Solution
I would like to know how I can debug this so that I can figure out at what is preventing the progress of the build.
Additional Information