手动添加PrefixHeader.pch

To add .pch file-

1) Add new .pch file to your project->New file->other->PCH file

2) Goto your project's build setting.

3) Search "prefix header". You can find that under Apple LLVM.

4) Paste this in the field $(SRCROOT)/YourProjectName/YourPrefixHeaderFileName.pch

5) Clean and build the project. That's it!!!


另: 在swift只需要随便新建一个swift文件,都能够当作全局的PrefixHeader来使用

你可能感兴趣的:(header)