0

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?

neman
  • 196
  • 1
  • 10
  • Which version of react-native were you on before? – Andrew Feb 12 '19 at 12:37
  • @Andrew version 0.55.2 – neman Feb 12 '19 at 12:43
  • Have you tried building a `release` build locally? Are you using `react-native-sentry`? – Andrew Feb 12 '19 at 12:50
  • @Andrew I am not using react-native-sentry. For building release build locally I got some error about linker: `library not found for -lRNFirebase clang: error: linker command failed with exit code 1 (use -v to see invocation)` – neman Feb 12 '19 at 15:00
  • If you are using Pods did you use the `xcodeproj` instead of using `xcworkspace`? `xcworkspace` should be used for any project with Pods, you may also need to update your Pods – Andrew Feb 12 '19 at 15:09

1 Answers1

-1

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!

Akshay Mulgavkar
  • 1,727
  • 9
  • 22