easemob / easeui_ios

73 stars 62 forks source link

Xcode14报错could not build module 'EaseIMKit' #168

Closed zhu0823 closed 11 months ago

zhu0823 commented 2 years ago

硬件信息,环境: MacBook Pro 14,2021年,Apple M1 Pro。 Xcode Version 14.1 (14B47b)

  1. 新开工程,Podfile只导入EaseIMKit: use_frameworks! pod 'EaseIMKit'
  2. 在ViewController.m里 #import <EaseIMKit/EaseIMKit.h>
  3. build报错,信息摘抄如下

xx/Pods/EaseIMKit/EaseIMKit/EaseIMKit/Classes/Common/VoiceConverter/amrFileCodec.h:13:10: Include of non-modular header inside framework module 'EaseIMKit.amrFileCodec': 'xx/Pods/Headers/Public/EMVoiceConvert/interf_dec.h'

xx/Pods/EaseIMKit/EaseIMKit/EaseIMKit/Classes/Common/VoiceConverter/amrFileCodec.h:14:10: Include of non-modular header inside framework module 'EaseIMKit.amrFileCodec': 'xx/Pods/Headers/Public/EMVoiceConvert/interf_enc.h'

xx/Xcode/DerivedData/testInit-cheulauwafehzsdioyoporllyklk/Build/Products/Debug-iphonesimulator/EaseIMKit/EaseIMKit.framework/Headers/wav.h:24:1: error: unknown type name 'class'; did you mean 'Class'?

xx/Xcode/DerivedData/testInit-cheulauwafehzsdioyoporllyklk/Build/Products/Debug-iphonesimulator/EaseIMKit/EaseIMKit.framework/Headers/wav.h:24:16: error: expected ';' after top level declarator

xx/testInit/ViewController.m:11:9: fatal error: could not build module 'EaseIMKit'

zhu0823 commented 2 years ago

3.9.8版本报错 3.9.9正常了