I\'m putting together a universal app and I have the icons in my project, but I keep getting a warning from the compiler in regards to Icon.png.
I followed the instr
I had this problem with a Default@2x.png icon file. It seems that the file was not in the build target (the Target Membership part of its properties).
The solution was to add it to the target. XCode mistakenly allowed files not in the target to be added to the list of icons.
As another answer said, using the finder to browse the Archive file makes it obvious that the file is not present. Still, case sensitivity or other plist errors need to be investigated.
I have same problem and find a solution works for me. Please try below steps:
Mostly do nothing but change the name of the Icon.png and change it back, but it works!
I have tried to use a 512*512 Icon.png for learning, but I copy a new one of 57*57 back later, then the issue come out, I think maybe it's the reason of this issue.
I am new on mac. My XCode4 crashes about 10 times a day. I am missing Visual studio.
Here was my solution to this problem. There was an empty string in the MyApp-Info.plist
file. I manually deleted it (in a text editor) and my app verified and uploaded.
<key>CFBundleIcons</key>
<dict>
<key>CFBundlePrimaryIcon</key>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string></string> <--------- Extra string shouldn't be there------
<string>Icon@2x.png</string>
<string>Icon.png</string>
</array>
</dict>
</dict>
I had the exact same problem. When you build and archive, click show in finder, show the contents of the package of the archive and check if all the files are showing up. For me, the archive was missing Icon.png file for some reason. The archive utility has a bug. I moved the icons out of the resource folder, cleaned and built the project. Then again I moved the icons into the resource folder and cleaned and built it. Then the archive had copied the missing icon files.
This method worked for me and I did not need to rename files and all that other good stuff.
I found a method in the right-click context menu called Add Files to [Project]...
Step 1
Open XCode and make sure you are looking at your project view where it lists the project and top-level files below in a tree-style.
Step 2
Cmd-click or right-click on the Project Name (at top of left sidebar) and then point to "Add Files to [Project Name]..."
Step 3
Browse for files needing to be added. You will notice that files already added are greyed out whereas others that are not added stand out in full colour.