序言
一開始碰到這些報錯可能會有點不知所措,但是根據報錯的提示描述,能大致的了解到是哪一塊有問題。下面我就把我碰到的幾個報錯以及如何解決的寫下來,希望能幫到大家。
報錯與解決方案
1.
根據提示是需要iPhone5的一張320*568的啟動圖,但是這里怎么設置launchImages都沒用,后來我在網上找到一個方法:
1)修改啟動圖名稱。
? ?圖片的名稱必須叫Default-568.png。
2)圖片放置位置。
必須把圖片放在工程的根目錄下。
3)修改圖片大小。
? ?圖片尺寸必須是320*568(像素)。
4)Info.plist中添加設置
<key>UILaunchImages</key>
<array>
<dict>
<key>UILaunchImageName</key>
<string>Default-568</string>
<key>UILaunchImageSize</key>
<string>{320, 568}</string>
</dict>
</array>
參考鏈接:https://blog.csdn.net/xia0liang/article/details/51537032
2.
這個根據提示可以知道App Store icon使用的圖片中,有的圖片有透明度通道,這里只要把有透明度通道的圖片去掉通道即可。
那么如何去除透明度通道呢?這里使用mac自帶的圖片顯示器就可以去除。
1)使用自帶圖片顯示器打開圖片。
2)選擇圖片導出,進入導出畫面。
3)如果圖片有透明度通道的話,會有個alpha的一個勾選項,取消勾選保存即可。
3.
根據提示是URL schemes有問題,提示需要以拼音字符或者字母字符作為開頭,再看看自己的,那么問題就好解決了:把自己的URL sehemes修改為英文字母開頭,再提交就沒有問題了。
4.
ERROR ITMS-90171: "Invalid Bundle Structure - The binary file 'productName.app/AlipaySDK.' is not permitted. Your app can’t contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. Refer to the Bundle Programming Guide at https://developer.apple.com/go/?id=bundle-structure for information on the iOS app bundle structure."
這個是引入的第三方framework所帶的資源包有問題,有可能是bundle里info.plist使用到的資源在bundle里沒有。也有可能是用到了一些apple不支持的文件或者庫。
記錄下可能的原因:
- stackoverflow.com/questions/30419119/unable-to-upload-ios-update-after-adding-flurry-analytics-error-your-app-can-t
- stackoverflow.com/questions/37222102/iphone-app-submitting-error-itms-90171-invalid-bundle-structure-constants-o
-
https://support.apteligent.com/articles/knowledge_base
有的是直接把原來的SDK刪了,下載最新的,就好了 。
找了好久,最后發現是Assets.xcassets 里有項目文件,刪除即可。
5.
打好包后,證書和配置文件選擇前報錯 "symbols tools failed" ?
不要勾選第三個 "upload your apps symbols to ..."。
6.
iTunes Store operation failed:NO suitable application records were found.Verify your bundle identifier 'com***'is correct。
提交的APP中的 bundle identifier 與你itunesConnect 中的app 不一致。
7.
報錯:Could not find version: latest of iTMSTransporter to download.
xcode11用之前版本的loader會報這個錯,原因是iTMSTransporter路徑不對,把loader拷貝到xcode11路徑下,然后打開iTMSTransporter雙擊開始安裝,路徑是:/Applications/Xcode.app/Contents/Applications/Application\ Loader.app/Contents/itms/bin/iTMSTransporter,安裝完就好了。
8.
報錯:An exception has occurred: Unable to tunnel through proxy. Proxy returns "HTTP/1.1 502 Bad Gateway"
這個是設置了代理的問題,把偏好設置->網絡->高級->代理里的socks代理的勾改為自動發現代理就好了。
9.
ERROR ITMS-90189: "Redundant Binary Upload. You've already uploaded a build with build number '1.0.0' for version number '1.0.0'. Make sure you increment the build string before you upload your app to App Store Connect. Learn more in Xcode Help (http://help.apple.com/xcode/mac/current/#/devba7f53ad4)."
版本號沖突了,apple store store 不允許有相同的版本號。
10.
ERROR ITMS-90190: "Invalid Info.plist Key. The key 'UIUserInterfaceStyle' in the Payload/yourProduct.appInfo.plist file is not valid."
target路徑不對,因為copy bundle reasource中添加了多余的target造成了路徑變更,刪除即可。
結語
· 以上就是本人上傳遇到的幾個問題以及解決方案,如有其他情況會即時補充。