-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Comments
Noted. Thanks for your feedback. |
Hey, I have tried to make MMKV available on SwiftPM. I almost did it until I face this error:
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. |
Now if you can't use CocoaPods or Carthage, I recommend using MMKV by source by adding it as a git submodule. |
Hi!
It's a pity that it didn't work out.
Anyway, many thanks for the quick response and attention. And thanks for your brilliant library.
I found a wacky workaround.
Not only for MMKV, but also for other libraries like Firebase.
Doing "pod install" on a nearby Mac with Intel and Calalina. Then I synchronize ready project with the DTK via the cloud and the project builds normally and you can continue do anything with it.
It's funny. :)
I just want to make the most of Silicon DTK in my daily work to understand how and what works and get used to possible changes.
I hope the cocaopods.org site will resolve the issue of using it on Apple Silicon soon. Their problems are related to the external FFI gem, so there is still no solution since June.
Will see.
And thanks again!
Best reagrds,
Dzmitry Sotnikov
… On 16 Oct 2020, at 13:37, Guo Ling ***@***.***> wrote:
Hey, I have tried to make MMKV available by 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 SwiftPM won't happen until the Apple guys fix this bug.
You can download & play MMKV with SwiftPM support by yourself on the dev_swiftpm <https://github.com/Tencent/MMKV/tree/dev_swiftpm> branch.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#535 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AK6BXZQ7GQURM3RT5HBHHKDSLAA4ZANCNFSM4SHKY4YQ>.
|
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
The text was updated successfully, but these errors were encountered: