-
Notifications
You must be signed in to change notification settings - Fork 7
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
React Native iOS Deploy build failing #19
Comments
I believe you forgot to run |
still failing. i inserted npm install via a "do anything" step. this is error: Compiling RCTFBSDKShareDialog.m ❌ /Users/vagrant/git/node_modules/react-native-fbsdk/ios/RCTFBSDK/share/RCTFBSDKShareDialog.h:21:9: 'FBSDKShareKit/FBSDKShareKit.h' file not found #import <FBSDKShareKit/FBSDKShareKit.h> i know for a fact that file/library is in my xcode project. how can i set the CI system to "see" that lib? |
That's a separate issue, related to Facebook React SDK - something like this should help: |
i hear you - although nothing ive tried so far is working. just need someone with experience fixing this problem, re the correct way and place to enter a 'path' that the CI build can see. why is it that the Primary channel is building ok, but the Deploy channel is not ? |
Without the code it's impossible to say. Might be a configuration issue e.g. different Xcode schemes/configuration, where one is configured correctly but not the other. Or that the SDK is only used in one config but not the other. There's absolutely 0 difference from bitrise perspective, every build runs the exact same way, executing the build configuration you specify with the source code you supply.
Any path can work, just don't use absolute paths. Usually If possible you should try to build the project on a Mac where you never built it before, you'll face the same issue there. The best environment is a virtual machine for this, but creating a macOS virtual machine might not be a simple task. We have a tool in alpha which can help you to create a VirtualBox macOS virtual machine, if you're interested: https://github.com/bitrise-tools/replica |
I'll close this issue, but if you need more info/help @ajonno just let us know and we'll reopen it! |
Bitrise Build Issue Report template
Description of the issue
Tried to run a "Deploy" branch to test out Bitrise (for app distribution) on a React Native iOS app. The build crashed. Just to note our local builds are fine / can generate an IPA.
This was the error:
/Users/vagrant/git/ios/cleverbean/AppDelegate.m:14:9: 'RCTBundleURLProvider.h' file not found
#import "RCTBundleURLProvider.h"
Environment:
This was run on the "Deploy" branch of Bitrise.
If on Bitrise.io: which stack? If not on Bitrise.io: on what operating system? (Plus any other information you can share)
The Bitrise build stack used was Xcode 8.1.x, on macOS 10.12 (Sierra). This matches our local dev setup.
Which build Step causes the issue and which version of the step?
Here is the relevant Bitrise log error report:
Running script '[CP] Check Pods Manifest.lock'
▸ Compiling main.m
▸ Compiling AppDelegate.m
❌ /Users/vagrant/git/ios/cleverbean/AppDelegate.m:14:9: 'RCTBundleURLProvider.h' file not found
#import "RCTBundleURLProvider.h"
^
▸ Compiling cleverbean_vers.c
▸ Compiling AppDelegate.m
** ARCHIVE FAILED **
Reproducibility
Does a "Rebuild" help? (You can trigger a rebuild from the Build's page, by clicking the "Rebuild" button in the top right corner of a finished build) :
Tried this --> NO
Does a rebuild without caches help? (You can remove the
Cache:Pull
andCache:Push
steps temporarily to not to use the cache, or you can delete all the caches on theSettings
tab of the app. :NO. i went to the Settings tab of the app, but there was NO option to disable the "Manage Build Caches (BETA)".. ??
If it's an issue which happens sporadically, what's the frequency? (e.g. Once a day ; about x% of the builds) :
HAPPENS ON EVERY BUILD
Does upgrading the build Step to the latest version help? : YES/NO
NOT SURE
When did the issue start? :
YESTERDAY
Linux/Android stack builds
_Can it be reproduced by running the build locally, after doing a clean git clone (git clone the repository, into a new directory, somewhere on your Mac/PC) and running the build from there with the Bitrise CLI ( https://www.bitrise.io/cli )?
LOCAL BUILD ARE FINE. I CAN CREATE AN IPA EVEN AFTER GIT CLONE TO A NEW DIR.
Other stacks
Build log
c2810b27c28940a4.pdf
_Please attach the build log (you can download the build log from the build's page,
once the build is finished, using the "Download log" button - floating at the bottom right corner of the log viewer),
DONE
raw-xcodebuild-output.pdf
The text was updated successfully, but these errors were encountered: