2017-04-24 154 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

我已经发布了截图,它的主要信息。 –