Reputation: 111
I am trying to submit my Apple Watch App to Apple. When validating, it always fails with various info.plist issues. One of these says:
The key ‘CFBundleIcons~ipad’ in bundle iPrayed.app/PlugIns/iPrayed WatchKit Extension.appex/iPrayed WatchKit App.app is invalid.
Also, I get various errors as well about Invalid icon names. I have searched for these, but I don't see them anywhere. Also, the CFBundleIcons key in the Watch App never shows on the Info.plist I have in there. What am I doing wrong? Attached below are three screenshots, one of the errors, one showing target of watch app, and one of my Image Assets file in Watch App.
Upvotes: 9
Views: 3289
Reputation: 1
I have solved:
Delete the following lines:
<key>CFBundleIcons</key>
<dict/><key>CFBundleIcons~ipad</key><dict/>
My project also the problems you see in the screenshot.
I got around them by identifying these icons in my AppIcon deleting images and uploading them again with the names he wanted Xcode.
Also I don't why there are two < dict/ > in this position.
[Sorry for my english. :-)]
Upvotes: 0
Reputation: 331
What I did was to have two sets of App Icons, let's say, AppIcon and AppIcon-1. AppIcon is part of the main App (in Targets), AppIcon-1 is the WatchKit App (in Targets as well)
AppIcon contains the icons for iPhone, iPad and Watch.
AppIcon-1 contains the icons ONLY for the watch,
That fixed the problem for me.
Upvotes: 0
Reputation: 81
I had this problem and after 3 hours straight I just figured it out.
Open your finder and find the WATCH info.PLIST file
Then delete the row that has "CFBundleIcons~ipad"
I hope this helps someone.
Upvotes: 8
Reputation: 9930
This is a crazy bug on Xcode 6.2 but I found an easy fix (after lots of hard work).
Apparently, Xcode doesn't work well when using same icons for the app and for the watch at the same asset catalog so just separate the icons and that would fix that.
Just a small notice, Pay attention to have a square icon and not to include any transparency on those icons. It would be submit if you do but would reject automatically after few minutes.
Upvotes: 5