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

Dynamically generate CommonCrypto module maps #5

Merged
merged 4 commits into from Apr 4, 2019

Conversation

rajivshah3
Copy link
Contributor

Added

Added script to dynamically generate CommonCrypto module maps if they don't exist.

This is based on https://stackoverflow.com/a/42852743/3188334

Instead of using pre-created module maps, this script will generate them at build time if needed. Since Xcode 10 includes the module maps for CommonCrypto, these will not be generated if they already exist. Also, dynamically generating the module maps allows users of the library to build with beta versions of Xcode or on CI providers that may have Xcode in a non-standard location, since paths like the one below are no longer hardcoded:
https://github.com/ImKcat/CatCrypto/blob/4c3e6b389f80c3fb9d873e039b10cb69dbbde34e/Sources/ModuleMaps/CommonCrypto/iPhoneOS/module.modulemap#L2

This was tested on Xcode 10.2 beta and passes Travis CI tests for Xcode 10, but has not been tested on Xcode 9 (where these module maps are not already included in the SDK)

@SimonasA
Copy link

SimonasA commented Apr 3, 2019

ping @imkcat
Trying to migrate to xcode10.2/swift5 and this seems to solve the problem

@imkcat imkcat merged commit db6a88b into imkcat:master Apr 4, 2019
@imkcat
Copy link
Owner

imkcat commented Apr 4, 2019

@rajivshah3 Thanks for the contribution.

@rajivshah3 rajivshah3 deleted the fix/commoncrypto branch April 4, 2019 13:30
@rajivshah3 rajivshah3 mentioned this pull request Aug 15, 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.

None yet

3 participants