質問

I tried creating static library by following the apple document http://developer.apple.com/library/ios/#technotes/iOSStaticLibraries/Articles/creating.html#//apple_ref/doc/uid/TP40012554-CH2-SW1.

I created library and when I tried to link library to my app, in app target->build phase->Link Binary With Libraries, I am not able to see the library which I created in the list of frameworks and libraries.

Does it mean that library is not created or am I missing something important to make it work? Please help me out in finding the problem.

役に立ちましたか?

解決

When you do

app target->build phase->Link Binary With Libraries

you see those libraries/ frameworks which are available in iOS SDK. To link to the library created by you, click on + sign at the bottom left and then Add Other.. Browse to the .a file you have created, Click Open.

PS: To save your .a extension, after building your Cocoa Touch Static Library project , under Products, you will see, .a file. Right Click-> Show in Finder -> Copy to some location

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top