openim-sdk-core icon indicating copy to clipboard operation
openim-sdk-core copied to clipboard

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

Open AnnaSearl opened this issue 1 year ago • 5 comments

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

AnnaSearl avatar Mar 05 '24 11:03 AnnaSearl

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

FGadvancer avatar Mar 07 '24 09:03 FGadvancer

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

AnnaSearl avatar Mar 08 '24 03:03 AnnaSearl

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/[email protected]/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/.

printlin avatar Mar 25 '24 07:03 printlin

To avoid like this issues, the SDK plans to remove Gomobile in version 3.9 and use FFI bridging directly to achieve cross-language interoperability.

FGadvancer avatar Nov 21 '24 13:11 FGadvancer