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.
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.pngBe 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 :)
-
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.
-
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?
-
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.