openimsdk / openim-sdk-core

Instant Messaging
https://openim.io
Apache License 2.0
340 stars 310 forks source link

I want to support iOS 12, which version of SDK should I choose? #526

Open AnnaSearl opened 6 months ago

AnnaSearl commented 6 months ago

What would you like to share?

I want to support iOS 12, but the latest version only supports iOS 13. Which version of SDK should I choose?

Additional information

No response

FGadvancer commented 6 months ago

iOS SDK version supports 11+; import the latest version of the iOS SDK.

AnnaSearl commented 6 months ago

iOS SDK version supports 11+; import the latest version of the iOS SDK.

I have imported the latest version of the iOS SDK, but still get this warning: image

printlin commented 5 months ago

Hello, I also found that the SDK does not support iOS 12 system, causing the app to crash every time it is opened. I noticed in the gomobile documentation that there is mention of the -iosversion option, which defaults to 13.0. After modifying it to 12.0 and recompiling, the app can run normally. Please note that this method is for reference only, and thorough testing is recommended. You can find information about gomobile at: https://pkg.go.dev/golang.org/x/mobile@v0.0.0-20240320162201-c76e57eead38/cmd/gomobile. You need to modify the compilation instructions for iOS in the openim-sdk-core/Makefile at line 221, adding -iosversion 12.0. After modification, it should look like this: GOARCH=arm64 gomobile bind -v -trimpath -iosversion 12.0 -ldflags "-s -w" -o build/OpenIMCore.xcframework -target=ios ./open_im_sdk/ ./open_im_sdk_callback/.

kubbot commented 3 months ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.

kubbot commented 3 months ago

This issue was closed because it has been stalled for 7 days with no activity.