As we knew, when an Objective-C class was loaded the +load
method would be called. But in Swift we don't have +load
method.
So I tried to invested this. I added a symbol breakpoint at call_load_methods
. In Objective-C world. this function will call all the class's +load
. But it didn't enter this breakpoint.
So I wondering how to load in Swift. Or can you guys give me more detail a about Swift runtime or something else?