Comments (15)
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.
I'm receiving the same warning in HCIsTypeOf.m
as well.
Should I open a ticket at Apple's bug tracker?
from ochamcrest.
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.
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.
I didn't try Xcode 7 beta 1, but I don't see it when I build OCHamcrest in beta 2.
from ochamcrest.
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.
Clean and build sent it away for Xcode 7 beta 1. thanks!
from ochamcrest.
Still happens with Xcode 6.4. Oh well, 7 is on the way.
from ochamcrest.
Fails on beta 4. :(
from ochamcrest.
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.
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.
Fixed in d7c0f55 by renaming the method. Apple could do better on this, since [self alloc]
returns an instancetype.
from ochamcrest.
@jonreid; Are you planning to officially release a version that incorporates this change?
from ochamcrest.
Just released v4.2.0
from ochamcrest.
Thanks!
from ochamcrest.
Related Issues (20)
- Support array literals in addition to nil-terminated lists HOT 5
- how to assert subclass by OCHamcrest HOT 4
- Naming collision with iOS8 containsString method. HOT 1
- assertWithTimeout and thatEventually functions are not available in OCHamcrest-4.0.1 HOT 2
- OCMockito-Prefix.pch.pch: No object file for requested architecture HOT 5
- Error that OCHamcrest.h is an incomplete umbrella header HOT 5
- Removing the "IOS" suffix from the iOS pre-build framework. HOT 1
- Remove extra semicolon in HCGenericTestFailureReporter.m HOT 1
- isIn matcher missing from README
- 5.4.0 Release introduced GCC warning HOT 3
- HCArgumentCaptor allValues contain 2x the amount of expected values; second halve are duplicates HOT 2
- HCArgumentCaptor returns -[NSNull null] when it captures nil HOT 1
- Exception thrown for failing assertions on collections containing mockProtocol objects. HOT 2
- Expected nil, but was nil HOT 1
- Capturing NSStackBlock leads to EXC_BAD_ACCESS HOT 5
- HCArgumentCaptor raises exception if the captured value does not conform to NSCopying protocol HOT 2
- FR: Add new version with binary compiled for Xcode 12 HOT 3
- Xcode 14.1 xcodebuild fails to build OCHamrest HOT 6
- New date matcher HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ochamcrest.