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