MobileOverlord
MobileOverlord

Reputation: 4610

Cocoa Touch Static Library - Link with Standard Frameworks

I have created a cocoa touch static that uses standard apple frameworks like MediaPlayer.framework and CoreData.framework. When I link my main project against this static library it throws errors because that library requires those frameworks.

My question: Is there a way to set the Static Library to link against those frameworks so I don't need to add them to my main project? I tried to add the frameworks to the static library's "Link Binary with Libraries" build phase, but the main project still throws a fit.

There is probably some sort of Build Setting flag I am missing.

Upvotes: 1

Views: 885

Answers (1)

lawicko
lawicko

Reputation: 7344

No, unfortunately there is no way to achieve this. You have to link your main project against the frameworks that are used by the library.

Upvotes: 1

Related Questions