-
Notifications
You must be signed in to change notification settings - Fork 24.2k
-
Notifications
You must be signed in to change notification settings - Fork 24.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Travis error on react-native IOS Release scheme #20656
Comments
You can have a look inside the Xcode project build phases. There should be a build phase script called Bundle React Native code and images with something like
in it. This is the script that's supposed to run on build and bundle the js for you. Could it be something to do with the path or the |
@samjt Thank you for the reply. Do you think this problem could be related to the certificates for IOS? As i haven't configured them. |
Finally, after searching i solved it by adding this line to my travis.yml
after nvm install 9.10.0 Apparently, the script was using an other version of node and by setting this i forced it to use this node version |
Environment
React Native Environment Info:
System:
OS: macOS Sierra 10.12.6
CPU: x64 Intel(R) Core(TM) i5-2435M CPU @ 2.40GHz
Memory: 29.20 MB / 8.00 GB
Shell: 5.2 - /bin/zsh
Binaries:
Node: 9.0.0 - ~/.nvm/versions/node/v9.0.0/bin/node
Yarn: 1.9.2 - /usr/local/bin/yarn
npm: 5.5.1 - ~/.nvm/versions/node/v9.0.0/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 11.2, macOS 10.13, tvOS 11.2, watchOS 4.2
Android SDK:
Build Tools: 23.0.1, 23.0.3, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.0, 27.0.2, 27.0.3
API Levels: 23, 25, 26, 27
IDEs:
Android Studio: 3.1 AI-173.4819257
Xcode: 9.2/9C40b - /usr/bin/xcodebuild
npmPackages:
react: 16.4.1 => 16.4.1
react-native: 0.56.0 => 0.56.0
npmGlobalPackages:
create-react-native-app: 1.0.0
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7
Description
When i build ios release scheme locally i get no errors, but when i build on travis the release scheme i get this error under Running script 'Bundle React Native code and images':
File /Users/travis/Library/Developer/Xcode/DerivedData/TestApp-bktrthrvpvtbhdcrrzrzfekixdcy/Build/Products/Release-iphonesimulator/TestApp.app/main.jsbundle does not exist. This must be a bug with
I checked that when i run it locally the main.jsbundle is copied inside this folder but on travis this file is not copied although before building i run: react-native bundle --platform ios --dev false --entry-file index.js --bundle-output ios/main.jsbundle
I am using react-native v0.56
Reproducible Demo
This is my .travis.yml configuration:
The text was updated successfully, but these errors were encountered: