-
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
Move headers to project section to fix archive #11395
Conversation
Summary: To make React Native play nicely with our internal build infrastructure we need to properly namespace all of our header includes. Where previously you could do `#import "RCTBridge.h"`, you must now write this as `#import <React/RCTBridge.h>`. If your xcode project still has a custom header include path, both variants will likely continue to work, but for new projects, we're defaulting the header include path to `$(BUILT_PRODUCTS_DIR)/usr/local/include`, where the React and CSSLayout targets will copy a subset of headers too. To make Xcode copy headers phase work properly, you may need to add React as an explicit dependency to your app's scheme and disable "parallelize build". Reviewed By: mmmulani Differential Revision: D4213120 fbshipit-source-id: 84a32a4b250c27699e6795f43584f13d594a9a82
successfully archived my app after merged this PR |
Hmm, with headers in project I saw issues when trying to build the tvOS and regular UIExplorer projects sequentially. What failures are you seeing? |
I'm trying this out on the v0.40 branch now, it looks like the Yoga headers are indeed incorrect, but they only need to be set to private. |
Ok, I've actually got the same set of changes locally, so I'll ship this. |
@javache has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
1 similar comment
@javache has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator. |
Summary: Follow up to fix some issues with 59407f3. Headers needed to be in the `project` section instead of `private` in xcode so they don't get included in the archive. cc javache Closes #11395 Differential Revision: D4313048 Pulled By: javache fbshipit-source-id: 805dbbe9f149acfe780be76e99c949c450272358
Summary: Follow up to fix some issues with 59407f3. Headers needed to be in the `project` section instead of `private` in xcode so they don't get included in the archive. cc javache Closes facebook#11395 Differential Revision: D4313048 Pulled By: javache fbshipit-source-id: 805dbbe9f149acfe780be76e99c949c450272358
Follow up to fix some issues with 59407f3. Headers needed to be in the
project
section instead ofprivate
in xcode so they don't get included in the archive.cc @javache