{ "id": "131261", "key": "TIMOB-17204", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-06-24T23:13:13.000+0000", "created": "2014-06-04T21:24:01.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "build", "sdk" ], "versions": [ { "id": "15422", "description": "Release 3.3.0", "name": "Release 3.3.0", "archived": false, "released": true, "releaseDate": "2014-07-16" } ], "issuelinks": [ { "id": "38658", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "outwardIssue": { "id": "130931", "key": "TIMOB-17034", "fields": { "summary": "iOS: Cannot build for device from Xcode using the build project", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2017-03-21T19:24: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": "When you compile an iOS project without (or after) running it:\r\n\r\n{code}\r\n$ ti build -p ios -b\r\n{code}\r\n\r\nAnd then open the Xcode project to run it you'll get:\r\n\r\n{code}\r\nShell Script Invocation Error\r\nCommand /bin/sh failed with exit code 1\r\n{code}\r\n\r\nAnd when you open the script you see why:\r\n\r\n{code}\r\n#!/bin/sh\r\nif [ \"x$TITANIUM_CLI_XCODEBUILD\" == \"x\" ]; then\r\n /usr/local/bin/node \"/usr/local/bin/ti\" build --platform iphone --sdk 3.3.0 --no-prompt --no-progress-bars --no-banner --no-colors --build-only --xcode\r\n exit $?\r\nelse\r\n echo \"skipping pre-compile phase\"\r\nfi\r\n{code}\r\n\r\nAs you can see it has {{\\-\\-sdk 3.3.0}} instead of {{\\-\\-sdk 3.3.0.Beta}}.\r\n\r\nWhen you use the 3.2.3.GA CLI (and SDK) it works fine.\r\n\r\nThe errors seems to be here:\r\n\r\nhttps://github.com/appcelerator/titanium_mobile/blob/c6ebe0eda2087b2bf184b46107eab1292adfcafd/iphone/cli/commands/_build.js#L2020", "attachment": [], "flagged": false, "summary": "Titanium 3.3.0.Beta generates invalid custom shell scripts", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "Mavericks\r\nXcode 5\r\nSDK/CLI 3.3.0-beta", "comment": { "comments": [ { "id": "310776", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Platform team will set the priority on this. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-06-24T22:05:45.000+0000", "updated": "2014-06-24T22:05:45.000+0000" }, { "id": "310796", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "This was fixed already as a part of TIMOB-17034. Ironically, this was merged in what appears to be moments after the beta release was packaged. The fix is in 3.3.0.RC.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2014-06-24T23:13:13.000+0000", "updated": "2014-06-24T23:13:13.000+0000" }, { "id": "414343", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as duplicate.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-21T19:24:26.000+0000", "updated": "2017-03-21T19:24:26.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }