天天看點

Xcode打包上傳遇到的坑

1.安裝測試包的時候提示APIInternalError

①是否增加了測試裝置的UUID

②是否使用adhoc證書打包

2.打包錯誤:error: couldn't remove '/Users/xxx/Library/Developer/Xcode/DerivedData/xxxx/Build/Products/Debug-iphoneos/xxx.app/xxx.bundle' after command failed: Directory not empty  

解決辦法:Build Phases->Copy Bundle Resources将對應的xx.bundle 删除再重新添加

3.上傳提示:You must supply a CFBundleIdentifier for this request.

解決方法:修改info.plist,增加或修改Bundle OS Type code 為APPL

Xcode打包上傳遇到的坑

4.上傳提示: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."

icon圖檔格式不夠完整 解決方法:

①使用網址 http://www.atool.org/ios_logo.php,上傳一張1024x1024的icon自動生成一系列尺寸的icon,然後拖放到xcode的icons檔案夾下。

②修改info.plist配置對應尺寸的icon

<key>CFBundleIconFile</key>
<string>Icon-57.png</string>
<key>CFBundleIconFiles</key>
<array>
    <string>Icon-29</string>
    <string>Icon-40</string>
    <string>Icon-50</string>
    <string>Icon-57</string>
    <string>Icon-58</string>
    <string>Icon-72</string>
    <string>Icon-76</string>
    <string>Icon-80</string>
    <string>Icon-87</string>
    <string>Icon-100</string>
    <string>Icon-114</string>
    <string>Icon-120</string>
    <string>Icon-144</string>
    <string>Icon-152</string>
    <string>Icon-180</string>
</array>
<key>CFBundleIconFiles~ipad</key>
<array>
    <string>Icon-29</string>
    <string>Icon-40</string>
    <string>Icon-50</string>
    <string>Icon-57</string>
    <string>Icon-58</string>
    <string>Icon-72</string>
    <string>Icon-76</string>
    <string>Icon-80</string>
    <string>Icon-87</string>
    <string>Icon-100</string>
    <string>Icon-114</string>
    <string>Icon-120</string>
    <string>Icon-144</string>
    <string>Icon-152</string>
    <string>Icon-180</string>
</array>      

③配置顯示的圖示

①使用網址http://www.appicon.build/生成配置檔案

②進入配置檔案夾進行替換

Xcode打包上傳遇到的坑

轉載于:https://www.cnblogs.com/chevin/p/8274738.html