Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Creating and using a Library

I'm rather new to XCode. 😊


I've created a Library (Using OS X/Framework & Library/Cocoa Library).

XCode compiles and creates a .dylib file, placing into Library/Developer/Xcode/DerivedData/appname/Build/Products/Debug/appname.dylib.


How do I now make this Library available to used in my apps? 😕


I've added this Library in a test app under Build Phases/Link Binary With Libraries but am not sure from here how to access my Library functions in the test app.


Ideas?


Thanks


-Mike

Posted on Jan 18, 2013 9:17 PM

Reply
Question marked as Best reply

Posted on Jan 21, 2013 11:13 AM

When you're writing a Cocoa application, you include the header file Cocoa.h to call Cocoa functions. Calling functions from your library in your test app is similar. Include the header file that contains the library's functions so you can call those functions in the test app.

2 replies

Creating and using a Library

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.