无效的图像路径-在键'CFBundleIcons':'AppIcon20x20'下引用的路径中找不到图像 [英] Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons':'AppIcon20x20'

查看:98
本文介绍了无效的图像路径-在键'CFBundleIcons':'AppIcon20x20'下引用的路径中找不到图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

重新发布,因为我对此没有任何答复.

REPOSTING SINCE I AM GETTING NO ANSWERS ON THIS.

我已经为这个问题苦苦挣扎了一个多星期.每当我最近尝试验证构建或使用应用程序加载器时,都会出现此错误:

I have been struggling with this issue for over a week. Whenever I try to validate a build or use application loader lately I have been getting this error:

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

现在,问题在于我的plist中没有AppIcon20x20密钥.

Now, the problem is there is no AppIcon20x20 key in my plist.

这是我的AppIcon资产和属性设置: AppIcon

Here's my AppIcon asset and attributes settings: AppIcon, Attributes

我的Plist中甚至没有提到20x20资产,如此处的源代码版本所示:

Nowhere is a 20x20 asset even mentioned in my Plist, as seen by the source code version here :

    <?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中,我这样做了,但是仍然抛出错误.我在该项目的版本中也执行了此操作,该版本中有Pod,没有Pod,工作区和常规xcproj.文件,甚至只有1个视图控制器和一些图标[此最新版本].

And lastly, I have googled the heck out of this topic and they all say to just add CFBundleIcons to your plist, which I did, but it's still throwing the error. I have also done this in versions of this project where there are pods, no pods, workspaces, regular xcproj. files, and even with 1 view controller and just some icons [this latest build].

我还尝试在xcode版本8.1、8.2和8.3中实现此构建,所有这些都收到相同的错误.

I have also tried to achive this build in xcode versions 8.1, 8.2, and 8.3, all receiving the same error.

这里的任何帮助将不胜感激.这些是面向客户的应用程序,由于这个问题,我目前无法交付.谢谢.

Any help here would be greatly appreciated. These are apps for a client and I am currently late on delivering because of this issue. Thanks.

推荐答案

,您只需使用 https://创建应用图标资产makeappicon.com/.您必须提供1536x1536px的图像才能获得最佳效果.它将自动为您的项目创建所有应用程序图标

you can simply create your app icons asset using https://makeappicon.com/. You have to supply a 1536x1536px image for the best result. It will automatically create all the app icons for your project

也请参考以下内容:-

  • 检查图标文件的名称与您的info.plist中的名称完全相同.不过,在运行调试模式时还可以,但是在上传/验证内部版本时不起作用.

  • Check the icon file's name is exactly same as the name in your info.plist. It's fine while running debug mode though, It doesn't work while you upload/ validate the build.

请检查您的应用程序的捆绑包标识符是否正确.

Please check your app's bundle identifier is correct.

这篇关于无效的图像路径-在键'CFBundleIcons':'AppIcon20x20'下引用的路径中找不到图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆