[TIMOB-16130] If you do not have Xcode, you cannot launch Android emulator with Titanium SDK 3.2.0GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2014-01-24T22:42:02.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2014 Sprint 01, 2014 Sprint 01 Core, Release 3.2.1, Release 3.3.0 |
Components | n/a |
Labels | android, cli, module_cli, qe-testadded |
Reporter | Phani Chaitanya Vempaty |
Assignee | Chris Barber |
Created | 2013-12-25T19:19:06.000+0000 |
Updated | 2014-07-24T09:34:04.000+0000 |
Description
Attachments
File | Date | Size |
---|---|---|
titanium-info | 2013-12-26T04:51:06.000+0000 | 10150 |
I am a little surprised that you are trying to launch the Android simulator but the error message is related to Xcode. Can you please confirm that you are launching the Android but seeing this error message? It would help us to troubleshoot the issue if you can run this command and attach the output to this ticket. titanium info -o json
Ritu, Yes, even I'm surprised as why it needs Xcode for android simulator. I've attached the output of the command you asked.
Thanks for providing the information so quickly. We will now try to troubleshoot the issue in house based on the provided information.
Ritu, are you able to reproduce the issue ?
The Android build (for apps) does not depend on Xcode or the Xcode command line tools. What is the exact build command you are trying to run?
All I'm doing is "Run as Android Emulator" in the Titanium SDK. I'm also surprised as to why I get that error regarding Xcode as for Android it need not be required.
A quick update: I even tried to build from command line using the command : titanium build -p android -b -f --log-level debug -d test/ I tried to debug the code and I found that the command (build) loading is failing. In the file "lib/cli.js" & line number 350, we call a function load as "command.load(
The same command does work in other Mac OS X versions as in 10.9
[~pvempaty] Is it possible that your 10.9 machine has Xcode command line tools installed? CLI behavior should be identical for these two OS so trying to understand the difference in these two environments.
Yes, it has command line tools installed.
Can you try installing the same command line tools on the other machines where you are running into this issue? It would help us narrow down the issue further.
Confirmed and fixed issue. Master pull request: https://github.com/appcelerator/titanium_mobile/pull/5189 3.2.x pull request: https://github.com/appcelerator/titanium_mobile/pull/5190
Closing ticket as fixed. After moving Xcode to a different directory, verified I was able to launch the android emulators; moving Xcode to a different directory simulated Xcode not being installed or xcode-select not pointing to the correct Xcode directory. Tested on: Appcelerator Studio, build: 3.2.1.201401061716 SDK build: 3.2.1.v20140106195644, 3.3.0.v20140106195650 CLI: 3.2.1-beta Alloy: 1.3.1-beta2 OS: Mavericks 10.9.1, 10.9.2 (pre-release) Devices: android emulator 2.3.3, android emulator 4.2.2
Reopening ticket to rename the title to properly reflect the bug behavior.