openimsdk / open-im-sdk-flutter

IM SDK Flutter
https://openim.io
MIT License
362 stars 227 forks source link

[BUG] Uncategorized (Xcode): Command EmitSwiftModule failed with a nonzero exit code #129

Closed llorz-o closed 9 months ago

llorz-o commented 9 months ago

Describe the bug

Uncategorized (Xcode): Command CompileSwiftSources failed with a nonzero exit code

Uncategorized (Xcode): Command CompileSwift failed with a nonzero exit code

Swift Compiler Error (Xcode): No such module 'OpenIMCore'
/Users/joe/Documents/openim/openim_flutter_toc/flutter_openim_sdk/ios/Classes/BaseCallback.swift:1:7

Uncategorized (Xcode): Command EmitSwiftModule failed with a nonzero exit code

Could not build the application for the simulator.
Error launching application on iPhone 13 mini.

image

How to reproduce 从本地导入 flutter openim sdk 项目结构和配置文件如下 image

然后在 macbook 上执行打包命令

flutter clean
flutter pub get
cd ios
rm -rf Pods
rm -f Podfile.lock
pod install
cd ../ && flutter run

Expected behavior 期望没有产生 No such module "OpenIMCore" 的报错,正常编译运行

Screenshots (If contains)

Version information

image

Additional context 最小实现示例 https://github.com/llorz-o/example4bug-openim-ios.git

llorz-o commented 9 months ago

命令行报错如下 image 附:pod lib lint 输出

pod_lib_lint_output.log

llorz-o commented 9 months ago

framework 框架文件损坏