[TIMOB-13745] CLI never fires 'build.ios.copyResource' hook on iOS device builds
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-05-04T00:32:09.000+0000 |
Affected Version/s | Release 3.1.1, Release 3.1.2, Release 3.2.0 |
Fix Version/s | n/a |
Components | CLI |
Labels | n/a |
Reporter | Christian Sullivan |
Assignee | Chris Barber |
Created | 2013-05-02T09:02:41.000+0000 |
Updated | 2017-03-14T18:03:26.000+0000 |
Description
TEST CASE
Install latest liveview (0.1.9 as of 5/1/13)
$ DEBUG=liveview:* ti build -p ios -D development -T device --liveview
Could this be related to this return statement: https://github.com/appcelerator/liveview/blob/master/hook/lvhook.js#L22. Regardless of whether this is the cause, this return should not be here. If you specify --liveview, then the hook should fire.
Nope I tested removing the flag and still a no go. I added the catch so liveview would not be evaluated for ever cli call. This should fix the conflict in cli color libraries and also prevent unneeded code evaluation. if you run the below command you will get an output of all the hooks being fired.
If I run your command above, then process.argv.indexOf('--liveview') will equal === -1 and the init() function returns before the hooks is even added. You must either remove the return call or add --liveview to the command. What am I missing here?
Sorry typo in my test case forgot to add --liveview. Try the updated test case
OK, I think I know what's going on. There was some unfinished code in 3.1.0.GA with copying files for development deploy-type device builds. It was fixed in TIMOB-13553. You MUST use a master branch build from AFTER April 19th, 2013.
Still no luck with newer sdk version Tested on 3.2.0.v20130501123241 Build Command
Log output
Closing ticket as fixed.