gpt4 book ai didi

ios - 如何检查.a库?

转载 作者:可可西里 更新时间:2023-11-01 03:30:49 25 4
gpt4 key购买 nike

我得到了一个文档非常差的 .a 库。有没有办法检查公共(public)类型、方法和属性?

最佳答案

有几种选择 - 我更喜欢的是 otool;

从其手册页获取可能的选项:

-o Display the contents of the __OBJC segment used by the Objective-C run-time system.

例子:

otool -o libRaptureXML_universal.a

[...]
contents of (__DATA,__objc_classlist) section
00006fe0 0x65d4
isa 0x65e8
superclass 0x0
cache 0x0
vtable 0x0
data 0x6fb8 (struct class_ro_t *)
flags 0x0
instanceStart 4
instanceSize 12
ivarLayout 0x0
name 0x6b84 RXMLElement
baseMethods 0x6e08 (struct method_list_t *)
entsize 12
count 27
name 0x66bb initFromXMLString:encoding:
types 0x6b90 @16@0:4@8I12
imp 0x1
name 0x66e3 initFromXMLFile:
types 0x6b9d @12@0:4@8
imp 0xd5
name 0x66f4 initFromXMLFile:fileExtension:
types 0x6ba7 @16@0:4@8@12
imp 0x209
name 0x6713 initFromURL:
types 0x6b9d @12@0:4@8
imp 0x335
name 0x6720 initFromXMLData:
types 0x6b9d @12@0:4@8
imp 0x411
name 0x6731 initFromXMLNode:
[...]

关于ios - 如何检查.a库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12547279/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com