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

Move headers to project section to fix archive #11395

Closed
wants to merge 1 commit into from

Conversation

janicduplessis
Copy link
Contributor

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

janicduplessis referenced this pull request Dec 10, 2016
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
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Dec 10, 2016
@nihgwu
Copy link
Contributor

nihgwu commented Dec 11, 2016

successfully archived my app after merged this PR

@javache
Copy link
Member

javache commented Dec 12, 2016

Hmm, with headers in project I saw issues when trying to build the tvOS and regular UIExplorer projects sequentially. What failures are you seeing?

@javache
Copy link
Member

javache commented Dec 12, 2016

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.

@javache
Copy link
Member

javache commented Dec 12, 2016

Ok, I've actually got the same set of changes locally, so I'll ship this.

@facebook-github-bot facebook-github-bot added the Import Started This pull request has been imported. This does not imply the PR has been approved. label Dec 12, 2016
@facebook-github-bot
Copy link
Contributor

@javache has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

1 similar comment
@facebook-github-bot
Copy link
Contributor

@javache has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

ide pushed a commit that referenced this pull request Dec 29, 2016
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
DanielMSchmidt pushed a commit to DanielMSchmidt/react-native that referenced this pull request Jan 4, 2017
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Import Started This pull request has been imported. This does not imply the PR has been approved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants