{ "id": "162771", "key": "TIMOB-23811", "fields": { "issuetype": { "id": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "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": "2016-08-23T22:51:30.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "cb-tooling" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2016-08-24T02:49:07.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": "10206", "name": "iOS", "description": "iOS Platform" }, { "id": "10207", "name": "Tooling" } ], "description": "iOS modules have a {{titanium.xcconfig}} which has a {{TITANIUM_SDK}} variable with a baked in absolute path. The problem is if the SDK moves or is updated, then this path is not updated.\r\n\r\nA better solution is to default {{TITANIUM_SDK}} to the absolute path, but then overwrite it with an environment variable set by the iOS module build with the absolute path to the current SDK used to build the module.\r\n\r\nI'm not 100% sure how to structure the xcconfig file so that the default absolute path can be overwritten by the env var, but it may be as easy as setting the {{TITANIUM_SDK = $(TI_SDK_PATH)}} in the {{titanium.xcconfig}}, then set the create a new {{defaults.xcconfig}} with a {{TITANIUM_SDK = /path/to/sdk}} and make sure the {{default.xcconfig}} is loaded before the {{titanium.xcconfig}}.\r\n\r\nIf this is not possible, then we can just resolve this ticket as invalid.", "attachment": [], "flagged": false, "summary": "iOS: Module build should use env variable to specify path to Titanium SDK", "creator": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "environment": null, "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }