问题:类似于这种
Dependency for P1:target-xxx-f33cd0a4df60f3a91c3439d6d9991c1c9440858e1a4caf6687455f6b146b994c-:Debug:SwiftDriver Compilation Requirements xxx normal x86_64 com.apple.xcode.tools.swift.compiler is not absolute (Pods/xx/xx.framework/Headers/xx.h).
解决:哪个三方库报错了,就把哪个三方库的module.modulemap
文件里面新增[system]
即可,如网易云信 的语音SDK,IMSDK 都有类似问题。
比如:
framework module NERtcCallKit {
umbrella header "NERtcCallKit-umbrella.h"
export *
module * { export * }
}
//改成:
framework module NERtcCallKit [system] {
umbrella header "NERtcCallKit-umbrella.h"
export *
module * { export * }
}
外国博主的回答:
For others: In your .framework file, look for module.modulemap in Modules folder.
I had module declared like
framework module ABC {}
after changing that to
framework module ABC [system] {} I got rid of the errors.
翻译:“对于其他:在.framework文件中,在Modules文件夹中查找module.modulemap。
我已将模块声明为
框架模块ABC{}
将其更改为
框架模块ABC〔系统〕{}我消除了错误。”
原因:SDK老版本导致