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

Change public headers #89

Closed
wants to merge 3 commits into from

Conversation

morozkin
Copy link

@morozkin morozkin commented May 9, 2018

Hi @lucdion !

I faced with the problem while trying to integrate your tool into my project via Cocoapods as a static framework. The problem is YGLayout+Private header which is imported because of its existence in modulemap file. This header indirectly imports Yoga-internal which includes C++ STL headers. And here the problem, compiler can't find these headers and I get compilation error.

2018-05-09 22 22 27

The similar issue arrised for users of ReactNative which also uses yoga. For ReactNative the problem was that all headers were public since there wasn't public_header_files defined in podspec. You can have a look at the merged PR with the solution.

For successfully building FlexLayout as static framework we have to remove YGLayout+Private.h from the master header and exclude it from the list of public_header_files since there is no reason for doing this.

But there is another problem, while my solution works perfectly for static frameworks it doesn't work for dynamic ones and you can see the same error in travis logs.

@lucdion
Copy link
Member

lucdion commented May 10, 2018

@morozkin, we must find a way to support both 🤔

@lucdion
Copy link
Member

lucdion commented May 25, 2018

@morozkin I'm not sure this would help, but I've seen this new PR on yoga: facebook/yoga#777

Merge layoutBox/FlexLayout master branch into update_public_headers
@lucdion
Copy link
Member

lucdion commented Dec 18, 2018

I will close this branch @morozkin since there is no action since may 9th. Thanks

@lucdion lucdion closed this Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants