iOS 获取素材
一、 获取ipa
法1:[Apple configurator 2 获取ipa]:
(https://www.jianshu.com/p/fdb50d303ad6)
法2:[老版本itunes 获取ipa]:
(https://juejin.im/post/5a3735016fb9a0451f3107e3)
二、解析 Assets.car 文件
自己开发了Mac工具:如图
工具源码:
https://github.com/iRemark/ReadCar
#附上一段 读取 txt 文件的代码,和本博客内容无关
//加载本地字txt资源
let path = Bundle.main.path(forResource:"multiple-device-upload-ios", ofType:"txt")
let text = try! String(contentsOfFile:path!, encoding: String.Encoding.utf8)
let textList = text.components(separatedBy: "\n");
for(index, item) in textList.enumerated() {
print(item + " device\(index+1)");
}