我想尝试修复一些使用来自私有 API的allApplicationsfromLSApplicationWorkspace调用的开源 GitHub 项目,该API 列出了设备上所有已安装的应用程序。
该方法在模拟器中运行良好,但在运行 iOS 11 的设备上,它返回零结果。
所以首先,我已经下载了 IPSW 文件,然后打开它,我得到了以下文件列表:
-rw-r--r--@ 1 adam.k staff 15139280 Oct 7 08:16 kernelcache.release.iphone9
-rw-r--r--@ 1 adam.k staff 2462102996 Oct 7 11:25 058-59998-354.dmg
drwxrwxr-x@ 14 adam.k staff 476 Oct 7 11:34 Firmware
-rw-r--r--@ 1 adam.k staff 59088923 Oct 7 11:44 058-59982-359.dmg
-rw-r--r--@ 1 adam.k staff 59801627 Oct 7 11:44 058-59988-357.dmg
-rw-r--r--@ 1 adam.k staff 3282 Oct 7 11:49 Restore.plist
-rw-r--r--@ 1 adam.k staff 257603 Oct 7 11:53 BuildManifest.plist
根据网上的一些资源,我了解到这里的相关图片是最大的dmg文件。打开它后,我得到了以下安装/Volumes/Tigris15A432.D10D101OS
在这张图片中寻找合适的框架时,我得到了:
System/Library/Frameworks/MobileCoreServices.framework
但它似乎不包含任何 dylib/macho 文件,我找不到符号......
但是,在该框架的 Info.plist 中,它说:CFBundleExecutable MobileCoreServices
但我在图像中的任何地方都找不到这个 MobileCoreServices 文件......知道我应该在哪里找到它吗?