Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

App icon and version no is missing at xcode organizer

Dear All Ti Geek!

I have one issue when I try to submit my app version update to app store, my app icon is missing and version is showing as unspecified. What I wondering is last time it is working fine with XCode 3 and Titanium SDK 1.5.1.

I have tried for my next version update with Xcode 4 and Titanium 1.6.2.

Then I got like this kind of problem and worry to submit to apple.

My issue is same as here also:
http://jira.appcelerator.org/browse/TIMOB-3421

Please give me some advise.

— asked May 27th 2011 by Pye Phyo Han
  • icon
  • organizer
  • version
  • xcode
0 Comments

4 Answers

  • I had this issue too, and found there were 2 problems that could both be fixed with a modification to builder.py. Turns out XCode 4 needs a short version string CFBundleShortVersionString and an IconPaths array of icons to be displayed in the organizer. builder.py is usuually located in

    /Library/Application Support/Titanium/mobilesdk/osx/1.7.0/iphone

    I am using version 1.7.0 of the sdk, so you may have other directories such as 1.6.0 or 1.6.2

    builder.py needs the following replacement in the distribute_xc4 function

        #
        # 6/5/2011 SAM
        # xcode 4 added two new items that need to be in the bundle
        # CFBundleShortVersionString - the short version to show in organizer
        # IconPaths - an array of icons to be used
        # this code assumes your version is in x.y.z format and only displays x.y dropping off the long z part
        # this does not seem to affect the submit process, just the organizer display
        shortversion = project_info_plist['CFBundleVersion'].split('.')
    
        archive_info = {
            'ApplicationProperties' : {
                'ApplicationPath' : 'Applications/%s.app' % name,
                'CFBundleIdentifier' : project_info_plist['CFBundleIdentifier'],
                'CFBundleShortVersionString' : '%s.%s' % (shortversion[0], shortversion[1]),
                'IconPaths' : ['Applications/%s.app/icon.png' % name]
            },
            'ArchiveVersion' : float(1),
            'CreationDate' : datetime.datetime.fromtimestamp(time.mktime(time.gmtime())),
            'Name' : name,
            'SchemeName' : name
        }
    

    You'll see I've add some comments at the top, a shortversion variable, and CFBundleShortVersionString and IconPaths entrries to the archive_info structure.

    In order for this to work, you will need the following entries in you Resources directory.

    icon.png
    icon@2x.png

    Be sure and edit you tiapp.xml file to change your icon names in there too.

    Hopefully, The Titanium folks will roll this into their next release and pull the icon name from the tiapp.xml file to do it properly. I was happy to go with the brute force technique to get my app to show up in organizer properly :)

    — answered June 6th 2011 by Scott Mason
    permalink
    0 Comments
  • To get the version number to reappear you need to add the property "bundle versions string, short" to your info.plsit and make its value that of your app's version number.

    On the icon issue, I find it best to drag and drop it into the 'wells' of Xcode's Summery tab. You can also place a hi-res version of your app's icon or lunch images too if you wish.

    — answered May 27th 2011 by Patrick Mounteney
    permalink
    1 Comment
    • thanks for your reply. Actually, I think there is bug between xcode 4 and Ti 1.6. I have tried so many time but no luck for me. So, I remove xcode 4 and re-install xcode3 stable version and then all are working fine. :)

      — commented May 31st 2011 by Pye Phyo Han
  • What I want to know is, does this no icon and no version cause a problem with uploading to iTunes connect? My package verified OK (validates), but doesn't have icon or version in Organiser version 4.0.2.

    Is this just visual to Organiser?

    — answered June 28th 2011 by Sky Apperley
    permalink
    0 Comments
  • AFAIK, the displayed icon and version number issue are "just for show" and do not affect app store submission. Seems to be just an organizer display issue, albeit an annoying one. As always, make sure you install it on a real device and if it looks good there, you should be OK.

    — answered June 28th 2011 by Scott Mason
    permalink
    2 Comments
    • I have tested it throughly on a number of devices via 'run on device' and in the emulator. This is a killer of a bug at the last final stage. I guess if there were problems then iTune connect 'preflight check' would have picked them up.

      — commented June 28th 2011 by Sky Apperley
    • Let me share some thing about it.

      1) Icon and version are missing issue.
      From my experience, this is bug between Titanium and xCode. As u know there are some headache at xCode 4. I think xcode 3 is more stable for Titanium. Last time I tries so many time for that issue. No luck at all. Finally, I reinstall xcode 3 then combine and submit directly xcode. After you built successfully, you can open your project from xcode and can try like this.

      2) I want to know are you using Titanium Developer console or Titanium Studio IDE? Because I also cannot make for "Run on iso device" from Titanium Studio. I don't know what is wrong? When I tried from Titanium Developer console, it is totally working fine and I can install on devices. Really strange and funny!!!

      So normally, when I get xcode project after built, I tried some installation or submit staff from xcode directly by opening that built project.

      — commented June 28th 2011 by Pye Phyo Han
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.