{ "id": "144726", "key": "TIMOB-18574", "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": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2015-02-26T01:22:01.000+0000", "created": "2015-02-13T23:44:56.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-4.0.0" ], "versions": [ { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "issuelinks": [ { "id": "46016", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "144405", "key": "TIMOB-18538", "fields": { "summary": "CLI: Fix incompatibilities with Node 0.12", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "updated": "2015-02-26T01:22:01.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": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "13600", "name": "LiveView", "description": "Live preview of Titanium apps" } ], "description": "h5.Description\r\n\r\nWhen attempting to build for iOS the SDK throws a longjohn error shown below.\r\n\r\n{code}\r\n[TRACE] : ** BUILD SUCCEEDED **\r\n/usr/local/lib/node_modules/titanium/node_modules/longjohn/dist/longjohn.js:185\r\n throw e;\r\n ^\r\nSocket.socketErrorListener (_http_client.js:269:42),Socket.emit (events.js:107:17),net.js:451:14,process._tickCallback (node.js:355:11)\r\n\r\n{code}\r\n\r\n*To work around the above error*\r\nRemove liveview from your config.json file manually, using the liveview rm clihook *may not fix the issue*. This can be found at Users -> -> .titanium. In the hooks section remove:\r\n\r\n{code}\r\n\"/Applications/Appcelerator_Studio/plugins/com.appcelerator.titanium.liveview.core_1.1.0.1414188893/node_modules/liveview/hook\"\r\n{code}\r\n\r\n\r\nIf I change the SDK in the tiapp.xml to a previous SDK that worked then the build fails instantly with the error below\r\n\r\n{code}\r\ndyld: lazy symbol binding failed: Symbol not found: __ZN2v86Object3SetENS_6HandleINS_5ValueEEES3_NS_17PropertyAttributeE\r\n Referenced from: /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150212164157/node_modules/ioslib/node_modules/node-ios-device/out/node_ios_device_v14.node\r\n Expected in: dynamic lookup\r\n\r\ndyld: Symbol not found: __ZN2v86Object3SetENS_6HandleINS_5ValueEEES3_NS_17PropertyAttributeE\r\n Referenced from: /Users/eharris/Library/Application Support/Titanium/mobilesdk/osx/4.0.0.v20150212164157/node_modules/ioslib/node_modules/node-ios-device/out/node_ios_device_v14.node\r\n Expected in: dynamic lookup\r\n\r\nTrace/BPT trap: 5\r\n{code}\r\n\r\nh5.Steps To Reproduce\r\n\r\n1. Download the latest SDK ti sdk install -b master -d\r\n2. Attempt to build to an iOS device or sim\r\n\r\nh5.Actual Result\r\n\r\nThe build will fail and throw a longjohn error\r\n\r\nh5.Expected Result\r\n\r\nThe build should not fail", "attachment": [], "flagged": false, "summary": "iOS: Unable to build to iOS sim or device (on Node 0.12)", "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: 4.0.0.201502051633\r\nTitanium SDK build: 4.0.0.v20150213141635\r\nTitanium CLI, build: 3.6.0-dev\r\nAlloy: 1.6.0-alpha\r\nXcode 6.1.1\r\nNode v0.12.0", "comment": { "comments": [ { "id": "343410", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Appears that there is still an issue with 0.12 [~fmiao] FYI.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-02-14T00:39:44.000+0000", "updated": "2015-02-14T00:43:46.000+0000" }, { "id": "343754", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Ewan,\r\n\r\nI can build to simulator and device running Node 0.12 just fine. I suspect a version problem on your system.\r\n\r\n* You must be using a master build of the SDK (e.g. v4.0.0) newer than Feb 13th's build. \r\n* You must be using a master build of the CLI (e.g. 3.6.0-dev) newer than Feb 9th.\r\n* You must be using LiveView 1.0.7 (e.g. master newer than Feb 12th) with its updated CLI hook installed. Do {{liveview rm clihook}} then {{liveview install clihook}} to reinstall the hook.\r\n\r\n", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-02-18T14:36:44.000+0000", "updated": "2015-02-18T14:36:44.000+0000" }, { "id": "343784", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "[~skypanther], I managed ti fix the issue on my machine last night after working with Feon. I had installed LiveView from Github and removed the hook but for some reason the hook was still being set to the path of my LiveView within Studio. Everything is working good on my system now. Thanks for the help", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-02-18T17:40:45.000+0000", "updated": "2015-02-18T17:40:45.000+0000" }, { "id": "343787", "author": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "body": "Great! I'm glad you're up and working. Can we close this ticket?", "updateAuthor": { "name": "skypanther", "key": "skypanther", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/New_York" }, "created": "2015-02-18T18:07:37.000+0000", "updated": "2015-02-18T18:07:37.000+0000" }, { "id": "344385", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Closing as a duplicate of TIMOB-18538", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-02-26T01:22:01.000+0000", "updated": "2015-02-26T01:22:01.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }