iOS 开发实用技术导航
NSHipster 中文版
› http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
› http://www.cocos2d-iphone.org/
CocoaPods
› http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
› http://code.google.com/mobile/analytics/
WWDC
› https://developer.apple.com/wwdc/
Design Guides and Resources
› https://developer.apple.com/design/
Transcripts of WWDC sessions
› http://asciiwwdc.com
Cocoa with Love
› http://cocoawithlove.com/
Cocoa Dev Central
› http://cocoadevcentral.com/
NSHipster
› http://nshipster.com/
Style Guides
› Google Objective-C Style Guide
› NYTimes Objective-C Style Guide
Useful Tools and Services
› Charles Web Debugging Proxy
› Smore
xi_lin
V2EX  ›  iDev

如何根据类名查找所在的第三方库?

  •  
  •   xi_lin · Aug 26, 2016 · 5554 views
    This topic created in 3724 days ago, the information mentioned may be changed or developed.

    今天看 crash 数据里出现了YLUniTalkingData这个类。 有什么办法可以查找是哪个第三方库引入了这个类吗?

    Supplement 1  ·  Aug 26, 2016
    总结两个办法:

    1. 建一个同名类看 link error

    2. 去 build settings 里打开 write link map file ,直接去里面找
    15 replies  •  2017-08-23 17:30:36 +08:00
    uxstone
    uxstone
    Aug 26, 2016
    1
    github 查不到,应该是私有的类库吧
    knightdf
    knightdf
    Aug 26, 2016
    2
    find grep 大法好
    iyeatse
    iyeatse
    Aug 26, 2016
    3
    统计用了 TalkingData?
    Radiums
    Radiums
    Aug 26, 2016
    4
    Java 的话有个 find jar 的网站,或者 maven search
    xi_lin
    xi_lin
    OP
    Aug 26, 2016
    5
    @knightdf 三方库是.a lib , find grep 也能找?
    xi_lin
    xi_lin
    OP
    Aug 26, 2016
    6
    @iyeatse 没有,用的是友盟
    xi_lin
    xi_lin
    OP
    Aug 26, 2016
    7
    @Radiums java 的话倒还好办了
    SeanChense
    SeanChense
    Aug 26, 2016
    8
    调用栈往回看不能找到么
    xi_lin
    xi_lin
    OP
    Aug 26, 2016
    9
    @SeanChense 之前都是 dispatch ,没有有识别意义的东西
    knightdf
    knightdf
    Aug 26, 2016
    10
    @xi_lin 可以找,二进制文件都可以找
    black
    black
    Aug 26, 2016❤️2
    11
    nm --defined-only xxx.a | grep YLUniTalkingData.o
    SeanChense
    SeanChense
    Aug 26, 2016❤️1
    12
    @xi_lin 或者你可以自己建个叫 YLUniTalkingData 的文件,等链接的时候你看报错怎么报的。
    xi_lin
    xi_lin
    OP
    Aug 26, 2016
    13
    @SeanChense 你这个办法最直接哈~
    发现是银联的锅 libPaymentControl.a
    看到 YL 前缀完全联想不过去。。
    markss
    markss
    Aug 23, 2017
    14
    @xi_lin YLUniTalkingData 这个 crash,能够复现吗?
    xi_lin
    xi_lin
    OP
    Aug 23, 2017
    15
    @markss 你这个楼爬的有点老。。好像是升级了银联控件就没问题了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4726 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 07:53 · PVG 15:53 · LAX 23:53 · JFK 02:53
    ♥ Do have faith in what you're doing.