iphone - Including a static library in a Xcode project -
I have developed a static library using Xcode's "iPhone OS-> Library-> Coco Touch Static Library". I compiled it and it works fine then I wanted to include this library in a new project. Here's what I did:
- Create a new Xcode project "view-based application"
- Add to project-> project: I added my static library .xcodeproj file
- Edit active-> active target
- In the General tab: I've added a static library in "direct dependency"
- In the Build tab: "Search Path"
Then I have added the path of the header in the "Header Search Path" section I tried to use a class I 've put in my static library, but I get a linking error:
"_bbc_lass _ $ _ genUIImage", referenced from:
<Symbol (s) not found in Objc-class-ref-to-GenUIImage TestViewController.o
Collect 2: ID1 returned to exit status
What I did to me is not wrong. Please help. Thanks in advance
I got the solution I pulled & amp; Leaving the .a (library file) in the "link binary with libraries" of the main project target.
Although I have another problem
There is a class in my static library that requires an audio toolbox framework. I added it to my static library though I need to add structure to the project itself. What is the way to avoid duplication of the structure in the main project?
Comments
Post a Comment