nicklockwood / ColorUtils

[DEPRECATED]

Home Page:http://charcoaldesign.co.uk/source/cocoa#colorutils

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple errors when compiling for 64-bit

tomislav opened this issue · comments

There are multiple errors when compiling ColorUtils for 64-bit. Try it with the 64-bit simulator.

Works fine for me. What errors are you seeing?

/Users/tomislav/xxx/Pods/ColorUtils/ColorUtils/ColorUtils.m:143:12: Multiple methods named 'initWithRGBValue:' found with mismatched result, parameter type or attributes
/Users/tomislav/xxx/Pods/ColorUtils/ColorUtils/ColorUtils.m:148:12: Multiple methods named 'initWithRGBAValue:' found with mismatched result, parameter type or attributes

and a lot of...

/Users/tomislav/xxx/Pods/ColorUtils/ColorUtils/ColorUtils.m:143:43: Implicit conversion loses integer precision: 'NSInteger' (aka 'long') to 'int32_t' (aka 'int')

This is with "iPhone Retina (4-inch 64-bit)". Works fine with the non-64bit simulator. Are you compiling for arm64?

Sounds like you may have another library or category that declares a method called initWithRGBValue. try searching your project for "initWithRGBValue" and see what comes up.

For the latter error, are you storing color values in NSInteger variables? If you you'll need to explicitly cast them to (int32_t) when you assign them to initWithRGBAValue:, or just use int32_t variables instead.

I've started a new empty project and only installed ColorUtils with cocoapods and I'm getting the same error when building for the 64bit simulator. I've made no changes to the code from the stock Apple boilerplate for empty projects.

Here is the test project: https://dl.dropboxusercontent.com/u/701/test.zip

10.9 Mavericks GM
Xcode 5.0.1 GM

Thanks. I don't know why this didn't show up when I tested it - must be the old project settings or something.

This is now fixed in 1.1.1.

Thanks. But did you forget to push version 1.1.1? :)

Er... Whoops. I pushed it yesterday but it was while github was having some problems so I guess it didn't work.

It's up there if you check the releases. It just hasn't updated the master branch for some reason. Can you check if cocoapods is returning the correct version? (I'm not at my computer)

Yes, cocoapods is showing 1.1.1.