Xcode 5: “Invalid image path” CFBundleIcons

后端 未结 12 1842
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-14 16:29

Ok, my problem seems to be similar to this, and this, but following the answers, there is not helping me. This might be because I am using Xcode 5, before I upgraded to this

相关标签:
12条回答
  • 2020-12-14 17:04

    Sometimes that happens when you add files separately.

    Make sure you have the Build name's check box checked on the "Target Membership" area in the Utilities pane.

    The files for which it is throwing an error would have that check box unchecked hence it does not get included in the final build.

    By checking this checkbox I got my problem solved. Thank DomandoCoder!

    0 讨论(0)
  • 2020-12-14 17:10

    Here is what worked for me:

    1. Select the Target
    2. Go to Build Phases
    3. Expand the Copy Bundle Resources
    4. Go to the bottom of the panel and select the + sign.
    5. Add each of the missing resources.
    0 讨论(0)
  • 2020-12-14 17:12

    I too had the same issue, the interesting thing was that I was already using the asset catalog when this happened. The solution that ended up working for me is described here: Invalid Image Path - No image found at the path. CFBundleIcons Xcode 5

    Basically you need to add the image to the target you are building. To do that, select the image in the list of files under your project in the Navigation Pane, then show the Utilities Pane on the right and check the target under Target Membership in the Utilities Pane to the left

    0 讨论(0)
  • 2020-12-14 17:13

    I had the same error as ckoskar, "Invalid Image Path - No image found at the path referenced under key 'CFBundleIcons': 'icon120x120'"

    I ended up deleting the file from the CarPlay section in the AppIcon part of Images.xcassets, and then I was able to submit the build.

    0 讨论(0)
  • 2020-12-14 17:13

    I had the similar issue with an error about iTunesArtwork and warning about 120 icon and the "Use Asset Catalog" worked for me where I filled the missing icons by dragging from project navigation pane and didn't do anything with iTunesArtwork though.

    Edit:

    My previous solution didn't work this time for same error for my react native app. My faulty icons images were causing this very issue. I opened one of the icon in Preview and selected the whole image area and created new image from clipboard. I replaced all the old images by these newly created images and upload went successful.

    0 讨论(0)
  • 2020-12-14 17:15

    Can you try removing the icon from the project and adding them again? Then try to use the name without .png.

    Sometimes Xcode can't see the changes if you modify the file in Finder.

    0 讨论(0)
提交回复
热议问题