Compiler warning for Obj-C libraries Xcode 8

Some object files have incompatible Objective-C category definitions. Some category metadata may be lost. All files containing Objective-C categories should be built using the same compiler.


We get this warning after updating to Swift 3.0. We have third party Obj-C dependencies that we integrate using cocoapods. Any ideas how to solve it? I'm guessing it's solvable by changing something in the build settings?

I think you need to have both your libraries and your source code be Swift 3.



There's a pretty great article by Jessie Squires about how to do this. I'm actually experiencing a problem beyond this.


But it is a very good solution: http://www.jessesquires.com/migrating-to-swift-3/


I'm having a problem beyond this, but I hope this helps you out.


~ Hemant

I solved this in my project, you can see my answer if it helps at https://forums.developer.apple.com/message/146579

Compiler warning for Obj-C libraries Xcode 8
 
 
Q