[TIMOB-14961] CLI: iOS build for Titanium SDK 3.0.0-3.1.X does not properly set deploy type for dist builds
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-08-27T21:55:12.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 18 Core, 2013 Sprint 18, Release 3.2.0 |
Components | CLI |
Labels | qe-closed-3.2.0 |
Reporter | Chris Barber |
Assignee | Chris Barber |
Created | 2013-08-27T17:20:00.000+0000 |
Updated | 2013-11-11T20:55:47.000+0000 |
Description
When building an iOS app for distribution (dist-adhoc, dist-appstore) using Titanium SDK 3.0.X or 3.1.X and using the Titanium CLI 3.2.0, the deploy type is not properly being set to "production" in the --target callback.
What happened was there was this bug and a bug in the Titanium CLI. During the Titanium CLI refactor, I fixed the second bug making this bug visible.
We can't got back and fix SDKs that have shipped, but we can augment old SDKs with runtime patches. This is where the hook system comes in. A simple hook can tie into the post-validate hook event and fix the deploy type for distribution targets.
To test: 1) Create an app 2) Set the
Pull request: https://github.com/appcelerator/titanium/pull/53
code} [DEBUG] Titanium iOS SDK directory: /Users/oromero/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA/iphone [INFO] Deploy type: production [INFO] Building for target: dist-adhoc ```