I just updated my project to Swift 2.
I one of my swift class I use ObjC association.
I have the following :
objc_AssociationPolicy( OBJC_ASSOCIATION_RETAIN_NONATOMIC)
Since the update, the compiler returns Use of unresolved identifier 'OBJC_ASSOCIATION_RETAIN_NONATOMIC'
.
Any idea why ?
Edit:
For those who have the same problem, a temporary fix would be to replace the constant with its value ie. 1 : objc_AssociationPolicy( rawValue: 1 )