Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23811] iOS: Module build should use env variable to specify path to Titanium SDK

GitHub Issuen/a
TypeImprovement
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 6.1.0
Fix Version/sn/a
ComponentsiOS, Tooling
Labelscb-tooling
ReporterChris Barber
AssigneeChris Barber
Created2016-08-23T22:51:30.000+0000
Updated2016-08-24T02:49:07.000+0000

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. A 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. I'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. If this is not possible, then we can just resolve this ticket as invalid.

Comments

No comments

JSON Source