获取 app 内部的资源图片文件
一、获取Assets.car:https://www.jianshu.com/p/7710c68f38cf
首先 去Mac上的App Store下载Apple Configurator 2。
然后把iphone连接上Mac,点击Apple Configurator 2 菜单中->账户->登陆(用连接设备的Apple ID)
![](http://upload-images.jianshu.io/upload_images/2117012-480040753ee55fb0.png?imageMogr2/auto-orient/strip|imageView2/2/w/728)
打开登录.png
![](http://upload-images.jianshu.io/upload_images/2117012-87135922d4a2aa44.png?imageMogr2/auto-orient/strip|imageView2/2/w/591)
登录Apple ID.png
备份iPhone的内容(避免数据丢失,非必选)
所有设备->选中当前iPhone->添加->应用,找到您想要ipa的那个应用->添加
![](http://upload-images.jianshu.io/upload_images/2117012-b42cb1fa5389bc30.png?imageMogr2/auto-orient/strip|imageView2/2/w/941)
添加应用.png
![](http://upload-images.jianshu.io/upload_images/2117012-6b503c88d51a097f.png?imageMogr2/auto-orient/strip|imageView2/2/w/1144)
添加.png
![](http://upload-images.jianshu.io/upload_images/2117012-fc7e0821627874cb.png?imageMogr2/auto-orient/strip|imageView2/2/w/666)
下载ipa包中.png
因为你手机中已经存在了当前应用,所以会提示,该应用已经存在, 是否需要替换?
此时,不要点任何按钮!不要点任何按钮!不要点任何按钮!
![](http://upload-images.jianshu.io/upload_images/2117012-3b34d1d943d9b4be.png?imageMogr2/auto-orient/strip|imageView2/2/w/449)
不要点击任何按钮.png
不要操作Apple Configurator 2,让它保持上图的状态,然后打开Finder前往文件夹,或者直接快捷键command+shift+G
并输入下面路径
~/Library/Group Containers/K36BKF7T3D.group.com.apple.configurator/Library/Caches/Assets/TemporaryItems/MobileApps/
![](http://upload-images.jianshu.io/upload_images/2117012-1891a0b190c8d0f0.png?imageMogr2/auto-orient/strip|imageView2/2/w/445)
前往文件夹.png
![](http://upload-images.jianshu.io/upload_images/2117012-a5c02b4d75c00cca.png?imageMogr2/auto-orient/strip|imageView2/2/w/429)
前往文件夹2.png
点击前往,打开ipa包所在文件。将ipa文件copy出来。
![](http://upload-images.jianshu.io/upload_images/2117012-531b2d93adaf3328.png?imageMogr2/auto-orient/strip|imageView2/2/w/939)
获取ipa包所在文件夹.png
这时候别忘了点击Apple Configurator 2窗口中的停止,你会发现刚才目录下的文件也消失了
拿到ipa文件后,你可以将后缀.ipa改为.zip,然后解压
![](http://upload-images.jianshu.io/upload_images/2117012-86b56ba6ebf5b687.png?imageMogr2/auto-orient/strip|imageView2/2/w/512)
修改文件类型.png
就可以看到Payload下的包,显示包内容可以看到部分APP的资源以及Assets.car。
![](http://upload-images.jianshu.io/upload_images/2117012-1e565e22a8cfcb3f.png?imageMogr2/auto-orient/strip|imageView2/2/w/514)
2.解压Assets.car
2.获取Assets.car
中的图片资源
2.1下载工具AssetCatalogTinkerer 如图:
![](http://upload-images.jianshu.io/upload_images/659755-a503a3ec49b4f494.jpg?imageMogr2/auto-orient/strip|imageView2/2/w/775)
2.2打开Asset Catalog Tinkerer
App,打开刚刚的Assets.car
,就可看到所有图片资源了。
![](http://upload-images.jianshu.io/upload_images/659755-06066754dfcf1e5d.jpg?imageMogr2/auto-orient/strip|imageView2/2/w/1200)
![](http://upload-images.jianshu.io/upload_images/659755-0b22cb339912f1b5.jpg?imageMogr2/auto-orient/strip|imageView2/2/w/1200)
2.3导出图片资源
![](http://upload-images.jianshu.io/upload_images/659755-677888a5e2876e8b.jpg?imageMogr2/auto-orient/strip|imageView2/2/w/1200)