Code Monkey home page Code Monkey logo

Comments (9)

nicklockwood avatar nicklockwood commented on September 25, 2024

Works fine for me. What errors are you seeing?

from colorutils.

tomislav avatar tomislav commented on September 25, 2024
/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?

from colorutils.

nicklockwood avatar nicklockwood commented on September 25, 2024

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.

from colorutils.

tomislav avatar tomislav commented on September 25, 2024

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

from colorutils.

nicklockwood avatar nicklockwood commented on September 25, 2024

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.

from colorutils.

tomislav avatar tomislav commented on September 25, 2024

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

from colorutils.

nicklockwood avatar nicklockwood commented on September 25, 2024

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

from colorutils.

nicklockwood avatar nicklockwood commented on September 25, 2024

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)

from colorutils.

tomislav avatar tomislav commented on September 25, 2024

Yes, cocoapods is showing 1.1.1.

from colorutils.

Related Issues (1)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.