diff --git a/scripts/build.sh b/scripts/build.sh index f212642b86d..713b34e628d 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -150,16 +150,17 @@ buildIosDevice(){ buildIosRelease(){ prebuild_ios + echo "Setting up env vars..."; + echo $IOS_ENV | tr "|" "\n" > .ios.env + echo "Build started..." + # Replace release.xcconfig with ENV vars if [ "$PRE_RELEASE" = true ] ; then - echo "Setting up env vars..."; - echo $IOS_ENV | tr "|" "\n" > .ios.env - echo "Build started..." cd ios && bundle install && bundle exec fastlane prerelease # Generate sourcemaps yarn sourcemaps:ios else - react-native run-ios --configuration Release + ./node_modules/.bin/react-native run-ios --configuration Release --simulator "iPhone X (12.2)" fi }