Remove Modulecache files under File to resolve precompiled header files

Source: Internet
Author: User

Before the code is all right, the following compilation error has been encountered:

Fatal Error:file ' ... h ' has been modified since the precompiled header ' ... ' was built.

Note:please rebuld precompiled Header ' ... '.

The workaround is to delete all the files under/users/username/library/developer/xcode/deriveddata/modulecache in the folder and recompile them, which will generally be fine.

But occasionally after deleting the Modulecache file, not only did not solve the above problem, but also reported the following error:

Fatal error:malformed or corrupted AST file: ' Unable to load module '/users/username/library/developer/xcode/deriveddata /MODULECACHE/GJQSWZVUR8F9/FOUNDATION-PNFYWITLP4HB.PCM ": module file not found '

This time to execute a deep clean on it, the specific practice is to press the key combination "Option+command+shift+k". The intermediate files in the compilation process are deleted and can then be compiled.

Remove Modulecache files under File to resolve precompiled header files

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.