最近升級了 macOS High Sierra 和 Xcode 9斥铺,然后在打包上傳新的 ipa 時(shí)出現(xiàn)了這樣的一個(gè)問題:
ERROR ITMS-90022: "Missing required icon file. The bundle does not contain an app icon for iPhone / iPod Touch of exactly '120x120' pixels, in .png format for iOS versions >= 7.0."
意思是說沒找到 120x120 的圖標(biāo),但是我明明在 Assets.xcassets 里已經(jīng)放了啊!真是百思不得其解钠四。
經(jīng)過百般搜索后,終于在 Apple 開發(fā)者論壇里找到了這樣的解決方案:
1. 打開 Organizer,右擊你打包好的 ipa榜晦,選擇“Show in Finder”。
2. 右擊該 .xcarchive 文件羽圃,選擇“顯示包內(nèi)容”乾胶。
3. 打開終端,定位到當(dāng)前目錄,并鍵入以下命令识窿,執(zhí)行斩郎。
find Products/ -name Info.plist -print0 | xargs -0n1 plutil -replace BuildMachineOSBuild -string 16A323