This warning appeared in my project after adding a framework that used Objective-C in my application, which otherwise made full use of Swift 3.
Having declared all static functions and static variables in all extensions as @nonobjc , this warning has disappeared.
for example
extension Notification.Name { @nonobjc static let MyNotificationName = Notification.Name("NNSongFavoriteStatusDidChangeNotification") }
or
extension UIColor { @nonobjc static let superGiantRed = UIColor(red: 180.0/255.0, green: 40.0/255.0, blue: 27.0/255.0, alpha: 1.0) }
Groot Feb 02 '17 at 19:45 2017-02-02 19:45
source share