xcode iOS otool 检测私有api

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15074043/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 02:51:03  来源:igfitidea点击:

iOS otool to detect private apis

iosxcodeiphone-privateapiotool

提问by user1803649

I am a first time ios developer and cannot find any documentation on private apis. So I have been searching for some type of tutorial on how to use otool. The only certain thing that I can find is that I had to download the command line tools through xcode preferences. I also keep seeing references to linking it to the .app file, but I don't know where I can find this and how to use it in tool. Any links or suggestions?

我是第一次 ios 开发人员,找不到关于私有 api 的任何文档。因此,我一直在寻找有关如何使用 otool 的某种类型的教程。我能找到的唯一确定的事情是我必须通过 xcode 首选项下载命令行工具。我也一直看到将其链接到 .app 文件的引用,但我不知道在哪里可以找到它以及如何在工具中使用它。任何链接或建议?

回答by Victor Ronin

Otool usage

工具使用

Here is official documentation

这是官方文档

Here is the question about otool usage: how to use otool

这里是关于otool使用的问题: 如何使用otool

Detect private api usage

检测私有api使用情况

How does Apple know you are using private API?

Apple 如何知道您使用的是私有 API?

Detecting Private APIs

检测私有 API

Here I have a question. Why do you want to detect private apis? Usually, this question happens when you plan to send your app to AppStore. If so, probably iphone-privateapi tag isn't good fit for the question. Since, this tag is more about how to use private api (and implication that the app won't be send to Appstore)

在这里我有一个问题。为什么要检测私有api?通常,当您计划将您的应用程序发送到 AppStore 时,就会出现这个问题。如果是这样,可能 iphone-privateapi 标签不适合这个问题。因为,这个标签更多地是关于如何使用私有 api(并暗示应用程序不会被发送到 Appstore)

Documentation on private API

私有 API 文档

This one is tough. There is no good documentation. Information is scattered and becoming outdate as soon as new version of iOS are released.

这个很难。没有好的文档。新版本的 iOS 一发布,信息就变得零散且过时。

Look at these questions to find some interesting links:

查看这些问题以找到一些有趣的链接:

iOS Private API Documentation

iOS 私有 API 文档

How to use iPhone SDK Private APIs

如何使用 iPhone SDK 私有 API

https://stackoverflow.com/questions/12734960/some-structured-information-on-ios-internals

https://stackoverflow.com/questions/12734960/some-structured-information-on-ios-internals