大佬教程收集整理的这篇文章主要介绍了ios – 如何检测外部库是否调用[UIDevice currentDevice] uniqueIdentifier]?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
[[UIDevice currentDevice] uniquEIDentifier]
我们已经删除了我们自己的代码中的所有调用,但是需要确保我们使用的许多外部库不会调用此属性.
先谢谢你!
为该方法配置符号断点如下所示:
如果你打破了这个断点,你可以通过打开调试器控制台并输入bt来找出谁叫谁.在这种情况下,这个来电来自我的应用程序:didFinishLaunchingWithOptions:但是无论谁调用它都可以工作:
(lldb) bt * thread #1: tid = 0x1c03,0x001f4690 UIKit`-[UIDevice uniquEIDentifier],stop reason = breakpoint 1.1 frame #0: 0x001f4690 UIKit`-[UIDevice uniquEIDentifier] frame #1: 0x0000212e MyApp`-[AppDelegate application:didFinishLaunchingWithOptions:](self=0x0747fcb0,_cmd=0x005aec21,application=0x08366300,launchOptions=0x00000000) + 702 at AppDelegate.m:37 frame #2: 0x00015157 UIKit`-[UIApplication _handleDelegateCallBACksWithOptions:isSuspended:restoreState:] + 266 frame #3: 0x00015747 UIKit`-[UIApplication _callInitializationDelegatesForURL:payload:suspended:] + 1248 frame #4: 0x0001694b UIKit`-[UIApplication _runWithURL:payload:launchOrientation:statusBarStyle:statusBarHidden:] + 805 frame #5: 0x00027cb5 UIKit`-[UIApplication handleEvent:withNewEvent:] + 1022 frame #6: 0x00028beb UIKit`-[UIApplication sendEvent:] + 85 frame #7: 0x0001a698 UIKit`_UIApplicationHandleEvent + 9874 frame #8: 0x01f01df9 Graphicsservices`_PurpleEventCallBACk + 339 frame #9: 0x01f01ad0 Graphicsservices`PurpleEventCallBACk + 46 frame #10: 0x01f1bbf5 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_sourcE1_PERFORM_FUNCTION__ + 53 frame #11: 0x01f1b962 CoreFoundation`__CFRunLoopDosource1 + 146 frame #12: 0x01f4cbb6 CoreFoundation`__CFRunLoopRun + 2118 frame #13: 0x01f4bf44 CoreFoundation`CFRunLoopRunSpecific + 276 frame #14: 0x01f4be1b CoreFoundation`CFRunLoopRunInMode + 123 frame #15: 0x0001617a UIKit`-[UIApplication _run] + 774 frame #16: 0x00017ffc UIKit`UIApplicationMain + 1211 frame #17: 0x00001d42 MyApp`main(argc=1,argv=0xbffff3f8) + 130 at main.m:16
以上是大佬教程为你收集整理的ios – 如何检测外部库是否调用[UIDevice currentDevice] uniqueIdentifier]?全部内容,希望文章能够帮你解决ios – 如何检测外部库是否调用[UIDevice currentDevice] uniqueIdentifier]?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。