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

Update modulemap #469

Merged
merged 4 commits into from
Jun 25, 2015
Merged

Update modulemap #469

merged 4 commits into from
Jun 25, 2015

Conversation

joshaber
Copy link
Member

Mostly fixes #467.

We're still getting:

Umbrella header for module 'ObjectiveGit' does not include header '/git2/inttypes.h'
Umbrella header for module 'ObjectiveGit' does not include header '/git2/stdint.h'
Umbrella header for module 'ObjectiveGit' does not include header '/git2/sys/git2/inttypes.h'
Umbrella header for module 'ObjectiveGit' does not include header '/git2/sys/git2/stdint.h'

But those are Windows-specific so we don't actually want them. I'm not sure how to silence the warning.

@mdiep
Copy link
Contributor

mdiep commented Jun 25, 2015

I don't think you're supposed to include any of the /git2/sys headers.

@joshaber
Copy link
Member Author

Any idea how to silence the warnings about them?

@joshaber
Copy link
Member Author

Looks like we should be able to exclude the headers, maybe.

@joshaber joshaber closed this Jun 25, 2015
@mdiep
Copy link
Contributor

mdiep commented Jun 25, 2015

Oh! Xcode is complaining about those because they're being copied into the framework. ObjectiveGit is set up with a folder reference with all the libgit2 headers that's copied into the framework.

The solution is to use a group instead of a reference so you can exclude the headers that we don't want from ObjectiveGitFramework.xcodeproj and from the Copy Headers build phase.

@mdiep
Copy link
Contributor

mdiep commented Jun 25, 2015

(SwiftGit2 does it this way. You should be able to use it as a reference if you need one.)

@pietbrauer
Copy link
Member

Wouldn't this break integrations for some people that use ObjetiveGit and libgit2 directly?

@joshaber joshaber reopened this Jun 25, 2015
@joshaber
Copy link
Member Author

Interestingly we were already copying the headers. I'm not sure why we had the additional reference.

Wouldn't this break integrations for some people that use ObjetiveGit and libgit2 directly?

libgit2's headers are still exposed.

This is ready for review again 🙏

@mdiep
Copy link
Contributor

mdiep commented Jun 25, 2015

Wouldn't this break integrations for some people that use ObjetiveGit and libgit2 directly?

libgit2's headers are still exposed.

Some of libgit2's headers are platform-dependent. We're just excluding the ones that don't apply to OS X/iOS.

@mdiep
Copy link
Contributor

mdiep commented Jun 25, 2015

Xcode is giving me those warnings—even on master—but this looks good.

mdiep added a commit that referenced this pull request Jun 25, 2015
@mdiep mdiep merged commit 753d2d4 into master Jun 25, 2015
@mdiep mdiep deleted the update-modulemap branch June 25, 2015 16:19
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.

Update modulemap
3 participants