{ "id": "138395", "key": "TIMOB-17933", "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": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2019-10-02T05:26:21.000+0000", "created": "2014-10-22T20:05:00.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "TCSupport" ], "versions": [ { "id": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2019-10-21T15:41:38.000+0000", "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" } }, "components": [ { "id": "10207", "name": "Tooling" } ], "description": "h4. Instructions\r\nFrom the command line, create an empty project with iphone and android natures/targets. You should be able to build for ios {code}ti build -p ios{code} and for android {code}ti build -p android{code} without a problem\r\n\r\nNow open up the tiapp.xml and change {code}true{code} to {code}false{code} and build again for ios {code}ti build -p ios{code}\r\n\r\nAn error occurs. {code}[ERROR] Failed to run command \"build\"\r\n[ERROR] TypeError: Cannot read property 'cyan' of undefined\r\n at iOSBuilder.loginfo (/Users/stephenfeather/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA/iphone/cli/commands/_build.js:1603:73)\r\n at /Users/stephenfeather/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA/node_modules/node-appc/node_modules/async/lib/async.js:610:21\r\n at /Users/stephenfeather/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA/node_modules/node-appc/node_modules/async/lib/async.js:249:17\r\n at iterate (/Users/stephenfeather/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA/node_modules/node-appc/node_modules/async/lib/async.js:149:13)\r\n at /Users/stephenfeather/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA/node_modules/node-appc/node_modules/async/lib/async.js:160:25\r\n at /Users/stephenfeather/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA/node_modules/node-appc/node_modules/async/lib/async.js:251:21\r\n at /Users/stephenfeather/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA/node_modules/node-appc/node_modules/async/lib/async.js:615:34\r\n at iOSBuilder.initialize (/Users/stephenfeather/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA/iphone/cli/commands/_build.js:1580:2)\r\n at /Users/stephenfeather/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA/node_modules/node-appc/node_modules/async/lib/async.js:610:21\r\n at /Users/stephenfeather/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA/node_modules/node-appc/node_modules/async/lib/async.js:249:17\r\n{code}\r\n\r\nIf you change the android target to false, tooling will still blindly build you a nice new android apk.\r\n\r\nh4. Impact\r\nProjects setup for iOS only can be tested against ios/android without modification. Projects built for android only (lets say on a windows system and then moved to the mac) need to be modified. The modification is fine, and understandable, but the error message above is not.\r\n\r\nh4. Solution\r\nTooling should check the tiapp.xml to see if an appropriate deployment target exists that matches the target from the command line switches/parameters and inform the user if the original project is missing any components. ", "attachment": [], "flagged": false, "summary": "Sanity check required by evaluating deployment-targets in tiapp.xml", "creator": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "environment": "{code}\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.9.5\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 24.0GB\r\n\r\nNode.js\r\n Node.js Version = 0.10.29\r\n npm Version = 1.4.14\r\n\r\nTitanium CLI\r\n CLI Version = 3.4.0\r\n node-appc Version = 0.2.14\r\n{code}", "comment": { "comments": [ { "id": "451755", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Great news! Sometime in the past 5 years, this was magically fixed.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2019-10-02T05:26:21.000+0000", "updated": "2019-10-02T05:26:21.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }