參考文章
Without the question if it is proper or not, you can add PCH file manually:
1.Add new PCH file to the project: New file > Other > PCH file.
2.At the Target's Build Settings option, set the value of Prefix Header to your PCH file name, with the project name as prefix (i.e. for project named TestProject and PCH file named MyPrefixHeaderFile, add the value TestProject/MyPrefixHeaderFile.pch to the plist).
TIP: You can use things like $(SRCROOT) or $(PROJECT_DIR) to get to the path of where you put the .pch in the project.
3.At the Target's Build Settings option, set the value of Precompile Prefix Header to YES.
沒有留言:
張貼留言