昨天升級(jí)的XCode9正式版,今天打包后,提交App Store的時(shí)候遇到了如下的錯(cuò)誤
iTunes Store Operation Failed
description length:6193045
iTunes Store Operation Failed
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."
iTunes Store Operation Failed
ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '76x76' pixels, in .png format for iOS versions >= 7.0."
iTunes Store Operation Failed
ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '167x167' pixels, in .png format for iOS versions supporting iPad Pro."
iTunes Store Operation Failed
ERROR ITMS-90023: "Missing required icon file. The bundle does not contain an app icon for iPad of exactly '152x152' pixels, in .png format for iOS versions >= 7.0."
圖片如下
然后各種方式嘗試解決
網(wǎng)上搜索,有人說(shuō)是cocoapod引起的7003,需要在podfile文件中添加
post_install do |installer|
copy_pods_resources_path = "Pods/Target Support Files/Pods-MeiyeCommon-MeiyeHD/Pods-MeiyeCommon-MeiyeHD-resources.sh"
string_to_replace = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}"'
assets_compile_with_app_icon_arguments = '--compile "${BUILT_PRODUCTS_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}" --app-icon "${ASSETCATALOG_COMPILER_APPICON_NAME}" --output-partial-info-plist "${BUILD_DIR}/assetcatalog_generated_info.plist"'
text = File.read(copy_pods_resources_path)
new_contents = text.gsub(string_to_replace, assets_compile_with_app_icon_arguments)
File.open(copy_pods_resources_path, "w") {|file| file.puts new_contents }
end
添加完后,pod install或者pod update一下
這個(gè)我試了.... 問(wèn)題依舊.
后來(lái)在蘋果官網(wǎng)的論壇上面有看到有人也遇到了同樣的問(wèn)題.
Upload iOS 11 Apps: app icon failure
在底下有其他人的回復(fù)中提到了一種解決方式,經(jīng)過(guò)我自己的驗(yàn)證,是可以的.
方式如下:
1 正常的編譯,生成將會(huì)用來(lái)上傳的 .xcarchive文件
2 右鍵,選擇show in finder,定位到文件所在
3 定位到文件后,在文件上右鍵,選擇 顯示包內(nèi)容,進(jìn)去
4 打開(kāi)終端命令,定位到此處
輸入命令
find Products/ -name Info.plist -print0 | xargs -0n1 plutil -replace BuildMachineOSBuild -string 16A323
5 再使用XCode或者Application Loader就可以正常上傳二進(jìn)制到itunerConnect了.
給出的解釋
升級(jí)mac系統(tǒng)到了High sierra(10.13,目前還是測(cè)試版,并沒(méi)有正式版,全新的文件系統(tǒng) APFS (Apple File System))發(fā)現(xiàn)沒(méi)有這個(gè)問(wèn)題,于是乎,所以給出這種解決方式的作者認(rèn)為是 APFS的bug.
當(dāng)然了,你還有另外一種解決方式,就是依舊用舊的XCode8來(lái)打包發(fā)布,??