I can't build my project because I keep getting this error. As I understood it deals with the constant tagShift I'm using in my code. I would appreciate if anyone could help me to solve this issue
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- back button text does not change
- iOS (objective-c) compression_decode_buffer() retu
- how to find the index position of the ARRAY Where
相关文章
- 现在使用swift开发ios应用好还是swift?
- TCC __TCCAccessRequest_block_invoke
- xcode 4 garbage collection removed?
- Unable to process app at this time due to a genera
- How can I add media attachments to my push notific
- didBeginContact:(SKPhysicsContact *)contact not in
- Custom Marker performance iOS, crash with result “
- Why is my library not able to expand on the CocoaP
I guess you have included TrafficLightG.h in more than one file.
#include "TrafficLightG.h"
Declare your const in that way:
TrafficLightG.h
TrafficLightG.m
PS: use NSInteger or NSUInteger instead of int.
I had faced the same issue someday and figured out the result as:
Here You have a
int tagShit
of constant type. So you can not make constant type variables of same name in two or more classes. Change thattagShit
variable name in one of the class (may be as tagShift1 or anything else) and it will be good to go.Hope it'll help you.