Tencent / MMKV

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

Undefined symbol: _PodSDK_openssl_aes_arm_decrypt #1386

Closed KaiserFeng closed 3 weeks ago

KaiserFeng commented 3 weeks ago

The language of MMKV

ObjectC

The version of MMKV

v1.3.9

The platform of MMKV

iOS

issue

使用 pod packager 将MMKV 打包成 framework,将 framework 拖拽到工程中报错:

Undefined symbol: _PodSDK_openssl_aes_arm_decrypt Undefined symbol: _PodSDK_openssl_aes_arm_encrypt Undefined symbol: _PodSDK_openssl_aes_arm_set_decrypt_key Undefined symbol: _PodSDK_openssl_aes_arm_set_encrypt_key

lingol commented 3 weeks ago

This issue should be addressed to the so-called Pod Packager as it somehow adds a prefix "_PodSDK" to these functions. It's not MMKV's problem.

lingol commented 3 weeks ago

Looks like what you are looking for is the --no-mangle flag. https://github.com/CocoaPods/cocoapods-packager/blob/master/lib/pod/command/package.rb#L14