iOS 獲取素材

 

1、 獲取ipa

法1:[Apple configurator 2 獲取ipa]:ios

(https://www.jianshu.com/p/fdb50d303ad6)git


法2:[老版本itunes 獲取ipa]:github

(https://juejin.im/post/5a3735016fb9a0451f3107e3)工具

 


2、解析 Assets.car 文件

本身開發了Mac工具:如圖post

 

 

 

軟件地址spa

 

工具源碼:3d

 https://github.com/iRemark/ReadCarcomponent

 

 

 

 

#附上一段 讀取 txt 文件的代碼,和本博客內容無關blog

        

        //加載本地字txt資源ip

        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)");

        }

相關文章
相關標籤/搜索