Apple Watch App Fails Submission Invalid Info.plist and Icon

主宰稳场 提交于 2019-12-30 04:24:07

问题


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.


回答1:


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.




回答2:


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.




回答3:


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.




回答4:


I have solved:

  • Open, in the mode code, Info.plist of "yourapp WatchKit app"
  • 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. :-)]



来源:https://stackoverflow.com/questions/29416068/apple-watch-app-fails-submission-invalid-info-plist-and-icon

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!