• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

ios - Xcode 警告 : Not such file or directory (. pcm 文件)

[复制链接]
菜鸟教程小白 发表于 2022-12-13 05:19:54 | 显示全部楼层 |阅读模式 打印 上一主题 下一主题

我正在开发一个 iOS 项目,Xcode 向我显示以下警告:

warning: /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/Foundation-KJNK6ICRXLXW.pcm: No such file or directory note: while processing /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/Foundation-KJNK6ICRXLXW.pcm note: Linking a static library that was built with -gmodules, but the module cache was not found. Redistributable static libraries should never be built with module debugging enabled. The debug experience will be degraded due to incomplete debug information. warning: /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/UIKit-35ZFG9L90CDZV.pcm: No such file or directory note: while processing /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/UIKit-35ZFG9L90CDZV.pcm warning: /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/FBSDKCoreKit-2R2UGDO79AKYU.pcm: No such file or directory note: while processing /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/FBSDKCoreKit-2R2UGDO79AKYU.pcm warning: /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/Darwin-2GOAYMLU92JOT.pcm: No such file or directory note: while processing /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/Darwin-2GOAYMLU92JOT.pcm warning: /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/Accounts-3S3JQK7N2N5QB.pcm: No such file or directory note: while processing /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/Accounts-3S3JQK7N2N5QB.pcm warning: /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/CoreGraphics-5GV9RND36JIM.pcm: No such file or directory note: while processing /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/CoreGraphics-5GV9RND36JIM.pcm warning: /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/AudioToolbox-1BW8VLA36OG1L.pcm: No such file or directory note: while processing /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/AudioToolbox-1BW8VLA36OG1L.pcm warning: /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/QuartzCore-1EU3UYK02HRLW.pcm: No such file or directory note: while processing /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/QuartzCore-1EU3UYK02HRLW.pcm warning: /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/ObjectiveC-20S1MT415HZXU.pcm: No such file or directory note: while processing /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/ObjectiveC-20S1MT415HZXU.pcm warning: /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/CommonCrypto-210H9VRZX42BI.pcm: No such file or directory note: while processing /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/CommonCrypto-210H9VRZX42BI.pcm

我尝试过的事情:

  • 删除派生数据,清理构建文件夹并再次构建
  • 禁用 Clang 模块调试
  • 重新集成并安装 Pods
  • 使用 dSYM 文件将调试信息格式更改为 DWARF
  • 删除日志中显示的文件,例如rm -rf/var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/Foundation-KJNK6ICRXLXW.pcm
  • 删除 ModuleCache:rm -rf/var/folders/v2/vjx2r5k16tz36wn8v4yn_sth0000gn/C/org.llvm.clang.moraleda/ModuleCache

有什么想法吗?



Best Answer-推荐答案


因为我在我的项目中添加了一个目标来构建我的应用程序的“开发版本”以用于测试目的,所以这里也是如此。

我已经摆脱了这些警告,方法是在 > build设置菜单 > 构建选项中将调试信息格式设置为(仅针对我添加的目标)“DWARF”而不是“DWARF with dSym”。

enter image description here

关于ios - Xcode 警告 : Not such file or directory (. pcm 文件),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53911168/

回复

使用道具 举报

懒得打字嘛,点击右侧快捷回复 【右侧内容,后台自定义】
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关注0

粉丝2

帖子830918

发布主题
阅读排行 更多
广告位

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap