Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reading .pch file in static library

I am creating a static library 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.

like image 606
Abhinav Avatar asked Mar 28 '11 22:03

Abhinav


1 Answers

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.

like image 102
Kendall Helmstetter Gelner Avatar answered Sep 28 '22 08:09

Kendall Helmstetter Gelner