Skip to content

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