[AC-2320] iOS: tiapp info is not properly transfered into info.plist with an Xcode validation failure as a result
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-12-11T17:10:15.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | icons, info.plist, ios7,, tiapp |
Reporter | ijme woensdregt |
Assignee | Eric Wieber |
Created | 2013-12-01T13:04:22.000+0000 |
Updated | 2016-03-08T07:41:20.000+0000 |
Description
I'm fighting IOS icons. In my tiapp there is this section:
appicon.png
All necessary files are in a folder called iphone, 72 dpi png exactly measured.
When I build the app the info.plist contains only two icon File entries
Item 0 string appicon.png
Item 1 string appicon@2x.png
Xcode 5.1 tries to validate but complains about the missing icons:
Missing required icon file. The bundle does not contain an app icon for ipad of exactly 72 x 72 pixels in png format.
Obviously it does contain that file, and even more than this one.
Of course I tried to edit info.plist by hand, to no effect. I checked and checked upper and lower case, I even mad this icon files again but still no luck. How do I do this?
thanks
ijme
<ios>
<plist>
<dict>
<key>CFBundleIconFiles</key>
<array>
<string>appicon.png</string>
<string>appicon@2x.png</string>
<string>appicon76.png</string>
<string>appicon76@2x.png</string>
<string>appicon72@2x.png</string>
<string>appicon72.png</string>
</array>
</dict>
</plist>
</ios>
Somewhere in the file is also this section:
Hello Ijme, I believe that this issue comes from an image not being named correctly. Please check this documentation page to see how each image should be named for the iOS platforms: http://docs.appcelerator.com/titanium/latest/#!/guide/Icons_and_Splash_Screens Look for the section named: iOS graphic asset requirements and options It looks like your PNGs named appicon72.png and appicon72@2x.png are missing a dash and should be: appicon-72.png and appicon-72@2x.png Also, it does not appear that appicon76.png or appicon76@2x.png are supported. Could you please try renaming these lines and resources and see if it resolves your issue? \\ P.S. According to this page: http://docs.appcelerator.com/titanium/latest/#!/guide/tiapp.xml_and_timodule.xml_Reference-section-29004921_tiapp.xmlandtimodule.xmlReference-plist : Unsupported Info.plist Keys The following Info.plist properties are ignored in the
It turned out it had something to do with image or name caching by Xcode. After I renamed all icon files into something that has not been used yet (app-icon72.png etc) Xcode validated the app without any problem.
Glad to hear that the issue is resolved! Closing ticket as fixed. Please let us know if you experience the issue again.