iOS应用程序崩溃问题“

我在我的应用程序中发现了一个奇怪的崩溃问题,从崩溃报告中得不到足够的消息。

这是崩溃报告:

-[TileLayer _isChargeEnabled]: unrecognized selector sent to instance 0x14aeadb0 (null) ( 0 CoreFoundation 0x376298a7 __exceptionPreprocess + 186 1 libobjc.A.dylib 0x3169e259 objc_exception_throw + 32 2 CoreFoundation 0x3762ca9b -[NSObject doesNotRecognizeSelector:] + 174 3 CoreFoundation 0x3762b915 ___forwarding___ + 300 4 CoreFoundation 0x37586650 _CF_forwarding_prep_0 + 48 5 UIKit 0x30775e43 -[UIWindow warpPoint:] + 686 6 UIKit 0x3075c1ff _UIApplicationHandleEvent + 2438 7 GraphicsServices 0x3777922b PurpleEventCallback + 882 8 CoreFoundation 0x375fd523 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 38 9 CoreFoundation 0x375fd4c5 __CFRunLoopDoSource1 + 140 10 CoreFoundation 0x375fc313 __CFRunLoopRun + 1370 11 CoreFoundation 0x3757f4a5 CFRunLoopRunSpecific + 300 12 CoreFoundation 0x3757f36d CFRunLoopRunInMode + 104 13 GraphicsServices 0x37778439 GSEventRunModal + 136 14 UIKit 0x3078bcd5 UIApplicationMain + 1080 15 Movie 0x00022eb3 _mh_execute_header + 7859 16 Movie 0x00022e40 _mh_execute_header + 7744 ) 

那么,这意味着你尝试传递一个消息(也称为方法) _isChargeEnabled类TileLayer的对象,但它是不存在的。

更新我做了一个快速的谷歌search,事实certificate_isChargeEnabled是苹果的私人API。 你可以检查这个和这个更多的信息。