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.
精彩评论