sajwan
sajwan

Reputation: 333

adding resources to static library in iPhone

I am going to create a Static Library, But I am facing problem while adding my images and plists to it.

Is there any way to do this ? I have found some linke like This but it doesn't help me because not able to understand it.

Please help

Upvotes: 1

Views: 339

Answers (1)

kraftydevil
kraftydevil

Reputation: 5246

You can include non-traditional library resources like images or plists if you first create a cocoapod for your library and use this in your .podspec:

s.resources = 'LibraryName/**/*.{png,plist,xib,and,so,on}'

The client project that uses your cocoapod will then include your resources.

Upvotes: 1

Related Questions