Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not in a ti app project, triple keeps trying to use 3.3.0.GA even though I have 3.4.0.GA selected. #66

Closed
Sophrinix opened this issue Oct 24, 2014 · 10 comments

Comments

@Sophrinix
Copy link
Collaborator

➜  ~  ti sdk
Titanium Command-Line Interface, CLI version 3.4.0, Titanium SDK version 3.4.0.GA
Copyright (c) 2012-2014, Appcelerator, Inc.  All Rights Reserved.

Please report bugs to http://jira.appcelerator.org/

SDK Install Locations:
   /Library/Application Support/Titanium
   /Users/andrewmcelroy/Library/Application Support/Titanium [default]

Installed SDKs:
   3.5.0.v20140909110917    /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.5.0.v20140909110917
   3.4.0.vSwift             /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.vSwift
   3.4.0.vCodexLabs         /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.vCodexLabs
   3.4.0.v20140923111716    /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.v20140923111716
   3.4.0.GA [selected]      /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.4.0.GA
   3.3.0.GA                 /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.3.0.GA
   3.2.3.GA.with.firefoxos  /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA.with.firefoxos
   3.2.3.GA                 /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.2.3.GA
   3.2.2.GA                 /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.2.2.GA
   3.2.1.GA                 /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.2.1.GA
   3.2.0.GA                 /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.2.0.GA
   3.1.4.experimental       /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.1.4.experimental
   3.1.3.GA                 /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.1.3.GA
   3.1.2.GA                 /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.1.2.GA
   3.0.0.GA                 /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/3.0.0.GA
   2.1.0.GA                 /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/2.1.0.GA
   1.8.2                    /Users/andrewmcelroy/Library/Application Support/Titanium/mobilesdk/osx/1.8.2

➜  ~  triple
[launching app]
[ERROR] Unable to compile a 3.3.0.GA project with Titanium SDK 3.4.0.GA
[ERROR] To build this application, set the <sdk-version> in the tiapp.xml to the current Titaniums SDK: 3.4.0.GA

Error: build failed: try with --verbose for more information.
➜  ~

@tonylukasavage
Copy link
Owner

Are you running triple against a project that was created before you switched over to using 3.4.0.GA? That's likely the cause. You can at that point delete the triple project. On your next run triple will create a new one with your selected SDK which should solve the issue.

Lemme know if that works for you.

@Sophrinix
Copy link
Collaborator Author

I wasn't in a project at all.

@tonylukasavage
Copy link
Owner

I'm not saying you were in a project. triple creates a project for the REPL to work. Delete the triple project. Also, mentioning the version of triple would help.

@Sophrinix
Copy link
Collaborator Author

Apparently there was as _tmp folder in my home directory.
I have since done the following

➜  ~  cd ~/Desktop
➜  Desktop  mkdir hi
➜  Desktop  cd hi
➜  hi  triple
[creating app]
[launching app]
[ERROR] Missing required option: --device-id <udid>
Error: build failed: try with --verbose for more information.
➜  hi  ls -la
total 0
drwxr-xr-x   3 andrewmcelroy  staff  102 Oct 24 13:34 .
drwx------+ 26 andrewmcelroy  staff  884 Oct 24 13:34 ..
drwxr-xr-x   6 andrewmcelroy  staff  204 Oct 24 13:34 _tmp
➜  hi  cd _tmp
➜  _tmp  ls
LICENSE   README    Resources tiapp.xml

➜  _tmp  triple --version
0.2.3
➜  _tmp

When I try to pass a device-id it doesn't recognize --device-id as a flag.

➜  hi  triple --verbose
[launching app]
[ERROR] Missing required option: --device-id <udid>

Available iOS Simulators:
8.0
  D2398AAC-083E-46CB-81C7-64A9F278DC4D  iPhone 4s
  7BBCBEE4-F59F-4679-B8F5-3B95551E0981  iPhone 5
  D9F22E9F-FA38-44CB-B565-C93510931854  iPhone 5s
  DB98732B-4F0E-4F4C-9B70-08CA8B671BE1  iPhone 6 Plus
  E7AE7934-BA2E-4480-B627-24148D8EA29F  iPhone 6
  13DFA164-68CD-4025-BA60-B77D6DCF7406  iPad 2
  31D66F8A-199C-4E00-9A9E-8D96B04B59C5  iPad Retina
  BB01C04E-F2D6-467D-8920-91A2A048E7EA  iPad Air
  98F38D07-CAF8-4FD9-821B-89BDF705CB59  Resizable iPhone
  6D40A79D-8E2F-4487-B739-FD5B9193D990  Resizable iPad

For help, run: titanium help build

[ERROR] Missing required option: --device-id <udid>

➜  hi  triple --device-id 'iPhone 4s'

  error: unknown option `--device-id'

➜  hi  triple device-id 'iPhone 4s'
[launching app]
[ERROR] Missing required option: --device-id <udid>
Error: build failed: try with --verbose for more information.
➜  hi  triple --device-id BB01C04E-F2D6-467D-8920-91A2A048E7EA

  error: unknown option `--device-id'

➜  hi

@tonylukasavage
Copy link
Owner

I'm curious why it would even be asking for device id since triple doesn't even attempt to support devices. Perhaps something changed in the titanium CLI? Run triple with verbose output.

triple --verbose

@Sophrinix
Copy link
Collaborator Author

➜  hi  triple --verbose
[launching app]
[ERROR] Missing required option: --device-id <udid>

Available iOS Simulators:
8.0
  D2398AAC-083E-46CB-81C7-64A9F278DC4D  iPhone 4s
  7BBCBEE4-F59F-4679-B8F5-3B95551E0981  iPhone 5
  D9F22E9F-FA38-44CB-B565-C93510931854  iPhone 5s
  DB98732B-4F0E-4F4C-9B70-08CA8B671BE1  iPhone 6 Plus
  E7AE7934-BA2E-4480-B627-24148D8EA29F  iPhone 6
  13DFA164-68CD-4025-BA60-B77D6DCF7406  iPad 2
  31D66F8A-199C-4E00-9A9E-8D96B04B59C5  iPad Retina
  BB01C04E-F2D6-467D-8920-91A2A048E7EA  iPad Air
  98F38D07-CAF8-4FD9-821B-89BDF705CB59  Resizable iPhone
  6D40A79D-8E2F-4487-B739-FD5B9193D990  Resizable iPad

For help, run: titanium help build

[ERROR] Missing required option: --device-id <udid>

➜  hi

@Sophrinix
Copy link
Collaborator Author

So I played around with this for a bit more.
I needed the pass the following into the app to get it to launch without asking me questions

➜  hi  cd _tmp
➜  _tmp  ls
LICENSE   README    Resources     build     tiapp.xml
➜  _tmp  titanium build --platform=ios --device-id=D2398AAC-083E-46CB-81C7-64A9F278DC4D

Titanium Command-Line Interface, CLI version 3.4.0, Titanium SDK version 3.4.0.GA
Copyright (c) 2012-2014, Appcelerator, Inc.  All Rights Reserved.

Please report bugs to http://jira.appcelerator.org/

... blah blah blah trim a lot of stuff ...

[INFO]  Skipping xcodebuild
[INFO]  Finished building the application in 861ms
[INFO]  Launching iOS Simulator


triple needs to accept arguments and pass them back to Titanium CLI kind of like how Alloy's jake command ended up doing.

@Sophrinix
Copy link
Collaborator Author

since this issue is no longer about the topic. I'm going to close the issue and copy and paste my last comment into a new issue.

@Sophrinix
Copy link
Collaborator Author

correct. If I don't pass a device-id, titanium will ask which simulator I want

@Sophrinix
Copy link
Collaborator Author

this is an iOS 8 change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants