Skip to content

Add Realm module map generation #6041

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

matt
Copy link

@matt matt commented Dec 18, 2018

Goal
Allow RealmSwift to be added as a static library via Cocoapods.

Workarounds

  1. Add use_modular_headers! to the Podfile.
  2. Add pod 'Realm', :modular_headers => true to the Podfile.

Additional Reading
CocoaPods 1.5.0 - Swift Static Libraries :: Modular Headers

Issue
#6042

@tgoyne
Copy link
Member

tgoyne commented Dec 18, 2018

This looks like just a CocoaPods bug (the Realm pod defines a module using a custom modulemap and the validator just fails to check for that), but explicitly setting DEFINES_MODULE should be harmless as a workaround. This currently fails to build due to a syntax error, though.

@matt
Copy link
Author

matt commented Dec 18, 2018

Added the missing comma. I originally added the new key at the end, but realized the others were alphabetized.

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

Successfully merging this pull request may close these issues.

4 participants