2017-04-24 150 views
3

由於我沒有收到有關此問題的答案,因此重新進行了修改。無效的圖像路徑 - 在鍵值'CFBundleIcons'下引用的路徑中找不到圖像:'AppIcon20x20'

我一直在努力解決這個問題一個多星期。每當我嘗試驗證生成或使用應用程序加載器最近我已經收到此錯誤:

iTunes Store operation failed. 
Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons':'AppIcon20x20' 

現在的問題是有我的plist沒有AppIcon20x20關鍵。

這裏是我的APPICON資產和屬性設置: AppIconAttributes

無處即使在我的plist中提到一個20×20的資產,由源代碼版本這裏看到:

<?xml version="1.0" encoding="UTF-8"?> 
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> 
<plist version="1.0"> 
<dict> 
    <key>CFBundleIcons</key> 
    <dict> 
     <key>CFBundlePrimaryIcon</key> 
     <dict> 
      <key>CFBundleIconFiles</key> 
      <array> 
       <string>icon603x.png</string> 
       <string>icon602x.png</string> 
       <string>icon403x.png</string> 
       <string>icon402x.png</string> 
       <string>icon293x.png</string> 
       <string>icon292x.png</string> 
       <string>icon203x.png</string> 
       <string>icon203x.png</string> 
      </array> 
     </dict> 
    </dict> 
    <key>NSAppTransportSecurity</key> 
    <dict> 
     <key>NSAllowsArbitraryLoads</key> 
     <true/> 
     <key>NSExceptionDomains</key> 
     <dict> 
      <key>https://millsfitnessapparel.myshopify.com/</key> 
      <string></string> 
     </dict> 
    </dict> 
    <key>CFBundleDevelopmentRegion</key> 
    <string>en</string> 
    <key>CFBundleExecutable</key> 
    <string>$(EXECUTABLE_NAME)</string> 
    <key>CFBundleIdentifier</key> 
    <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> 
    <key>CFBundleInfoDictionaryVersion</key> 
    <string>6.0</string> 
    <key>CFBundleName</key> 
    <string>$(PRODUCT_NAME)</string> 
    <key>CFBundlePackageType</key> 
    <string>APPL</string> 
    <key>CFBundleShortVersionString</key> 
    <string>1.0</string> 
    <key>CFBundleVersion</key> 
    <string>1</string> 
    <key>LSRequiresIPhoneOS</key> 
    <true/> 
    <key>UILaunchStoryboardName</key> 
    <string>LaunchScreen</string> 
    <key>UIMainStoryboardFile</key> 
    <string>Main</string> 
    <key>UIRequiredDeviceCapabilities</key> 
    <array> 
     <string>armv7</string> 
    </array> 
    <key>UISupportedInterfaceOrientations</key> 
    <array> 
     <string>UIInterfaceOrientationPortrait</string> 
     <string>UIInterfaceOrientationLandscapeLeft</string> 
     <string>UIInterfaceOrientationLandscapeRight</string> 
    </array> 
</dict> 
</plist> 

最後,我已經搜索了這個話題,他們都說只是將CFBundleIcons添加到你的plist中,我這樣做了,但它仍然在拋出錯誤。我也在這個項目的版本中完成了這個任務,那裏有豆莢,沒有豆莢,工作區和常規xcproj。文件,甚至1個視圖控制器和一些圖標[這個最新版本]。

我也嘗試在xcode版本8.1,8.2和8.3中實現這個版本,所有版本都收到相同的錯誤。

在這裏的任何幫助將不勝感激。這些是針對客戶的應用程序,由於這個問題,我目前正在遲交。謝謝。

回答

4

您可以使用https://makeappicon.com/簡單地創建應用程序圖標資產。您必須提供1536x1536px的圖片才能獲得最佳效果。它會自動創建所有應用圖標爲您的項目

請同時參閱以下內容: -

  • 檢查圖標文件的名稱是在你的info.plist名稱完全相同。雖然在運行調試模式時很好,但在上傳/驗證構建時不起作用。

  • 請檢查您的應用程序的包標識符是否正確。

+0

仍然無法解決此問題。請張貼您的應用程序圖標的資產文件夾和content.json –

+0

的屏幕截圖,如果以上非工作正常,請檢查此。 http://stackoverflow.com/questions/19316501/xcode-5-invalid-image-path-cfbundleicons?rq=1 –

+0

我已經發布了截圖,它的主要信息。 –