React Native : iOS build crash after upgrade project to 0.58.0

531 Views Asked by At

I am updated my project to RN 0.58.0. Android builds (simulator and release) are working but i have problem with iOS builds. I am building iOS app on BuddyBuild.

Build is working on iOS simulator but not on BuddyBuild (release).

I get this error:

4245
    ✗ File /tmp/sandbox/59d38c98cef756000131c06c/bbbuild/Build/Products/Release-iphoneos/MyApplication.app/main.jsbundle does not exist. This must be a bug with
4246
    ▸ Generating MyApplication.app.dSYM
4247
    ** BUILD FAILED **
4248
    The following build commands failed:
4249
        PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /tmp/sandbox/59d38c98cef756000131c06c/bbbuild/Build/Intermediates.noindex/MyApplication.build/Release-iphoneos/MyApplication.build/Script-00DD1BFF1BD5951E006B06BC.sh
4250
    (1 failure)

Help?

1

There are 1 best solutions below

0
On

You can try this:

react-native init whatever

cd whatever

react-native run-ios # this is not going to work, it will fail with your compilation error.

react-native run-ios # this will not work either, it will compile a lot more but then is going to run into some other issues.

pkill node

open -a Terminal "react-native start --reset-cache"

react-native run-ios # this time it should work

You're good to go!