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

Please make xCode Swift Package Manager available for MMKV #535

Closed
SlonGL opened this issue Oct 7, 2020 · 4 comments
Closed

Please make xCode Swift Package Manager available for MMKV #535

SlonGL opened this issue Oct 7, 2020 · 4 comments

Comments

@SlonGL
Copy link

SlonGL commented Oct 7, 2020

Hey.

I use your library in both iOS and Android. It's great!

There is one small problem.
Not possible, or I didn't find how to install the library using xCode Swift Package Manager.

In many of my projects, MMKV is the only one installed via CacaoPods.

Now I received the Apple Developer Transition Kit, there it is almost impossible to work with CacaoPods at the moment due to compatibility issues. Certain problems arise with dynamic and static additions.

Could the developers add the ability to include the library in iOS projects using the standard xCode Swift Package Manager?

Yours faithfully,
Dzmitry

@lingol
Copy link
Collaborator

lingol commented Oct 7, 2020

Noted. Thanks for your feedback.

@lingol
Copy link
Collaborator

lingol commented Oct 16, 2020

Hey, I have tried to make MMKV available on SwiftPM. I almost did it until I face this error:

The package product 'MMKV' cannot be used as a dependency of this target because it uses unsafe build flags.

And the so-called 'unsafe flags' is considered safe, just some language configuration.

cxxSettings: [
    .headerSearchPath("."),
    .unsafeFlags(["-x", "objective-c++", "-fno-objc-arc"]),
]

So I'm sorry to tell you that MMKV won't be available on SwiftPM until the Apple guys fix this bug.
You can download & play MMKV with SwiftPM support by yourself on the dev_swiftpm branch.

@lingol lingol closed this as completed Oct 16, 2020
@lingol
Copy link
Collaborator

lingol commented Oct 16, 2020

Now if you can't use CocoaPods or Carthage, I recommend using MMKV by source by adding it as a git submodule.

@SlonGL
Copy link
Author

SlonGL commented Oct 16, 2020 via email

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

No branches or pull requests

2 participants