How to add a .pch file??
This tutorial makes this task veru easy .
Lets have a brief look on what is it and what is it used for??
This tutorial makes this task veru easy .
Lets have a brief look on what is it and what is it used for??
Prefix.pch
is a precompiled header. Precompiled headers were invented to make compiling faster. Rather than parsing the same header files over and over, these files get parsed once, ahead of time.
In Xcode, you add imports of the header files you want in a “prefix header,” and enabling
Precompile Prefix Header
so they get precompiled. But the idea behind a prefix header is different from precompiling.
We need to follow these simple steps :
1. Right Click on Supporting files and select New File from pop up menu.
2. Then select Other option from IOS
3. We find pch file from there , select and then click Next.
4. Make sure the location of the .pch file is the project location. Click Create.
5. You will find the .pch file in your project. Start importing frameworks and files you want to be precompiled.
5. If you find any error while building and running the app comment the lines as shown in below image and then add files as shown below.
Hope you will not find any difficulty implementing AFNetworking.
Feel free to post your suggestions and your contribution to improving this tutorial will be highly appreciated .
Thanks for visiting and do help your friends to save their time.
No comments:
Post a Comment