skypanther / simplesim

Simplifies launching Titanium apps to the simulator/emulator
10 stars 3 forks source link

Not finding the alias #3

Closed rborn closed 9 years ago

rborn commented 9 years ago

both xcode 5 and 6 installed leads to duplicate aliases and ti won't find the alias

$ simplesim -l
*******************************************************************
* SimpleSim - simplified app launching for Titanium turns this    *
*      ti build -p ios -C 779CA28E-FE7D-4B2F-AF49-48CBCBC7B8D5    *
* into this                                                       *
*      ti build -p ios -C ipad_2                                  *
* Generically:                                                    *
*      ti build -p <platform> -C <alias>                          *
*******************************************************************

Emulator aliases (full name):
   2_3_3_800          2_3_3_800
   4                  Nexus One (Google)
   titanium_14_HVGA   titanium_14_HVGA
   titanium_14_WVGA854     titanium_14_WVGA854
   titanium_24_WVGA854     titanium_24_WVGA854
   geny_4_3           Nexus One - 4.3 - API 18 - 480x800
   geny_2_3_7         Nexus One - 2.3.7 - API 10 - 480x800
   geny_4_2_2         GalaxyS4Mini
   geny_4_3           Tablet 10 - 4.3 - API 18 - 2560x1600
   geny_2_3_7         Samsung Galaxy S2 - 2.3.7 - API 10 - 480x800

Simulator aliases (full name - UDID):
   iphone_4s          iPhone 4s     (A90CE429-AA89-402A-AA6B-507433299E94)
   iphone_5           iPhone 5      (4E0E4D49-0E8B-4355-93CB-EBC3A8A42910)
   iphone_5s          iPhone 5s     (7AE4D0A4-02D2-4E08-B83D-38DA8C25F89A)
   ipad_2             iPad 2        (8BE1ABB1-BFF9-4166-82AF-6462BC73D01C)
   ipad_retina        iPad Retina   (A83D67C6-5097-4226-8A18-C6CC6727407A)
   ipad_air           iPad Air      (998D5600-A421-4FF3-AF72-40BDDF6BB62D)
   iphone_4s          iPhone 4s     (EAF24EBF-F63B-4368-8555-7FE56E806A88)
   iphone_5           iPhone 5      (52D7C904-6843-44D3-A3D7-C095C8CE120B)
   iphone_5s          iPhone 5s     (FE644A4F-90E2-451F-9178-8921FDECAFD8)
   iphone_6_plus      iPhone 6 Plus (5D63319E-3F62-4482-9FD6-CB5EF6C63969)
   iphone_6           iPhone 6      (383BFB77-18B7-462C-B9DD-9E3B245F2A6D)
   ipad_2             iPad 2        (8A2BB69E-0067-44D5-805C-727DC786762A)
   ipad_retina        iPad Retina   (2B27405D-7E0C-4923-AB9B-1655EFEB2E2E)
   ipad_air           iPad Air      (FCBEB61D-176D-4197-BD75-9CDEBD9EB36F)
   resizable_iphone   Resizable iPhone   (9A6A7501-C1A2-41D0-8E08-83E92A603FA1)
   resizable_ipad     Resizable iPad     (B4A5E260-DC5C-4663-BB09-05D64A57CE5B)

and then

$ ti build -p ios -C iphone_5
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/

[ERROR] Invalid "--device-id" value "iphone_5"

However I edited the simplesim.json to avid the duplicate and still it doesn't find the alias. Any idea?

skypanther commented 9 years ago

I updated the module today to note the location of the hook differently. I wonder if I messed that up. Check the "hooks" section of the ~/.titanium/config.json file and look for the simplesim/hooks line. Does that point to the actual location where the module is installed on your system? If you do an ls of that directory, do you see the hooks.js file?

As for the multi-Xcode situation, I'll have to think about how to best solve that.

rborn commented 9 years ago

Updated to 0.0.3 - the kook is there after simplesim generate and it takes the first in the list (in this case xcode 5)

skypanther commented 9 years ago

To be fixed in 0.0.4 -- I'll add a suffix to the alias name for iOS versions less than the max installed (so, in your example above, iOS 8.1 simulators would not get a suffix but the 7.1 sims would have "_7_1" appended).