{ "id": "113703", "key": "TIMOB-13745", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-05-04T00:32:09.000+0000", "created": "2013-05-02T09:02:41.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "15478", "description": "Release 3.1.1", "name": "Release 3.1.1", "archived": true, "released": true, "releaseDate": "2013-06-17" }, { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-14T18:03:26.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "13103", "name": "CLI", "description": "Node-based command line interface" } ], "description": "TEST CASE\r\n\r\nInstall latest liveview (0.1.9 as of 5/1/13)\r\n\r\n{code}\r\n$ DEBUG=liveview:* ti build -p ios -D development -T device --liveview\r\n{code}", "attachment": [], "flagged": false, "summary": "CLI never fires 'build.ios.copyResource' hook on iOS device builds", "creator": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "249895", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "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.\n\nIf you specify --liveview, then the hook should fire.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-05-02T09:31:34.000+0000", "updated": "2013-05-02T09:31:34.000+0000" }, { "id": "249896", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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. \r\n\r\nif you run the below command you will get an output of all the hooks being fired.\r\n\r\n{code}\r\n$ DEBUG=liveview:* ti build -p ios -D development -T device --liveview\r\n{code}", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-02T09:38:11.000+0000", "updated": "2013-05-02T10:00:42.000+0000" }, { "id": "249897", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "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?", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-05-02T09:51:16.000+0000", "updated": "2013-05-02T09:51:16.000+0000" }, { "id": "249898", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Sorry typo in my test case forgot to add --liveview. Try the updated test case ", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-02T10:02:06.000+0000", "updated": "2013-05-02T10:02:06.000+0000" }, { "id": "249934", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "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.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2013-05-02T16:32:59.000+0000", "updated": "2013-05-02T16:32:59.000+0000" }, { "id": "249943", "author": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Still no luck with newer sdk version\n\nTested on 3.2.0.v20130501123241\n\nBuild Command\n{code}\n$ DEBUG=liveview:* ti build -p ios -T device -D development --liveview\n{code}\n\nLog output\n{code}\n liveview:clihook Runningbuild.[PLATFORM].config hook +0ms\n liveview:clihook Runningbuild.[PLATFORM].config hook +1\n [INFO] Build type: development\n [INFO] Building for target: device\n [INFO] Building using iOS SDK: 6.1\n [INFO] Building for device family: universal\n [INFO] iOS Development Certificate: Christian Sullivan (BGY4LPG9P3)\n [INFO] Building for iOS 6.1 ; using 4.3 as minimum iOS version\n [INFO] Minimum iOS version: 4.3\n [INFO] Using default keychain\n [INFO] Debugging disabled\n [INFO] Profiler disabled\n [INFO] Initiating prepare phase\n [INFO] Forcing rebuild: /Users/euforic/test_cases/lvtest/build/iphone/build-manifest.json does not exist\n liveview:clihook Running post:build.pre.compile hook +13s\n [INFO] No Titanium Modules required, continuing\n [INFO] Performing full rebuild\n [INFO] Copying Xcode iOS files\n [INFO] Creating Xcode project directory: /Users/euforic/test_cases/lvtest/build/iphone/lvtest.xcodeproj\n [INFO] Writing Xcode project data file: Titanium.xcodeproj/project.pbxproj\n [INFO] Writing Xcode project configuration: project.xcconfig\n [INFO] Writing Xcode module configuration: module.xcconfig\n [INFO] Forcing rebuild: debugger.plist does not exist\n [INFO] Forcing rebuild: profiler.plist does not exist\n [INFO] Forcing rebuild: ApplicationDefaults.m has changed since last build\n [INFO] Writing properties to ApplicationDefaults.m\n [INFO] No module resources to copy\n [INFO] No CommonJS modules to copy\n [INFO] Copying iTunes artwork\n liveview:clihook Running pre:build.ios.writeBuildManifest hook +492ms\n [INFO] Invoking xcodebuild\n [INFO] Finished building the application in 14s 275ms\n liveview:clihook Running post:build.pre.compile hook +12s\n [LiveView] Stopping active server\n liveview:server /var/folders/nw/3zwzvtg91_l0725l060h02nr0000gn/T/1292-liveview +0ms /Users/euforic/test_cases/lvtest/Resources\n [LiveView] File Server Started on Port 8324\n [LiveView] Event Server Started on Port 8323\n [INFO] Installing application into iTunes\n [INFO] Initiating iTunes sync\n [INFO] Project built successfully in 15s 590ms\n{code}", "updateAuthor": { "name": "csullivan", "key": "csullivan", "displayName": "Christian Sullivan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-02T17:35:16.000+0000", "updated": "2013-05-02T17:35:16.000+0000" }, { "id": "412121", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-14T18:03:26.000+0000", "updated": "2017-03-14T18:03:26.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }