[ALOY-1321] iOS: packaged app icons for new projects needs to be updated
|Affected Version/s||alloy 1.7.31|
|Fix Version/s||Release 5.2.0, alloy 1.7.32|
|Components||Samples & Templates|
|Reporter||Chee Kiat Ng|
|Assignee||Feon Sua Xin Miao|
DescriptionSince 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:
*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.[INFO] Creating app icon set [DEBUG] Unsupported app icon Resourcesfirstname.lastname@example.org, skipping [DEBUG] Unsupported app icon Resources/iphone/appicon-60.png, skipping [WARN] Resourcesemail@example.com contains an alpha channel and will be flattened against a white background [WARN] Resourcesfirstname.lastname@example.org 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 Resourcesemail@example.com, 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-Smallfirstname.lastname@example.org 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-Smallemail@example.com, 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 Resourcesfirstname.lastname@example.org, skipping
- 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.
- Feon Sua Xin Miao 2016-01-07
1. Create a new project
2. Looking into
app/assets/iphonefolder, there should be no
- 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.
- 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.
- 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).
- Feon Sua Xin Miao 2016-01-07
[~skypanther], I unable to reproduce the issues, do you see any icon files under
- 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.
- Feon Sua Xin Miao 2016-01-13 PR merged.
- Eric Wieber 2016-02-02 Verified fixed, using: MacOS 10.11.3 (15D21) Studio 184.108.40.206601262138 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.