Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19512] iOS build: ensure app icons are 24-bit (no transparency)

GitHub Issuen/a
TypeImprovement
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2015-10-02T21:37:03.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.2.0
ComponentsiOS, Tooling
Labelsnotable
ReporterChris Barber
AssigneeChris Barber
Created2015-09-14T18:08:22.000+0000
Updated2016-02-16T21:35:48.000+0000

Description

iOS apps cannot have app icons with an alpha channel. They must be 24-bit only. The iOS build must detect if the image is 24 or 32-bit. If it's 32-bit, then it will need to either A) show a warning and automatically convert the image to a 24-bit image or B) fail the build. We may choose to default to one of these options and allow a tiapp.xml property to change behavior. Which option we go with will depend on input from [~cbarber], [~ingo], [~emerriman], [~fokkezb], and [~cng].

Comments

  1. Fokke Zandbergen 2015-09-14

    Since Apple requires it I don't see a reason to introduce another option to not fail on it.
  2. Chee Kiat Ng 2015-09-15

    ya. Since Apple will fail it, let's fail it earlier, and inform the developers.
  3. Chris Barber 2015-10-01

    node-appc PR: https://github.com/appcelerator/node-appc/pull/114
  4. Chris Barber 2015-10-02

    TiSDK master PR: https://github.com/appcelerator/titanium_mobile/pull/7266
  5. Eric Wieber 2016-02-16

    Verified implemented, using: MacOS 10.11.3 (15D21) Studio 4.5.0.201602111338 Ti SDK 5.2.0.v20160216091337 Appc NPM 4.2.3-2 Appc CLI 5.2.0-265 Alloy 1.7.33 Xcode 7.2 (7C68) Warnings are thrown for non-24-bit images and they are converted to 24-bit on build. Tested by creating several images or varying bit-age (with and without alpha) and used them to build projects.

JSON Source