After introducing openIM, the app cannot be started in iOS12.0
zzyhappyzzy opened this issue · 6 comments
如果不降低openIMSDK的版本号,除了将最低支持版本升级到iOS13,是否还有其它解决办法?
@zzyhappyzzy 从iOS13开始支持。
你好,你解决这个问题了吗?
@printlin 没有回退IM版本,被迫升级了app的最低适配版本为iOS 13.0。
之前稍微查找了下问题原因,应该是IM库从go编译时哪里配置没指定最低版本导致的。可以尝试从源码go通过修改make文件自己编译,项目时间问题后来放弃了。
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/.
我在解决后才看到您的回复,真是可惜,我们的思路是一样的,感谢你
@printlin 非常感谢!