[ALOY-1299] Cannot build a new project for iOS due to missing appicons
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-08-19T17:26:14.000+0000 |
Affected Version/s | Alloy 1.7.0 |
Fix Version/s | Release 5.1.0, alloy-1.7.4 |
Components | Tooling |
Labels | qe-5.0.0, regression |
Reporter | Satyam Sekhri |
Assignee | Chris Barber |
Created | 2015-08-17T11:59:06.000+0000 |
Updated | 2015-10-29T17:52:53.000+0000 |
Description
Cannot build to iOS simulator or device. Error shown during build for missing appicons. This is a regression as the issue does not occur on 4.1.0.GA Steps to Reproduce: 1. Create a new titanium project 2. Build it for iOS simulator or device Actual Result: An error is shown
[ERROR] No suitable app icon that is at least 180x180, unable to create missing icons:
[ERROR] appicon-Small@3x.png - Used for iPhone - required size: 87x87 (29x29 @3x)
[ERROR] appicon-Small-40.png - Used for iPad - required size: 40x40 (40x40 @1x)
[ERROR] appicon-Small-40@2x.png - Used for iPhone, iPad - required size: 80x80 (40x40 @2x)
[ERROR] appicon-Small-40@3x.png - Used for iPhone - required size: 120x120 (40x40 @3x)
[ERROR] appicon-76.png - Used for iPad - required size: 76x76 (76x76 @1x)
[ERROR] appicon-76@2x.png - Used for iPad - required size: 152x152 (76x76 @2x)
[ERROR] An error occurred during build after 8s 152ms
ERROR | ti run exited with error code 1
Expected Result:
The project should build successfully for iOS
Comments
- Chee Kiat Ng 2015-08-18 I believe this issue only occurs using appc new and appc run. Putting in Tooling.
- Chris Barber 2015-08-18 A) The error is by design and B) you should never have this problem with new projects.
- Chee Kiat Ng 2015-08-18
[~cbarber], it's happening on new projects, when using appc.
Steps to reproduce
1. Create new appc titanium project: appc new 2. Enter project directory 3. Build: appc run -p ios the error will show. ti create and ti build is perfectly fine though. - Chris Barber 2015-08-18 [~cng] Either you don't have the latest SDK or you have a bad scons build. The default app icon is in the template and should exist when creating new projects: https://github.com/appcelerator/titanium_mobile/blob/master/iphone/templates/app/default/template/Resources/iphone/appicon.png.
- Satyam Sekhri 2015-08-18 The issue does not occur on a new classic project. The error is only when the newly created project is an Alloy project.
- Chris Barber 2015-08-18 PR: https://github.com/appcelerator/alloy/pull/714
- Harry Bryant 2015-10-29
Verified as fixed, I am able to create new Alloy projects and build them to iOS devices and Sims (8.4 & 9.1) without issue. Also verified that
appicon@2x.png
uses the right icon, and has been resized to 512px X 512px . Mac OSX El Capitan 10.11 (15A284) Studio: 4.4.0.201510290457 Ti SDK: 5.1.0.v20151028190028 Appc NPM: 4.2.1 Appc CLI: 5.1.0-38 Ti CLI: 5.0.4 Alloy: 1.7.4 Xcode 7.1(7B91b) Node v4.2.1 production *Closing ticket.*