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

Support Swift Package Manager #132

Closed
1ec5 opened this issue Jan 18, 2018 · 1 comment · Fixed by #209
Closed

Support Swift Package Manager #132

1ec5 opened this issue Jan 18, 2018 · 1 comment · Fixed by #209
Labels

Comments

@1ec5
Copy link
Contributor

1ec5 commented Jan 18, 2018

Add a Package.swift file so that Swift Package Manager can incorporate this library into a project.

/cc @frederoni @captainbarbosa

@1ec5
Copy link
Contributor Author

1ec5 commented Nov 11, 2020

This is complicated by the fact that MBPlacemarkPrecision is currently declared and defined in Objective-C, and SPM also doesn’t support @objc. SPM doesn’t support mixed-language modules. The most expedient solution would be to reimplement MBPlacemarkPrecision in Swift (while keeping the Objective-C implementation for CocoaPods- and Carthage-based builds) and conditionalizing @objc on SWIFT_PACKAGE. Such workarounds would be unnecessary if we were to drop Objective-C support altogether, something we should do if SPM becomes the primary dependency manager for the Swift service libraries at some point.

/ref mapbox/mapbox-directions-swift#381 mapbox/mapbox-directions-swift#362

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

Successfully merging a pull request may close this issue.

1 participant