您的位置:首页 > 其它

Why isn't ProjectName-Prefix.pch created automatically in Xcode 6?

2015-05-29 11:02 302 查看
http://stackoverflow.com/questions/24158648/why-isnt-projectname-prefix-pch-created-automatically-in-xcode-6

Without the question if it is proper or not, you can add PCH file manually:

Add new PCH file to the project: New file > Other > PCH file.

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.

At the Target's Build Settings option, set the value of Precompile Prefix Header to
YES
.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: