Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add facebook open source code pop to project directly

I have downloaded the facebook open source code pop from github. But all header files are imported like this: #import <POP/POPAnimatableProperty.h>. What should I to do with project setting to support import file like this in my project. I know that I can run it by replace all #import <POP/XXX.h> with #import XXX.h but I'd to use the open source like the pop sample project.

like image 702
simalone Avatar asked Dec 19 '22 15:12

simalone


1 Answers

Through learning cocoapod project, I have got how to config project. Config pop file path to system path, then I can include pod with #import <POP/POP.h>.

  1. Add a new configuration setting file, edit file with following content:

    HEADER_SEARCH_PATHS = "${SRCROOT}/Library" "${SRCROOT}/Library/pop" OTHER_CFLAGS = $(inherited) "-isystem${SRCROOT}/Library" "-isystem${SRCROOT}/Library/pop"

  2. Put pop folder to ${SRCROOT}/Library dictionary. Where to put Pop Source

  3. In project setting, info tab, set configurations with the new configuration file.

How to set configuration file

like image 64
simalone Avatar answered Mar 16 '23 09:03

simalone