Titanium SDK ↔ Appcelerator Cloud Build: Why does local SDK path resolution fail in production?
0 reputation · 14 Aug 2020, 23:53 UTC
0 reputation · 14 Aug 2020, 23:53 UTC
When building a Titanium application locally with the CLI, the tiapp.xml can reference a sdkPath that points to a custom SDK installation. The same project, when submitted to Appcelerator Cloud Build, ignores this attribute and attempts to resolve the SDK from its own build nodes. This mismatch leads to “SDK not found” or “API key validation” failures that do not appear during local builds.
The goal is to determine whether the cloud build service should honor the sdkPath defined in tiapp.xml or enforce a strict SDK version policy. The uncertainty lies in the documented behavior: the SDK documentation states that sdkPath is optional and only used by the local CLI, yet several community posts report that the cloud build silently overrides it.
Key constraints:
Unresolved questions:
sdkPath in tiapp.xml, or is this a configuration oversight?sdkPath is missing during cloud builds?The cloud build service runs on standardized Appcelerator nodes that have a pre‑installed SDK version. The sdkPath attribute in tiapp.xml is only consulted by the local Titanium CLI; Cloud Build does not read the local file system of the project, so any path reference is ignored.
Likely explanation: Cloud Build enforces a fixed SDK version defined in the project settings and validates the API key against a registered license. Because the build node’s SDK directory is immutable, it cannot resolve a custom sdkPath that points to a directory on your workstation.
Confirmed facts:
sdkPath attribute is documented as optional and intended for local development only.Steps to verify the issue:
tiinfo locally to display the SDK version and the sdkPath value from tiapp.xml.If the SDK version in the dashboard matches the local version, the problem may be related to API key registration rather than the path. Please provide the SDK version configured for Cloud Build, as this detail determines whether the recommendation is to adjust the project SDK setting or to use a different build environment.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.