Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode warnings: Not such file or directory (.pcm files)

Tags:

xcode

ios

clang

I'm working on an iOS project and Xcode is showing me the following warnings:

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

Things I tried:

  • Remove derived data, clean build folder and build again
  • Disable Clang Module Debugging
  • Deintegrate and install Pods again
  • Change debug information format to DWARF with dSYM File
  • Remove the files shown in the log e.g. rm -rf /var/folders/qj/lk4bdr_x5fs9cvcj4jgx61mmy6f8jd/C/org.llvm.clang.codytwinton/ModuleCache/2UNUM8IHHP92Q/Foundation-KJNK6ICRXLXW.pcm
  • Delete ModuleCache: rm -rf /var/folders/v2/vjx2r5k16tz36wn8v4yn_sth0000gn/C/org.llvm.clang.moraleda/ModuleCache

Any ideas?

like image 919
gmoraleda Avatar asked Dec 24 '18 08:12

gmoraleda


1 Answers

same here since I added a target to my project to build a "development-version" of my app for testing purposes.

I've been get rid of theses warnings by setting (only for the target I added) the Debug Information Format to "DWARF" instead of "DWARF with dSym" into > Build Settings menu > Build Options.

enter image description here

like image 64
Mehdi Chennoufi Avatar answered Sep 22 '22 11:09

Mehdi Chennoufi