ios - Xcode 警告 : Not such file or directory (. pcm 文件)
<p><p>我正在开发一个 iOS 项目,Xcode 向我显示以下警告:</p>
<blockquote>
<p>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</p>
</blockquote>
<p><strong>我尝试过的事情:</strong></p>
<ul>
<li>删除派生数据,清理构建文件夹并再次构建</li>
<li>禁用 Clang 模块调试</li>
<li>重新集成并安装 Pods</li>
<li>使用 dSYM 文件将调试信息格式更改为 DWARF</li>
<li>删除日志中显示的文件,例如<code>rm -rf/var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/Foundation-KJNK6ICRXLXW.pcm</code></li>
<li>删除 ModuleCache:<code>rm -rf/var/folders/v2/vjx2r5k16tz36wn8v4yn_sth0000gn/C/org.llvm.clang.moraleda/ModuleCache</code></li>
</ul>
<p>有什么想法吗?</p></p>
<br><hr><h1><strong>Best Answer-推荐答案</ strong></h1><br>
<p><p>因为我在我的项目中添加了一个目标来构建我的应用程序的“开发版本”以用于测试目的,所以这里也是如此。</p>
<p>我已经摆脱了这些警告,方法是在 > build设置菜单 > 构建选项中将调试信息格式设置为(仅针对我添加的目标)“DWARF”而不是“DWARF with dSym”。</p>
<p> <a href="/image/ZOBtl.png" rel="noreferrer noopener nofollow"><img src="/image/ZOBtl.png" alt="enter image description here"/></a> </p></p>
<p style="font-size: 20px;">关于ios - Xcode 警告 : Not such file or directory (. pcm 文件),我们在Stack Overflow上找到一个类似的问题:
<a href="https://stackoverflow.com/questions/53911168/" rel="noreferrer noopener nofollow" style="color: red;">
https://stackoverflow.com/questions/53911168/
</a>
</p>
页:
[1]