bennyguitar / Colours

A beautiful set of predefined colors and a set of color methods to make your iOS/OSX development life easier.
MIT License
3.09k stars 300 forks source link

pod does not integrate as a framework #42

Closed niewiemek closed 8 years ago

niewiemek commented 9 years ago

The library does not work when we use use_frameworks! in our Podfile

http://blog.cocoapods.org/CocoaPods-0.36/

greuff commented 8 years ago

+1

samgold89 commented 8 years ago

+1

samgold89 commented 8 years ago

Anybody find a workaround yet :disappointed:

bennyguitar commented 8 years ago

I'm looking into doing this - but the general documentation online makes it easy for non-library creators to use frameworks, but I'm not exactly sure how to make it as an owner so that you can use them in your apps. Any links?

bennyguitar commented 8 years ago

When I run pod lib lint --use-libraries Colours.podspec from the main Colours directory, it passes validation, though I don't know if this means that frameworks are working successfully. This information comes from http://blog.cocoapods.org/Pod-Authors-Guide-to-CocoaPods-Frameworks/ which shows that I should be using --use-frameworks as an argument, but that fails because it's not an option.

I should mention that I'm running Cocoapods v0.39.0

bennyguitar commented 8 years ago

This issue is now resolved. Use 5.11.0 or higher, and make sure your podfile looks like so:

pod 'Colours/Swift' to use the swift subspec.