[TIMOB-15411] CLI: 3.2.0 version doesn't take the arguments in account if the sdk in config is different from the one in tiapp.xml
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-12-03T07:21:20.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 21, 2013 Sprint 21 Core, Release 3.3.0 |
Components | CLI |
Labels | cli, module_cli, qe-testadded |
Reporter | Dan Tamas |
Assignee | Chris Barber |
Created | 2013-09-30T14:52:54.000+0000 |
Updated | 2014-07-31T18:27:37.000+0000 |
I'm aware of the issue and have fixed it, but the PR is pending. You may want to wait on using the master 3.2 branch until it becomes more stable.
PR: https://github.com/appcelerator/titanium_mobile/pull/4781
I am not sure why this is closed. Although the app launched on device the SDK used is not correct, IMO ~~~ tiapp.xml
[~ndastur] did not mean to close it. keep watching :)
[~cbarber] let me know if any changes made. Thanks. CLI 3.2.0-alpha3 Same result as an original report.
Changing this back to fixed. --sdk does NOT override the tiapp.xml's
Chris, thanks for the clarification. But I think this might be "bad" design in that case. Maybe I don't understand the build process well enough. But what is the point of bootstrapping to a different SDK version. Also without the CLI override for the build SDK the user has to do a sed (or equivalent) on tiapp.xml in order to use different SDKs. Surely this makes testing with RCs etc all the more difficult and in the long run means Appcelerator lose out on valuable feedback because they have made the process difficult?
[~ndastur] It's not bad design. With Titanium 3, we introduced a central "titanium" entry point that didn't exist before. Pre-3.0, you would directly invoke the builder.py. Now that we have the Titanium CLI as the global entry point, it cannot be responsible for knowing how to build an app. So you must select a Titanium SDK that knows how to build an app as well as determine if it's the right version to be used to build the app. For example, if 3.2.0 is your selected SDK, then when you build a 3.1.3.GA app, the 3.2.0 build script will read the tiapp.xml and determine it doesn't know how to build it, so it subprocesses a 3.1.3 build. The second we expose a command line override of
Verified as FIXED using : Mac :10.9.2 Appcelerator Studio, build: 3.3.0.201405011408 SDK - 3.3.0.v20140505115416 acs-1.0.14 alloy-1.4.0-dev npm-1.3.2 titanium-3.3.0-dev titanium-code-processor-1.1.1 Xcode :5.1.1 --sdk does NOT override the tiapp.xml's