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

Fix compilation with Xcode 10 beta #182

Merged
merged 2 commits into from
Jun 7, 2018
Merged

Fix compilation with Xcode 10 beta #182

merged 2 commits into from
Jun 7, 2018

Conversation

mattrubin
Copy link
Owner

The iOS 12 SDK now provides a module map for CommonCrypto. Using #if canImport(CommonCrypto) and the module map shims allows for correct compilation with both the old and new SDKs. Since the canImport check was added in Swift 4.1, an additional #if swift(>=4.1) is needed to maintain support from Swift 4.0.

mattrubin added 2 commits June 6, 2018 20:11
The iOS 12 SDK now provides a module map for CommonCrypto. Using `#if canImport(CommonCrypto)` and the module map shims allows for correct compilation with both the old and new SDKs
@mattrubin mattrubin closed this Jun 7, 2018
@mattrubin mattrubin reopened this Jun 7, 2018
@mattrubin mattrubin merged commit a1660a6 into develop Jun 7, 2018
@mattrubin mattrubin deleted the xcode-10 branch June 7, 2018 03:29
@mattrubin mattrubin added this to the 3.1.4 milestone Sep 16, 2018
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.

1 participant