chameleon icon indicating copy to clipboard operation
chameleon copied to clipboard

Xcode 11.1 issue

Open NehaVishnoi opened this issue 6 years ago • 10 comments

After updating the Xcode version to 11.1 In ChameleonShorthand.swift file getting error Function produces expected type 'UIColor'; did you mean to call it with '()'?

NehaVishnoi avatar Oct 15 '19 09:10 NehaVishnoi

After updating the Xcode version to 11.1 In ChameleonShorthand.swift file getting error Function produces expected type 'UIColor'; did you mean to call it with '()'?

I have the same issue with my project (Xcode 11.1)

X-Zone-Git avatar Oct 16 '19 18:10 X-Zone-Git

I have the issue on Xcode11.1 too.

umekun123 avatar Oct 22 '19 11:10 umekun123

Thank you very much for all the time and hard work that has gone into creating this library! I've been trying to use it in a Swift course I'm doing on Udemy, and have run into the same error as people have mentioned above. Here is a screen shot of the error I'm getting. image Unfortunately I don't have the skills yet to contribute a fix, but hopefully someone with more experience can figure out how to make the code compatible with Xcode 11.1.

anthonyfernando avatar Oct 23 '19 21:10 anthonyfernando

This branch worked for me: pod 'ChameleonFramework/Swift', :git => 'https://github.com/wowansm/Chameleon.git', :branch => 'swift5'

MattMash avatar Oct 24 '19 09:10 MattMash

same issue

dbof10 avatar Oct 27 '19 04:10 dbof10

This branch worked for me: pod 'ChameleonFramework/Swift', :git => 'https://github.com/wowansm/Chameleon.git', :branch => 'swift5'

problem Solved .

MartinHor avatar Oct 31 '19 08:10 MartinHor

'https://github.com/wowansm/Chameleon.git', wowansm -> 我玩SM 有点秀哦

Jerrrr avatar Nov 06 '19 08:11 Jerrrr

pod 'ChameleonFramework/Swift', :git => 'https://github.com/wowansm/Chameleon.git', :branch => 'swift5' does not work fo me.

wwildsmith avatar Feb 09 '20 03:02 wwildsmith

When trying

'ChameleonFramework/Swift', :git => 'https://github.com/wowansm/Chameleon.git', :branch => 'swift5'

I get the following warning

Enumeration value 'kCGColorSpaceModelXYZ' not handled in switch

wwildsmith avatar Feb 09 '20 03:02 wwildsmith

If you are still getting the 49 issues on Xcode with "ChameleonFramework/Swift", I highly suggest that you use the objective c version of the library.

pod 'ChameleonFramework', '2.1.0'

However, you will need to add the below line in your bridging-header file.

#import "ChameleonFramework/Chameleon.h"

stephangopaul avatar Mar 03 '20 09:03 stephangopaul