openim-sdk-core
openim-sdk-core copied to clipboard
I want to support iOS 12, which version of SDK should I choose?
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
iOS SDK version supports 11+; import the latest version of the iOS SDK.
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:
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/.
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.