我正在开发一个 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-推荐答案 strong>
因为我在我的项目中添加了一个目标来构建我的应用程序的“开发版本”以用于测试目的,所以这里也是如此。
我已经摆脱了这些警告,方法是在 > build设置菜单 > 构建选项中将调试信息格式设置为(仅针对我添加的目标)“DWARF”而不是“DWARF with dSym”。
关于ios - Xcode 警告 : Not such file or directory (. pcm 文件),我们在Stack Overflow上找到一个类似的问题:
https://stackoverflow.com/questions/53911168/
|