Skip to content
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

Closed
ajonno opened this issue Dec 6, 2016 · 6 comments
Closed

React Native iOS Deploy build failing #19

ajonno opened this issue Dec 6, 2016 · 6 comments

Comments

@ajonno
Copy link

ajonno commented Dec 6, 2016

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 and Cache:Push steps temporarily to not to use the cache, or you can delete all the caches on the Settings 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

@viktorbenei
Copy link
Contributor

I believe you forgot to run npm install, that's why the header is missing. See brentvatne/react-native-svgkit#11 (comment)

@ajonno
Copy link
Author

ajonno commented Dec 6, 2016

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?

@viktorbenei
Copy link
Contributor

@ajonno
Copy link
Author

ajonno commented Dec 6, 2016

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 ?

@viktorbenei
Copy link
Contributor

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.

re the correct way and place to enter a 'path' that the CI build can see

Any path can work, just don't use absolute paths. Usually $HOME/something or ~/something is a good idea if you have to download resources into a central place, as $HOME (or ~) will always exist on every machine, but e.g. /Users/MyUser won't. Relative paths should also work, the only thing you should avoid is using / hardcoding absolute paths (like Users/MyUser/something/...), as that will only work on a specific machine, where that specific user/path exists.

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

@viktorbenei
Copy link
Contributor

I'll close this issue, but if you need more info/help @ajonno just let us know and we'll reopen it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants