Giter Site home page Giter Site logo

Comments (15)

scottrhoyt avatar scottrhoyt commented on June 14, 2024

This seems to be because the compiler is looking at the method definition in CAEmitterBehavior.h instead of the definition from the superclass in HCClassMatcher.h. Seeing as HCIsInstanceOf is not a child class of CAEmitterBehavior, I'm not sure why this is. Could be a compiler or Xcode issue?

from ochamcrest.

herzi avatar herzi commented on June 14, 2024

I'm receiving the same warning in HCIsTypeOf.m as well.

Should I open a ticket at Apple's bug tracker?

from ochamcrest.

scottrhoyt avatar scottrhoyt commented on June 14, 2024

I haven't dug deeper on this to figure out where the problem lies, so I cannot say whether it is an Apple bug or not. Still might be worth opening a ticket. Has anyone seen this error in the newest beta of Xcode?

from ochamcrest.

jtligon avatar jtligon commented on June 14, 2024

can confirm, still present in latest beta.
in addition, the new __nonnull warning is present as well.

HCIsInstanceOf.m:11:39: Incompatible pointer types sending 'Class' to parameter of type 'NSString * __nonnull'

from ochamcrest.

jonreid avatar jonreid commented on June 14, 2024

I didn't try Xcode 7 beta 1, but I don't see it when I build OCHamcrest in beta 2.

from ochamcrest.

herzi avatar herzi commented on June 14, 2024

This issue is also fixed with the initial Xcode 7 beta. I think we can close this ticket now.

@jtligon Did you Clean the project before trying to build with Xcode 7?

from ochamcrest.

jtligon avatar jtligon commented on June 14, 2024

Clean and build sent it away for Xcode 7 beta 1. thanks!

from ochamcrest.

jonreid avatar jonreid commented on June 14, 2024

Still happens with Xcode 6.4. Oh well, 7 is on the way.

from ochamcrest.

jonreid avatar jonreid commented on June 14, 2024

Fails on beta 4. :(

from ochamcrest.

herzi avatar herzi commented on June 14, 2024

Just my two cents: To me, this clearly is a bug in Apple's toolchain. We should close this ticket and raise tickets at http://bugreport.apple.com/ to get this solved.

from ochamcrest.

jonreid avatar jonreid commented on June 14, 2024

OK, hold on: I don't see it in the Xcode 7 if I build OCHamcrest independently. I do see it in Xcode 6.4 for when I build the MarvelBrowser project (which pulls in OCHamcrest as a Pod).

Looking more carefully at the signature, it seems to be getting confused by -initWithType: in CAEmitterBehavior.h, which takes an NSString.

from ochamcrest.

jonreid avatar jonreid commented on June 14, 2024

Fixed in d7c0f55 by renaming the method. Apple could do better on this, since [self alloc] returns an instancetype.

from ochamcrest.

rachten avatar rachten commented on June 14, 2024

@jonreid; Are you planning to officially release a version that incorporates this change?

from ochamcrest.

jonreid avatar jonreid commented on June 14, 2024

Just released v4.2.0

from ochamcrest.

rachten avatar rachten commented on June 14, 2024

Thanks!

from ochamcrest.

Related Issues (20)

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.