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

Popular posts from this blog

java - Jasper subreport showing only one entry from the JSON data source when embedded in the Title band -

serialization - Convert Any type in scala to Array[Byte] and back -

SonarQube Plugin for Jenkins does not find SonarQube Scanner executable -