2011/12/08

Working with Static Libraries in Xcode

Layout
  • single workspace
  • app project AProj
  • static library project BProj

Configurations
  • In BProj
    • Target > Build Phase > Copy Headers
      • add header files
    • Project > Build Settings > Public Headers Folder Path
      • set to header folder name (ex. LIBA for )
    • Project > Build Settings > Skip Install
      • Yes
  • In AProj
    • Target > Build Phase > Link Binary With Libraries
      • add library file (ex. lib.a)
    • Project > Build Settings > Header Search Paths
      • ../../**

No comments:

Post a Comment

Labels

Followers