What is Prefix.pch file in Xcode?

后端 未结 4 562
别那么骄傲
别那么骄傲 2020-12-02 06:50

So many developers are adding various convenience macros to the Prefix.pch. But my question is what is that Prefix.pch file.

  • If i

4条回答
  •  旧巷少年郎
    2020-12-02 07:03

    Prefix headers are compiled and stored in a cache, and then automatically included in every file during compilation. This can speed up compilation, and lets you include a file without adding an import statement to every file using it. They are not required, and actually slow compilation whenever you change them.

    Generally .pch file naming formation is yourProjectName-Prefix.pch

提交回复
热议问题