{ "id": "145016", "key": "TIMOB-18598", "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": null, "resolutiondate": null, "created": "2015-02-20T18:11:00.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "engSchedule", "qe-3.5.1", "regression" ], "versions": [ { "id": "16711", "description": "Release 3.5.1", "name": "Release 3.5.1", "archived": false, "released": true, "releaseDate": "2015-03-06" }, { "id": "16904", "description": "Release 5.0.2", "name": "Release 5.0.2", "archived": true, "released": true, "releaseDate": "2015-10-01" } ], "issuelinks": [ { "id": "47327", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "146601", "key": "TISTUD-7385", "fields": { "summary": "LiveView sees (dot)files as languages", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "updated": "2019-08-27T15:40:57.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10202", "name": "Android", "description": "Android Platform" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "h5.Description\r\n\r\n*This does not occur in Studio*\r\n\r\nWhen attempting to build using LiveView from the CLI, opening the app fails on both iOS and Android. On iOS the build fails with a runtime error as shown below\r\n\r\n{code}\r\n[ERROR] Script Error Couldn't find module: localeStrings for architecture: arm64\r\n{code}\r\n\r\nand on Android it fails with a runtime error shown below\r\n\r\n{code}\r\n[ERROR] TiExceptionHandler: (main) [9953,9963] ----- Titanium Javascript Runtime Error -----\r\n[ERROR] TiExceptionHandler: (main) [0,9963] - In app.js:1,69\r\n[ERROR] TiExceptionHandler: (main) [0,9963] - Message: Uncaught Error: [LiveView] File Server unavailable. Host Unreachable @ 172.16.0.170:8324\r\n[ERROR] TiExceptionHandler: [LiveView] Please ensure your device and computer are on the same network and the port is not blocked.\r\n[ERROR] TiExceptionHandler: (main) [1,9964] - Source: ponseText:!1,c=!0;else if(r-(new Date).getTime()<=0)throw i=!1,c=!0,new Error(\r\n[ERROR] V8Exception: Exception occurred at app.js:1: Uncaught Error: [LiveView] File Server unavailable. Host Unreachable @ 172.16.0.170:8324\r\n[ERROR] V8Exception: [LiveView] Please ensure your device and computer are on the same network and the port is not blocked.\r\n[DEBUG] HTTPClient: The persistent handle is disposed.\r\n{code}\r\n\r\nIf LiveView is run through Studio then there are no errors. *This only occurs in the CLI*\r\n\r\nThis is because the *LiveView server is not started* when building from the CLI.\r\n\r\nThis *is a regression* as in previous versions of LiveView I was able to launch from the CLI with no errors.\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. Build an existing project in the CLI using the ti build command with --liveview \r\n2. Open the app on device\r\n\r\nh5.Actual Result\r\n\r\n2. Depending on the platform the app will throw one of the errors shown above\r\n\r\nh5.Expected Result\r\n\r\n2. The app should not throw an error, or LiveView should not be allowed to be used in the CLI", "attachment": [], "flagged": false, "summary": "LiveView: App does not launch when building from the CLI with LiveView enabled", "creator": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "subtasks": [], "reporter": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "environment": "Mac OSX 10.10.2\r\nAppcelerator Studio, build: 3.4.2.201502181619\r\nTitanium SDK build: 3.5.1.v20150219140555\r\nTitanium CLI, build: 3.4.2-alpha\r\nAlloy: 1.5.1\r\nLiveView 1.0.7\r\n\r\nXcode 6.1.1\r\niPhone 6 Plus (8.1.3)\r\nAndroid build tools 21.1.2\r\nNexus 5 (5.0.1)", "comment": { "comments": [ { "id": "362510", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Might be related to Node 0.12. A rebuild often fixes it but its annoying when using the CLI with LiveView.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-09-08T12:53:00.000+0000", "updated": "2015-09-08T12:53:00.000+0000" }, { "id": "364618", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "It seems to be not just CLI, but also when used from Studio:\r\nhttps://community.appcelerator.com/topic/3392/liveview-error-script-error-couldn-t-find-module-localestrings-for-architecture-x86_64/2", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-09-22T13:09:56.000+0000", "updated": "2015-09-22T13:09:56.000+0000" }, { "id": "364628", "author": { "name": "welsh11", "key": "welsh11", "displayName": "Byron Davies", "active": true, "timeZone": "Europe/London" }, "body": "Hi there.\r\n\r\nThat was me.\r\n\r\nMy environment is:\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 32.0GB\r\n\r\nNode.js\r\n Node.js Version = 0.10.40\r\n npm Version = 1.4.28\r\n\r\nTitanium CLI\r\n CLI Version = 5.0.3\r\n node-appc Version = 0.2.31\r\n\r\nI've run SDK 5.0.0.GA as well as 5.0.0.v20150920030708, still no joy.\r\n\r\nThe particular app I am testing is iOS only, so I'm not sure if it's an android issue as well at this point.\r\n\r\nSo far I only get this issue on the iOS simulator, seems to run on the device, although when it does the code reload it either crashes or (in my case because I have only landscape orientations in my tiapp.xml file) the app appears upside-down.\r\n\r\n", "updateAuthor": { "name": "welsh11", "key": "welsh11", "displayName": "Byron Davies", "active": true, "timeZone": "Europe/London" }, "created": "2015-09-22T13:26:43.000+0000", "updated": "2015-09-22T13:26:43.000+0000" }, { "id": "365840", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "I can reproduce this on {{liveview@1.0.7}} but not {{1.0.8}}. \r\nNode: v0.12.7", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2015-10-05T22:34:12.000+0000", "updated": "2016-10-18T16:13:44.000+0000" }, { "id": "399233", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "[~fmiao] so this is fixed nowadays?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-10-18T12:55:02.000+0000", "updated": "2016-10-18T12:55:02.000+0000" }, { "id": "399263", "author": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "body": "[~hansknoechel], are you able to reproduce the issue? I wasn't.", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2016-10-18T16:15:05.000+0000", "updated": "2016-10-18T16:15:05.000+0000" }, { "id": "405364", "author": { "name": "colorhat", "key": "colorhat", "displayName": "Tobias Høegh", "active": true, "timeZone": "Europe/Oslo" }, "body": "Node: v0.12 is not supported by apcl. any more. So I use Node v4.6.2 - but I'm getting this error:\r\n\r\n[ERROR] Script Error Couldn't find module: localeStrings for architecture: arm64\r\n\r\nI have the newest versions:\r\nMac OS v10.12.2\r\nTi CLI v5.0.11\r\nTi SDK v6.0.1.GA\r\nAppc v6.1.0\r\nLiveView v1.0.9\r\n\r\nI got this error many versions back. So this is not a new thing.\r\n\r\nAny one have a solution?", "updateAuthor": { "name": "colorhat", "key": "colorhat", "displayName": "Tobias Høegh", "active": true, "timeZone": "Europe/Oslo" }, "created": "2017-01-26T09:18:34.000+0000", "updated": "2017-01-26T09:19:07.000+0000" }, { "id": "419921", "author": { "name": "cornflakesuperstar", "key": "cornflakesuperstar", "displayName": "Jason Kotchoff", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same issue.\r\n\r\nMy Environment:\r\nMac OSX - 10.12.4 - 64 bit\r\nNode: 2.14.7\r\nappc cli: 6.2.1\r\nAppcelerator studio: 4.8.1.201612050850\r\nLiveview: ? (not sure how to check - it would be whatever studio comes with)\r\n\r\nAfter cleaning out my build directory, trying to run my project with liveview on the iOS simulator failed with the error:\r\n\r\n{noformat}[ERROR] : CompileC build/Intermediates/StockLight.build/Debug-iphonesimulator/StockLight.build/Objects-normal/x86_64/TiButtonUtil.o Classes/TiButtonUtil.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n{noformat}\r\n\r\nOn the face of it, this sounds similar to the error:\r\n[https://forum.ionicframework.com/t/cordova-cdvviewcontroller-h-file-not-found-in-xcode-7-1-beta/32232/47]\r\n\r\nAfter subsquently building (successfully) without liveview, I tried liveview again on the iOS simulator and that error went again and I was instead presented with:\r\n\r\n{noformat}\r\n[ERROR] : Script Error {\r\n[ERROR] : column = 22;\r\n[ERROR] : line = 586;\r\n[ERROR] : message = \"[LiveView] File Server unavailable. Host Unreachable @ 127.0.0.1:8324\\n[LiveView] Please ensure your device and computer are on the same network and the port is not blocked.\";\r\n[ERROR] : sourceURL = \"file:///Users/jason/Library/Developer/CoreSimulator/Devices/3B6D5E3C-00D3-41D0-BB83-730C04C51EE4/data/Containers/Bundle/Application/EEF0EBD0-326D-4FB1-8987-2F5AB5F43562/StockLight.app/app.js\";\r\n[ERROR] : }\r\n{noformat}\r\n\r\n\r\nAs per:\r\n[http://stackoverflow.com/questions/35237172/can-we-use-appcelerator-titanium-liveview-in-ios-devices]\r\n\r\nI then tried running:\r\n\r\n{noformat}\r\n /Applications/Appcelerator\\ Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1476939755/node_modules/liveview/bin/liveview server status\r\n{noformat}\r\n\r\n\r\nwhich correctly showed a single running server. I stopped it manually using that liveview command and then re-launched from Appcelerator Studio but again received the File Server unavailable error.\r\n\r\nGiving up.\r\n\r\n!https://s7.postimg.org/k27fbrtjf/Screen_Shot_2017-05-18_at_11.20.53_am.png!", "updateAuthor": { "name": "cornflakesuperstar", "key": "cornflakesuperstar", "displayName": "Jason Kotchoff", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-05-18T01:50:51.000+0000", "updated": "2017-05-18T01:51:23.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }