ios - Xcode 8 Objective-C category warning -
i'm using xcode 8 , swift 3.0. error message mean?
ld: warning: object files have incompatible objective-c category definitions. category metadata may lost. files containing objective-c categories should built using same compiler.
i had issue in uicolor
extension, app entirely made swift except frameworks use objective-c have no problem in declaring var
@nonobjc
:
extension uicolor { @nonobjc static var lol: uicolor { return uicolor.red } }
from apple docs:
the nonobjc attribute tells compiler make declaration unavailable in objective-c code...
since code unavailable objective-c warning disappears.
Comments
Post a Comment