ios 图像路径无效 - 在路径中找不到图像。CFBundleIcons Xcode 5
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/19522042/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Invalid Image Path - No image found at the path. CFBundleIcons Xcode 5
提问by Wac
I'm trying to update my app for iOS 7 with Xcode 5.0.
我正在尝试使用 Xcode 5.0 为 iOS 7 更新我的应用程序。
Everything works fine, but when I archive then validate I get these messages:
一切正常,但是当我存档然后验证时,我收到以下消息:
Invalid Image Path - No image found at the path referenced under key CFBundleIcons': 'APP-ICON-57'
无效的图像路径 - 在键下引用的路径中找不到图像 CFBundleIcons': 'APP-ICON-57'
I've tried to remove and add the images, have manually edited my info.plist
, renamed images, add .png
to the key, etc. Nothing seems to work. Please help, I'm about one day into getting through this silly issue.
我尝试删除和添加图像,手动编辑我的info.plist
,重命名图像,添加.png
到密钥等。似乎没有任何效果。请帮忙,我大约有一天会解决这个愚蠢的问题。
采纳答案by Grzegorz Krukowski
Make sure that this image is a members of target you are building:
确保此图像是您正在构建的目标的成员:
Also be aware that names are case sensitive.
另请注意,名称区分大小写。
- Click on the affected image in the Project Navigator
- In the utilities window, click the "Show the File Inspector" icon.
- Ensure the "Target Membership" app name has "v" next to it.
- Rebuild and archive.
- 在项目导航器中单击受影响的图像
- 在实用程序窗口中,单击“显示文件检查器”图标。
- 确保“目标会员”应用名称旁边有“v”。
- 重建和存档。
回答by JSA986
iOS 8/xCode 6 answer, if you get an error AppIcon 120x120 not found, uncheck the car play icon in xcode's AppIcon set. Assuming you're not using car play of course
iOS 8/xCode 6 回答,如果您收到错误 AppIcon 120x120 not found,请取消选中 xcode 的 AppIcon 集中的汽车播放图标。假设你当然没有使用汽车游戏
回答by SamSmart
If you get an error AppIcon 120x120 not found in Xcode 6,
1. click images.xassets which is located left side right under Main.storyboard.
2. You should see bunch of same icons in different size.
3. At the bottom, find one that says CarPlay iOS 8 120pt.
4. Delete this icon and leave it blank.
Problem solved!
如果您收到错误 AppIcon 120x120 not found in Xcode 6,
1. 单击位于 Main.storyboard 下左侧右侧的 images.xassets。
2. 你应该看到一堆不同大小的相同图标。
3. 在底部,找到一个说 CarPlay iOS 8 120pt。
4. 删除此图标并将其留空。
问题解决了!
回答by RFAustin
I encountered the same problem. The solution is to look under the "Supporting Files" and "foobar-info.plist" file (see attached). Under the Icon Files if you click the down arrows, you will come across the offending file names.
我遇到了同样的问题。解决方案是查看“支持文件”和“foobar-info.plist”文件(见附件)。如果您单击向下箭头,则在图标文件下,您会遇到有问题的文件名。
回答by keyur sojitra
it's working
它在工作
https://developer.apple.com/library/ios/qa/qa1686/_index.html
https://developer.apple.com/library/ios/qa/qa1686/_index.html
go to your project "Info" tab
转到您的项目“信息”选项卡
and Remove the properties of “Icon file” and “Icon files”
并删除“图标文件”和“图标文件”的属性
回答by Ryan Knell
In my Cordova 6 / iOS 4 project in xCode 9 I needed to go to ProjectName.plist under the resources folder. There was a key named Icon which had the offending Icon.png value beside it. Deleted the key and now all working.
在 xCode 9 中的 Cordova 6 / iOS 4 项目中,我需要转到资源文件夹下的 ProjectName.plist。有一个名为 Icon 的键,旁边有一个有问题的 Icon.png 值。删除了密钥,现在一切正常。
回答by Abdullah Amer
I had the same problem, and I solve it by uncheck the carPlay from Images.xcassets.
我遇到了同样的问题,我通过取消选中 Images.xcassets 中的 carPlay 来解决它。
Go to Images.xcassets then choose appIcon, then uncheck carPlay
转到 Images.xcassets,然后选择 appIcon,然后取消选中 carPlay
回答by Abdullah Amer
If it happens with 120x120 icon, just delete it from images.xcassets.
如果出现 120x120 图标,只需从 images.xcassets 中删除它。
回答by Lyck
回答by Litehouse
I had this problem, and I for the appIcon60x60 file. I found that my appicon60@2x was a 60x60 file when it should have been a 120x120 file.
我遇到了这个问题,我的 appIcon60x60 文件。我发现我的 appicon60@2x 是一个 60x60 的文件,而它应该是一个 120x120 的文件。
The carplay icon had a similar problem. While Xcode says it's a 1x file, it's actually a 2x file. So when i created and appicon120@2x file where the image was 240x240, it corrected the problem. This is a defect in Xcode as it should have indicated a 2x file instead of 1x.
carplay 图标也有类似的问题。虽然 Xcode 说它是一个 1x 文件,但它实际上是一个 2x 文件。因此,当我创建图像为 240x240 的 appicon120@2x 文件时,它纠正了问题。这是 Xcode 中的一个缺陷,因为它应该指示 2x 文件而不是 1x。
In summary, if you are getting this error, check that the actual image sizes match up with the corresponding icon.
总之,如果您收到此错误,请检查实际图像大小是否与相应图标匹配。