开发者

Reading .pch file in static library

I am creating a static libra开发者_开发百科ry and adding all the project files which I want to expose to other projects. Now, I have a .pch file which contains most of my #import statements which is to be used throughout the application.

When compiling this static library I am getting errors because of these missing import statements. I tried copying the .pch file in "Copy header" as well as "Copy source" but it did not work.

Any clue how to add a .pch file in a static library.


Go into the project build settings, and search for "pch". There's an item called "Prefix Header" where you can enter the name of your PCH file.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜