Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2320] iOS: tiapp info is not properly transfered into info.plist with an Xcode validation failure as a result

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2013-12-11T17:10:15.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsicons, info.plist, ios7,, tiapp
Reporterijme woensdregt
AssigneeEric Wieber
Created2013-12-01T13:04:22.000+0000
Updated2016-03-08T07:41:20.000+0000

Description

I'm fighting IOS icons. In my tiapp there is this section:
   <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: 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

Comments

  1. Eric Wieber 2013-12-09

    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 section. The values for these properties are automatically generated by Titanium and may not be overridden in the tiapp.xml file or custom Info.plist file. CFBundleDisplayName. The name in the generated file always reflects the value of the element CFBundleExecutable CFBundleIconFile CFBundleIconFiles. Automatically includes all application icon files from project directory. CFBundleIdentifier CFBundleInfoDictionaryVersion CFBundleName CFBundlePackageType CFBundleSignature CFBundleVersion CFBundleShortVersionString
  2. ijme woensdregt 2013-12-11

    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.
  3. Eric Wieber 2013-12-11

    Glad to hear that the issue is resolved! Closing ticket as fixed. Please let us know if you experience the issue again.

JSON Source