mRs- / HexColors

HexColors is an extension for UIColor and NSColor to support for creating colors from a hex strings
MIT License
457 stars 102 forks source link

Support Objective-C #41

Closed yishuiliunian closed 7 years ago

yishuiliunian commented 7 years ago

Please Support Objective-C. i use cocoapods to install this podspec, but it say must use "user_framework", when i add it ,some podspec contains static library will not be installed.

mRs- commented 7 years ago

I will look into this as soon as possible.

As a workaround use an old version of HexColors (completely Obj-c) via pod HexColors, '4.0.0' in your pod file

mRs- commented 7 years ago

It's not possible to not enable use_frameworks! see the discussion in https://github.com/CocoaPods/CocoaPods/issues/3839

cameronehrlich commented 7 years ago

I don't mean to nag, but I do think that backwards compatibility with Objc would be greatly appreciated by many...

mRs- commented 7 years ago

@cameronehrlich you can still install the 4.X version of HexColors for full objc support

cameronehrlich commented 7 years ago

@mRs- that's what I'm doing now, but I hate seeing this:

% pod outdated
Updating spec repo `master`
Analyzing dependencies
The following pod updates are available:
- HexColors 4.0.0 -> 4.0.0 (latest version 5.0.0)

haha, I guess I should get over it... 😄

In case anyone is/was unsure of how to do this:

pod 'HexColors', :git => 'git@github.com:mRs-/HexColors.git', :tag => '4.0.0'
mRs- commented 7 years ago

The main Problem is that as long as you are referring it to use it without use_framework there is no way around this :(

cameronehrlich commented 7 years ago

I am using use_frameworks! though...? I might be confused...