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

Undefined symbol: _PodSDK_openssl_aes_arm_decrypt #1386

Closed
KaiserFeng opened this issue Aug 22, 2024 · 2 comments
Closed

Undefined symbol: _PodSDK_openssl_aes_arm_decrypt #1386

KaiserFeng opened this issue Aug 22, 2024 · 2 comments

Comments

@KaiserFeng
Copy link

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
Copy link
Collaborator

lingol commented Aug 22, 2024

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 lingol closed this as completed Aug 22, 2024
@lingol
Copy link
Collaborator

lingol commented Aug 22, 2024

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

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