[TIMOB-12011] CLI: iOS: UIPrerenderedIcon ignored and icons are always glossy
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2012-12-10T22:53:11.000+0000 |
Affected Version/s | Release 3.0.0 |
Fix Version/s | 2012 Sprint 25, 2012 Sprint 25 JS |
Components | CLI |
Labels | triage |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2012-12-10T07:12:54.000+0000 |
Updated | 2013-03-13T18:59:29.000+0000 |
Description
According to Marco Ferreira, "I noticed when deploying the app to the device (adhoc and installing with iTunes) the app icon always gets the gloss, which means its not respecting the UIPrerenderedIcon property in tiapp.xml."
This will require some investigation.
Attachments
File | Date | Size |
---|---|---|
gloss in app list.png | 2012-12-11T19:54:07.000+0000 | 26919 |
gloss in library.png | 2012-12-11T19:54:46.000+0000 | 41902 |
gloss in sim.png | 2012-12-11T19:54:46.000+0000 | 85279 |
gloss on device.png | 2012-12-11T19:54:46.000+0000 | 1018667 |
itunes asking to update version.png | 2012-12-11T19:54:46.000+0000 | 30889 |
updated app after update clicked.png | 2012-12-11T19:54:46.000+0000 | 27206 |
updated app previously synced.png | 2012-12-11T19:54:46.000+0000 | 26855 |
Verified occurs with: SDK: 3.0.0.v20121207120202 Titanium Studio, build: 3.0.0.201212061921 Mac OS X 10.8.2 Xcode 4.5.2 CLI: 3.0.20
Disregard my previous comment. Had the XML out of sorts. This works for me with Ad-hoc distribution installing through iTunes. Icon in iTunes has no gloss and icon on device has no gloss.
This is a non-issue. Everything works as expected.
I'm having this issue for a long time and it's still happening with the latest CLI. Note this is only happening using the CLI. Starting Studio bypassing CLI will build my app as expected and icon prerender setting is respected. This is my
I don't see any difference from what Chris posted above, but correct me if I'm wrong.
@Marco, your tiapp.xml looks fine. Next I need to find out a bunch of things. First, from the command line, run "titanium" and report back in this ticket the CLI version and SDK version from the first line of output. Second, change directory into your project, then run "titanium build --platform ios --target dist-adhoc". You'll need to specify the distribution name, output directory, and provisioning profile uuid. When the build finishes, drag the ipa file from the output directory into iTunes so that you can sync and test.
$ titanium Titanium Command-Line Interface, CLI version 3.0.20, Titanium SDK version 3.1.0.v20121128155800 I'm not using 3.1.0 as the output may tell, I'm with 3.0.0.v20121207120202 right now. Project builds successfully, but for some reason iTunes doesn't recognize this build as an update for the app so it doesn't update the app on my device. (most likely a seperate issue) After deleting the app from my device and installing the new build, the app icon has the gloss.
@Marco, OK, sounds like your "active" Titanium SDK is set to 3.1.0.v20121128155800 and your tiapp.xml's sdk-version is set to 3.0.0.v20121207120202. That should be fine. I have a couple of questions: 1) What version of iTunes do you have? 2) Does it error when installing the app in iTunes or when you sync your device? One thing you can try is going into iTunes, then go to the apps screen. Find your app and delete it. You can delete the app from your device too. Then drop the ipa file back into iTunes and sync your device.
Hello, Using the TiApp.xml from Marco's project, I used only the CLI (now 3.0.21) to build for simulator, then on device. I am running: SDK 3.0.0.v20121210171701 Active sdk set in CLI with "ti sdk select 3.0.0.v20121210171701" Target iOS SDK: 6.0 Xcode 4.5.2 iTunes: 11 Simulator showed gloss/no gloss correctly (app icon), iTunes showed gloss correctly (iTunesArtwork), device showed gloss correctly (app icon). See attached screenshots. Regarding iTunes updating for newer versions: Creating a "for device" build when the app has previously been built caused iTunes to prompt me to replace. When already synced to device, iTunes marked the new app as "update" and the button must be clicked for the sync to actually update. This additional step was not required in iTunes 10. See screens.
@Chris 1. iTunes 11 2. No error I did exactly that when testing the CLI as you suggested. @Eric After the build is completed by the CLI, I get the same request from iTunes you mentioned - "Replace?" - and I just answer to replace it, but unfortunetly it seems iTunes (or the CLI) sees it as the same version I already have installed on the device.
@Marco, are you using a custom info.plist that includes a version? If so, the version for your app will remain static at that version and so iTunes will not regard it as changed. We are writing another bug to document this and I will relate the two.
One other thing to note, I will be verifying that custom info.plist is not stomping on the values set in Tiapp.xml.
Yes I have a custom info.plist. This was exactly what i remembered that could be causing it. I was using the custom plist to add a custom font, but since tiapp.xml already supports adding plist keys, I've deleted the custom plist. Removing the custom plist solves the problem.
Closing based on comments above. If we need another bug for some issue with the custom plist we will open one.