[TIMOB-19512] iOS build: ensure app icons are 24-bit (no transparency)
GitHub Issue | n/a |
---|---|
Type | Improvement |
Priority | Low |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-10-02T21:37:03.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 5.2.0 |
Components | iOS, Tooling |
Labels | notable |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2015-09-14T18:08:22.000+0000 |
Updated | 2016-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].
Since Apple requires it I don't see a reason to introduce another option to not fail on it.
ya. Since Apple will fail it, let's fail it earlier, and inform the developers.
node-appc PR: https://github.com/appcelerator/node-appc/pull/114
TiSDK master PR: https://github.com/appcelerator/titanium_mobile/pull/7266
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.