I came across this warning while creating my Cocoa application (OS X). but most likely this will happen with the iOS app.
warning: could not load any Objective-C class information. This will significantly reduce the quality of type information available
With this warning, Xcode 7.3.1 took me to a line of code inside a third-party library -SwifyJSON. But I knew that this was not at all related to a third-party library, because it worked very well until a warning file appeared.
I had a MainViewController with a TabViewController that had multiple user views (and controllers of course)
I came across a warning immediately after setting up my second custom classes to pass data between them.
In MainVC, my code was
private var firstTabVC = FirstTabVC var jsonInfo:JsonInfoClass = JsonInfoClass private var secondTabVC = SecondTabVC
Xcode only took me to a third-party library when the jsonInfo instance line was directly above the secondTabVC instance line. (JsonInfoClass is a custom class associated with third-party JSON data)
I moved the line of problematic code just below the line of 'firstTabVC'. and then Xcode stopped complaining about loading the Objective-C class. I got the error "EXC_BAD_ACCESS" in the string "firstTabVC". It was here that I began to disbelieve what Xcode said.
So, I went to the custom class SecondTabVC, and I saw that I declared an instance of MainVC.swft (I had no idea why I like it anyway):
var mainVC:MainViewController = MainViewController()
to set "self" (MainVC) in it so that I can transfer data from MainVC, for example:
override func prepareForSegue(segue: NSStoryboardSegue, sender: AnyObject?) { . .. secondTabVC.mainVC = self .... }
after I changed the declaration in SecondTabVC.swif to
var mainVC: MainViewController!
Theft disappeared and worked great. Hope this helps someone.
Kyle kim
source share