Closed Sophrinix closed 10 years ago
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.
I wasn't in a project at all.
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.
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
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
➜ 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
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.
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.
correct. If I don't pass a device-id, titanium will ask which simulator I want
this is an iOS 8 change