openimsdk / open-im-sdk-flutter

IM SDK Flutter
https://openim.io
MIT License
365 stars 232 forks source link

[BUG] ios 无法运行 #65

Closed Jovines closed 2 years ago

Jovines commented 2 years ago

无论是创建新项目还是在原有项目上添加这个包,ios构建都会报错,android正常

image

电脑:macbook 14 m1 pro

Jovines commented 2 years ago

这是详细报错,我甚至重装了flutter,无论是最新 beta还是稳定版都尝试了

Failed to build iOS app Error output from Xcode build: ↳ objc[24926]: Class AMSupportURLConnectionDelegate is implemented in both /usr/lib/libamsupport.dylib (0x1f772f678) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x107bf02c8). One of the two will be used. Which one is undefined. objc[24926]: Class AMSupportURLSession is implemented in both /usr/lib/libamsupport.dylib (0x1f772f6c8) and /Library/Apple/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice (0x107bf0318). One of the two will be used. Which one is undefined. BUILD FAILED

Xcode's output: ↳ Writing result bundle at path: /var/folders/w2/y6zqrp2n2gd6nmrvxyq06hn80000gn/T/flutter_tools.9kXqNN/flutter_ios_build_temp_dirlsclRV/temporary_xcresult_bundle

ld: warning: ignoring file /Users/jovines/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_openim_sdk-1.1.1/ios/Framework/OpenIMCore.framework/OpenIMCore, missing required architecture x86_64 in file /Users/jovines/flutter/.pub-cache/hosted/pub.flutter-io.cn/flutter_openim_sdk-1.1.1/ios/Framework/OpenIMCore.framework/OpenIMCore (1 slices)
hrxiang commented 2 years ago

模拟器的依赖方式不一样,请在demo的issue查看解决办法

github-actions[bot] commented 2 years ago

Stale issue message