Tencent / MMKV

An efficient, small mobile key-value storage framework developed by WeChat. Works on Android, iOS, macOS, Windows, and POSIX.
Other
17.28k stars 1.9k forks source link

Mac Catalyst support missing. Please add support! #1345

Closed parmar-mehul closed 2 months ago

parmar-mehul commented 2 months ago

The language of MMKV

Swift

The version of MMKV

v1.3.7 LTS

The platform of MMKV

iOS, Specifically Mac Catalyst

The installation of MMKV

Git clone

IDE

Apple M2 Pro MacOS Sonoma 14.5 (23F79), XCode Version 15.4 (15F31d)

What's the issue?

While creating archive for "Any Mac, Mac Catalyst", Getting compile error, Problem is, Unable to generate archive. Blocker issue. Attached screenshot as suggested.

Screenshot 2024-07-09 at 11 41 06 AM

Kindly help and release new version.

lingol commented 2 months ago

Noted. I have never thought Mac Catalyst be used.

parmar-mehul commented 2 months ago

@lingol Please inform us in this same thread once you add support, Thank you very much for your valuable time!

(We are waiting for new release!)

lingol commented 2 months ago

A few tweaks and it runs on Mac Catalyst now. You can try it out in the dev branch.

parmar-mehul commented 2 months ago

Hello @lingol, It works tested & confirm.

Thank you for your quick support! Let's move this https://github.com/Tencent/MMKV/commit/32ed8ce54488cbc1828d390a4eac7cb94c9f22ad changes from dev to master.


FYI, I have also created a XCFramework from master branch, also added spm (swift package manager) support as well,

FYI, I have created a XCFramework from dev branch attached here.

lingol commented 2 months ago

Merging into the master branch is okay but a new version won't come out soon because 1.3.6/7 has just been released.