Titanium JIRA Archive
Alloy (ALOY)

[ALOY-1321] iOS: packaged app icons for new projects needs to be updated

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-01-13T23:59:50.000+0000
Affected Version/salloy 1.7.31
Fix Version/sRelease 5.2.0, alloy 1.7.32
ComponentsSamples & Templates
Labelsn/a
ReporterChee Kiat Ng
AssigneeFeon Sua Xin Miao
Created2015-10-29T01:31:23.000+0000
Updated2016-02-02T22:30:00.000+0000

Description

Since TI SDK 5.0.0, we support app icons resizing, placing them into assets catalog etc, so we should do a clean up on the app icons to reduce the number of warnings being shown now. 1. All app icons should NOT have alpha channel. 2. Remove unsupported app icons. See current trace when there's no DefaultIcon.png or DefaultIcon-ios.png:
[INFO]  Creating app icon set
[DEBUG] Unsupported app icon Resources/iphone/appicon-176@2x.png, skipping
[DEBUG] Unsupported app icon Resources/iphone/appicon-60.png, skipping
[WARN]  Resources/iphone/appicon-60@2x.png contains an alpha channel and will be flattened against a white background
[WARN]  Resources/iphone/appicon-60@3x.png contains an alpha channel and will be flattened against a white background
[DEBUG] Unsupported app icon Resources/iphone/appicon-72.png, skipping
[DEBUG] Unsupported app icon Resources/iphone/appicon-72@2x.png, skipping
[WARN]  Resources/iphone/appicon-76.png contains an alpha channel and will be flattened against a white background
[WARN]  Resources/iphone/appicon-Small-40.png contains an alpha channel and will be flattened against a white background
[WARN]  Resources/iphone/appicon-Small-40@2x.png contains an alpha channel and will be flattened against a white background
[DEBUG] Unsupported app icon Resources/iphone/appicon-Small-50.png, skipping
[DEBUG] Unsupported app icon Resources/iphone/appicon-Small-50@2x.png, skipping
[WARN]  Resources/iphone/appicon-Small.png contains an alpha channel and will be flattened against a white background
[WARN]  Resources/iphone/appicon-Small@2x.png contains an alpha channel and will be flattened against a white background
[DEBUG] Unsupported app icon Resources/iphone/appicon@2x.png, skipping
*OR* we can just remove all the ios app icons in the assets folder, and only have DefaultIcon.png in the root of the project to avoid confusion.

Comments

  1. Feon Sua Xin Miao 2015-10-29

    I would go with removing all the ios app icons in assets folder, and developers just need to create one DefaultIcon.png.
  2. Feon Sua Xin Miao 2016-01-07

    PR: https://github.com/appcelerator/alloy/pull/750 Functional Test: 1. Create a new project 2. Looking into app/assets/iphone folder, there should be no appicon* and iTunesArtwork files
  3. Tim Poulsen 2016-01-07

    Noooo!! Apple's HIG recommends that developers use resolution-specific app icons. Your icon for an @3x device should not be the same as your @2x or @1x device. They recommend not simply rescaling a single image. With this change, you're forcing Ti developers to do just what Apple recommends against. Adding informational messages is fine. Generating missing icons is great. But you need to continue to support custom, per device/per resolution icons for developers who want to use them.
  4. Tim Poulsen 2016-01-07

    I looked at the PR and it looks like you're just removing these icons from the Alloy template. Never mind.
  5. Tim Poulsen 2016-01-07

    BTW, using SDK 5.1.1.GA I get no iOS app icons. This is for an existing, published app, with all the icon files there. I get warnings from the Titanium CLI about alpha channels in each of the icons (there aren't any, I've pre-optimized all icon files with ImageOptim.app, and iTunes Connect would have prevented me from publishing the app if there were any alpha channels). It supposedly flattens the images. But I end up with no icons on the simulator (dev build), a device (test build), and an ad-hoc build (production).
  6. Feon Sua Xin Miao 2016-01-07

    [~skypanther], I unable to reproduce the issues, do you see any icon files under build/iphone/Assets.xcassets/AppIcon.appiconset ?
  7. Tim Poulsen 2016-01-07

    Sorry Feon, I had to get my ad-hoc build out. I dropped back to 5.0.2.GA, cleaned the project, built it and got icons fine. When I have time, I will investigate and file a ticket if necessary.
  8. Feon Sua Xin Miao 2016-01-13

    PR merged.
  9. Eric Wieber 2016-02-02

    Verified fixed, using: MacOS 10.11.3 (15D21) Studio 4.5.0.201601262138 Ti SDK 5.2.0.v20160202103508 Appc NPM 4.2.3-1 Appc CLI 5.2.0-239 Alloy 1.7.33 Xcode 7.2 (7C68) There are no longer any app icon or iTunes artwork files in newly created Alloy projects.

JSON Source