[ALOY-1046] MobileWeb: Unable to package the sample alloy widget app
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2014-11-26T01:56:44.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | Alloy 1.4.0 |
| Components | Testing |
| Labels | qe-3.3.0, qe-closed-3.3.0, qe-manualtest |
| Reporter | Paras Mishra |
| Assignee | Chris Barber |
| Created | 2014-06-04T06:15:12.000+0000 |
| Updated | 2014-11-26T01:56:44.000+0000 |
Description
MobileWeb: Unable to package the sample alloy widget app
Steps to reproduce:
1. Copy the app from https://github.com/appcelerator/alloy/tree/master/test/apps/widgets/widget_buttongrid into alloy project app folder
2. Run the app
Expected:
App should be packaged to the selected directory.
Actual:
Packaging fails and log file is attached as errorlog.txt
Attachments
| File | Date | Size |
|---|---|---|
| errorlog.txt | 2014-06-04T06:15:12.000+0000 | 44329 |
Error appears to be:
Error: ENOENT, no such file or directory '/Users/paras.mishra/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140603152512/mobileweb/templates/app/default/Resources/mobileweb/appicon.png' at fs.openSync (fs.js:427:18) at fs.readFileSync (fs.js:284:15) at exports.copyFileSync (/Users/paras.mishra/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140603152512/node_modules/node-appc/lib/fs.js:170:28) at /Users/paras.mishra/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.v20140603152512/mobileweb/cli/hooks/package_web.js:71:11 at /usr/local/lib/node_modules/titanium/lib/hook.js:235:13 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:551:21 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:227:13 at iterate (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:134:13) at async.eachSeries (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:150:9) at _asyncMap (/usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:226:9) --------------------------------------------- at /Users/paras.mishra/Documents/Appcelerator_Studio_Workspace_table/buttongrid/plugins/ti.alloy/hooks/alloy.js:142:11 at /usr/local/lib/node_modules/titanium/node_modules/node-appc/lib/async.js:35:6 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:232:13 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:119:25 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:24:16 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:229:17 at /usr/local/lib/node_modules/titanium/node_modules/async/lib/async.js:516:34 at /Users/paras.mishra/Documents/Appcelerator_Studio_Workspace_table/buttongrid/plugins/ti.alloy/hooks/alloy.js:90:9Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5773 3_X_X pull request: https://github.com/appcelerator/titanium_mobile/pull/5774
To test, create a mobile web project, delete the project's appicon.png from both the Resources and Resources/mobileweb dirs, then build any mobileweb app for any target.
Alloy master pull request: https://github.com/appcelerator/alloy/pull/435 Alloy 1_4_X pull request: https://github.com/appcelerator/alloy/pull/436
Tested titanium_mobile and alloy pull requests and both work as expected.
Verified as fixed, closing the issue Verified the fix on: SDK: 3.3.0.v20140617161713 CLI version : 3.3.0-rc OS : MAC OSX 10.9.2 Alloy: 1.4.0-rc ACS: 1.0.14 npm:1.3.2 LiveView: 1.0.4 Appcelerator Studio, build: 3.3.0.201406171619 titanium-code-processor: 1.1.1 XCode : 5.1.1