Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16130] If you do not have Xcode, you cannot launch Android emulator with Titanium SDK 3.2.0GA

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2014-01-24T22:42:02.000+0000
Affected Version/sn/a
Fix Version/s2014 Sprint 01, 2014 Sprint 01 Core, Release 3.2.1, Release 3.3.0
Componentsn/a
Labelsandroid, cli, module_cli, qe-testadded
ReporterPhani Chaitanya Vempaty
AssigneeChris Barber
Created2013-12-25T19:19:06.000+0000
Updated2014-07-24T09:34:04.000+0000

Description

Attachments

FileDateSize
titanium-info2013-12-26T04:51:06.000+000010150

Comments

  1. Ritu Agrawal 2013-12-26

    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
  2. Phani Chaitanya Vempaty 2013-12-26

    Ritu, Yes, even I'm surprised as why it needs Xcode for android simulator. I've attached the output of the command you asked.
  3. Ritu Agrawal 2013-12-26

    Thanks for providing the information so quickly. We will now try to troubleshoot the issue in house based on the provided information.
  4. Phani Chaitanya Vempaty 2013-12-28

    Ritu, are you able to reproduce the issue ?
  5. Chris Barber 2013-12-28

    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?
  6. Phani Chaitanya Vempaty 2013-12-28

    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.
  7. Phani Chaitanya Vempaty 2013-12-29

    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()" whereas command is build command in this case. I'm stuck at that place as I could not find where that piece of code is which executes the load. I tried searching in the build.js file (/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.GA/cli/commands/build.js), but I cannot find the trace of the function in it.
  8. Phani Chaitanya Vempaty 2013-12-29

    The same command does work in other Mac OS X versions as in 10.9
  9. Ritu Agrawal 2014-01-05

    [~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.
  10. Phani Chaitanya Vempaty 2014-01-06

    Yes, it has command line tools installed.
  11. Ritu Agrawal 2014-01-06

    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.
  12. Chris Barber 2014-01-06

    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
  13. Wilson Luu 2014-01-08

    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
  14. Wilson Luu 2014-01-24

    Reopening ticket to rename the title to properly reflect the bug behavior.

JSON Source