Xcode 升级14 报文件缺失

博客主要讲述了iOS开发中遇到的依赖问题,如Dependency for P1相关报错,原因是SDK老版本。解决办法是针对报错的三方库文件进行修改,如在.framework文件的Modules文件夹中找到module.modulemap,将框架模块声明修改,可消除错误。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

问题:类似于这种

 

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老版本导致

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

app开发工程师V帅

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值