-
Notifications
You must be signed in to change notification settings - Fork 24.5k
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
Cannot build react-native project with Xcode 9 server #16850
Comments
I have the same problem for xcodebuild command. But Xcode 9 run build success. |
I have to and XCode run and build successfully. After first buil the red message dissapiar |
Surprisingly I can build with xcodebuild just fine. This lead me to create a custom make build target to run xcodebuild to see if that got it to work. It did not. For some reason running on ccode build server causes it not to reference the React project for includes. I do have some ideas and will post when I’ve tried them out. |
Nothing I have tried has worked. It cannot resolve the React/ dependencies. Looking at the project structure, I don't see any headers under a "React" folder. They all seem to be in sub folders. I'm not sure what the major difference is between running on a build server vs running in the editor but I really don't want to have to trigger builds manually. Sort of breaks CI. |
i am running into the same scenario. Would love to chat, maybe we can debug this. I have everything else working but the react native dependency cannot be found. |
Yeah that is also what I am seeing. I can't figure out why. I'd love to chat :) hit me up at my username at gmail dot com |
Have you found a way around this? |
@TStrauch Not yet. Still digging around. I feel like it probably has to do with this new parallel build stuff in Xcode. I've notice it doesn't seem to save to the project file. This might not be the issue, but I've seen similar errors when parallel builds are turned on. |
May be switch to cocoapods will behave better ;-) |
I'm also running into this issue where my CI XCode Server bot cannot resolve the React dependencies and fails at the first header file found in AppDelegate.m. Building/Archiving manually with the same scheme works perfectly. Anyone find a solution to this? |
I have kind of given up on this I spent half a day with no one having any progress. I would love to see what people come up with. I am sure the ci builds for react native have some solutions. |
To be honest, I've found that if you manually link react native, following the add to an existing project steps, the metro garbage doesn't run and you can get it to a point where I think, haven't tested, it would build with an integration system. Honestly at this point I'm finishing up the projects that I have in react native and going back to programming in pure native code. I just can't rely on react native as a viable solution at this point. |
+1 Begun appearing for me today and cannot get rid of it. Tried all suggestions here https://github.com/facebook/react-native/issues/12077 but no luck. |
@garethiv Funny you should ask; I actually got my project building last night. Here's how: The first thing you should know is about the un/under-documented environment variable The next thing that is needed in order to get the bundler to work properly is to add node to the path before the script is called. The only reliable way I found to do this is to modify the Then when you create your bot you can set your environment variables: Lastly add a pre-integration script for your bot. Something to keep in mind is that the default folder you get dropped in is the folder your repository is checked out into. So the first thing you need to do is to Hopefully facebook/react-native-website#370 will clear some of this stuff up. P.S. I should also mention #16881. In your pre-build script you might want to grep and remove facebook's team id from the |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
so @Rojuinex did you write up anything on how to get this setup or links to help get it going. I gave up but would love to have this work. |
@myusuf3 I haven't written anything up on how to do it, but I've actually personally moved to using GoCD + fastlane instead of Xcode Server and it's been working decently well. The big gotcha's are If you can get fastlane to build under these two conditions it's pretty easy to set up GoCD's build environment to run fastlane. The biggest caveat is when the app-specific password for your App Store Connect account expires and your build seemingly breaks for no reason. As a build server isn't interactive fastlane will just hang forever; or at least I killed it before it reached any sort of time out (and it had been sitting in this state for very many minutes). Maybe when I have some breathing room I'll put something together on how I finally got automated builds to work with React Native ;D |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as "For Discussion" or "Good first issue" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
Is this a bug report?
Yes
Have you read the Contributing Guidelines?
yes
Environment
Environment:
OS: macOS High Sierra 10.13.1
Node: 9.2.0
Yarn: Not Found
npm: 5.5.1
Watchman: Not Found
Xcode: Xcode 9.1 Build version 9B55
Android Studio: 2.3 AI-162.4069837
Packages: (wanted => installed)
react: ^16.1.1 => 16.1.1
react-native: github:facebook/react-native#master => 1000.0.0
Steps to Reproduce
Expected Behavior
The project will build the same as it did locally.
Actual Behavior
The project fails with the following:
Reproducible Demo
Any vanilla project created with react-native init will do.
The text was updated successfully, but these errors were encountered: