Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5604] Alloy Project won't run simulator - invalid Device ID....

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionDone
Resolution Date2018-02-19T21:03:14.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsAppcelerator CLI
Labelsn/a
ReporterMartin Williamson
AssigneeShak Hossain
Created2018-02-19T14:12:36.000+0000
Updated2018-02-19T21:03:14.000+0000

Description

Project will not run on the iOS simulators, error, new projects and other projects work ok Have re-installed Appcelerator Studio and XCode and removed all XCode cache etc files. Seems to be that this one project seems to remember settings that no other project is.
Appcelerator Command-Line Interface, version 7.0.2
Copyright (c) 2014-2018, Appcelerator, Inc.  All Rights Reserved.
2018-02-19T13:59:34.205Z | TRACE  | set environment to {"registry":"https://registry.platform.axway.com","baseurl":"https://platform.axway.com"}
2018-02-19T13:59:34.207Z | TRACE  | checking credentials for existing session
2018-02-19T13:59:34.408Z | TRACE  | Attempting to load session info from config file
2018-02-19T13:59:34.416Z | TRACE  | check if session is invalidated
2018-02-19T13:59:35.115Z | TRACE  | refresh session expiry to:  1519653575041
2018-02-19T13:59:35.126Z | TRACE  | session expiry 1519653575041 false
2018-02-19T13:59:35.127Z | TRACE  | Arrow Cloud config file: /Users/Martin/.acs
2018-02-19T13:59:35.127Z | TRACE  | found Arrow Cloud login { mid: '0c6e6d3531a41e45b30fc921f85ae9e98598556a',
  publishPort: 443,
  publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
  username: 'xxxx,
  cookie: 
   [ 'connect.sid=xxxx' ],
  defaultEP: 
   { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',
     publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com
2018-02-19T13:59:35.129Z | TRACE  | Arrow Cloud cookie expiry [ 1519847135000 ]
2018-02-19T13:59:35.129Z | TRACE  | session already loaded in opts.session
2018-02-19T13:59:35.131Z | TRACE  | getCredentials() session:
{
  "ipaddress": "10.127.30.4",
  "username": "xxxx",
  "password": "<OMITTED>",
  "session": "<OMITTED>",
  "nonce": "<OMITTED>",
  "environment": {
    "name": "production",
    "isProduction": true,
    "acsBaseUrl": "https://api.cloud.appcelerator.com",
    "acsAuthBaseUrl": "https://secure-identity.cloud.appcelerator.com",
    "nodeACSEndpoint": "https://admin.cloudapp-enterprise.appcelerator.com"
  },
  "token": "<OMITTED>",
  "fingerprint": "xxxx",
  "fingerprint_description": "Mac OSX Serial Number: xxxx",
  "org_id": xxxx,
  "expiry": xxxx
}
2018-02-19T13:59:35.131Z | TRACE  | loading plugins for command "run"
2018-02-19T13:59:35.152Z | TRACE  | run search paths:
[
  "/Users/Martin/.appcelerator/install/7.0.2/package",
  "/Users/Martin/.appcelerator/install/7.0.2/package/node_modules",
  "/Users/Martin/Documents/Appcelerator_Studio_Workspace/TripHub/modules",
  "/Users/Martin/Documents/Appcelerator_Studio_Workspace/TripHub/plugins",
  "/Users/Martin/Documents/Appcelerator_Studio_Workspace/TripHub/node_modules",
  "/Users/Martin/Documents/Appcelerator_Studio_Workspace/node_modules",
  "/Users/Martin/Documents/node_modules",
  "/Users/Martin/node_modules",
  "/Users/node_modules",
  "/node_modules",
  "/Users/Martin/.appcelerator/.npm/lib/node_modules"
]
2018-02-19T13:59:35.153Z | DEBUG  | [PLUGIN-LOAD] 0ms /Users/Martin/.appcelerator/install/7.0.2/package/appc.js
2018-02-19T13:59:35.244Z | DEBUG  | [PLUGIN-LOAD] 86ms /Users/Martin/.appcelerator/install/7.0.2/package/node_modules/appc-cli-titanium/appc.js
2018-02-19T13:59:35.245Z | DEBUG  | run plugin: /Users/Martin/.appcelerator/install/7.0.2/package/node_modules/appc-cli-titanium
2018-02-19T13:59:35.249Z | DEBUG  | [PLUGIN-LOAD] 2ms /Users/Martin/.appcelerator/install/7.0.2/package/node_modules/arrow/appc.js
2018-02-19T13:59:35.254Z | DEBUG  | run plugin: /Users/Martin/.appcelerator/install/7.0.2/package/node_modules/arrow
2018-02-19T13:59:35.265Z | TRACE  | plugin "arrow" failed its "when" function check, skipping...
2018-02-19T13:59:35.265Z | TRACE  | loading plugin "titanium" for command "run" CLI options via function
2018-02-19T13:59:35.267Z | TRACE  | loading plugin "titanium" for command "run" CLI options via array
2018-02-19T13:59:35.269Z | TRACE  | executing command "run" with the following plugins:
["titanium"]
2018-02-19T13:59:35.271Z | TRACE  | session already loaded in opts.session
2018-02-19T13:59:35.272Z | DEBUG  | Titanium Downloads Last Checked: 1519000204667
[ERROR] :  Invalid "--device-id" value "8C8C272A-E34B-4C2D-87DB-FCDF061B250F"
Available iOS Simulators:
For help, run: titanium.js help build
2018-2-19 14:03:51

Operating System
  Name                        = Mac OS X
  Version                     = 10.13.3
  Architecture                = 64bit
  # CPUs                      = 4
  Memory                      = 8589934592

Node.js
  Node.js Version             = 8.9.4
  npm Version                 = 5.6.0

Titanium CLI
  CLI Version                 = 5.0.14

Titanium SDK
  SDK Version                 = 5.5.1.GA
  SDK Path                    = /Users/Martin/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA
  Target Platform             = iphone

Command
  /usr/local/bin/node /Users/Martin/.appcelerator/install/7.0.2/package/node_modules/titanium/lib/titanium.js build --sdk 5.5.1.GA --no-banner --config-file /var/folders/sc/bydy1d690nxg9f3nrtrydf880000gn/T/build-1519049025206.json --platform iphone --project-dir /Us
ers/Martin/Documents/Appcelerator_Studio_Workspace/TripHub --log-level info --device-id 8C8C272A-E34B-4C2D-87DB-FCDF061B250F --target simulator --no-banner

[ERROR] Unable to find any Xcode installations that supports at least iOS 7.1.
Martins-MacBook-Pro-3:TripHub Martin$Martins-MacBook-Pro-3:TripHub Martin$ appc run -p ios --device-id 8C8C272A-E34B-4C2D-87DB-FCDF061B250F
Appcelerator Command-Line Interface, version 7.0.2
Copyright (c) 2014-2018, Appcelerator, Inc.  All Rights Reserved.

[INFO]  tiapp.xml <sdk-version> set to 5.5.1.GA, but current Titanium SDK set to 7.0.2.GA
[INFO]  Forking correct SDK command: "/usr/local/bin/node" "/Users/Martin/.appcelerator/install/7.0.2/package/node_modules/titanium/lib/titanium.js" "build" "--sdk" "5.5.1.GA" "--no-banner" "--config-file" "/var/folders/sc/bydy1d690nxg9f3nrtrydf880000gn/T/build-1519
049025206.json" "--platform" "iphone" "--project-dir" "/Users/Martin/Documents/Appcelerator_Studio_Workspace/TripHub" "--log-level" "info" "--device-id" "8C8C272A-E34B-4C2D-87DB-FCDF061B250F" "--target" "simulator"

[ERROR] Invalid iOS simulator "8C8C272A-E34B-4C2D-87DB-FCDF061B250F"

 
2018-2-19 14:03:51

Operating System
  Name                        = Mac OS X
  Version                     = 10.13.3
  Architecture                = 64bit
  # CPUs                      = 4
  Memory                      = 8589934592

Node.js
  Node.js Version             = 8.9.4
  npm Version                 = 5.6.0

Titanium CLI
  CLI Version                 = 5.0.14

Titanium SDK
  SDK Version                 = 5.5.1.GA
  SDK Path                    = /Users/Martin/Library/Application Support/Titanium/mobilesdk/osx/5.5.1.GA
  Target Platform             = iphone

Command
  /usr/local/bin/node /Users/Martin/.appcelerator/install/7.0.2/package/node_modules/titanium/lib/titanium.js build --sdk 5.5.1.GA --no-banner --config-file /var/folders/sc/bydy1d690nxg9f3nrtrydf880000gn/T/build-1519049025206.json --platform iphone --project-dir /Us
ers/Martin/Documents/Appcelerator_Studio_Workspace/TripHub --log-level info --device-id 8C8C272A-E34B-4C2D-87DB-FCDF061B250F --target simulator --no-banner

[ERROR] Unable to find any Xcode installations that supports at least iOS 7.1.
Appcelerator Command-Line Interface, version 7.0.2
Copyright (c) 2014-2018, Appcelerator, Inc.  All Rights Reserved.

Xcode
  9.2 (build 9C40b) - Xcode default
    Install Location          = /Applications/Xcode.app/Contents/Developer
    iOS SDKs                  = 11.2
    iOS Simulators            = 11.2
    Watch SDKs                = 4.2
    Watch Simulators          = 4.2
    Supported by TiSDK 7.0.2.GA = yes
    EULA Accepted             = yes
    Teams                     = none
 
iOS Keychains
  login.keychain-db           = /Users/Martin/Library/Keychains/login.keychain-db
  System.keychain             = /Library/Keychains/System.keychain

iOS Development Certificates
/Users/Martin/Library/Keychains/login.keychain-db
  Martin Williamson (7KDXKG6X6N)
    Not valid before          = 10/17/2017 9:25 AM
    Not valid after           = 10/17/2018 9:25 AM
  Martin Williamson (7KDXKG6X6N)
    Not valid before          = 10/24/2017 5:12 PM
    Not valid after           = 10/24/2018 5:12 PM

iOS App Store Distribution Certificates
/Users/Martin/Library/Keychains/login.keychain-db
  The Anvil Group (3YT66T47FB)
    Not valid before          = 3/6/2017 2:16 PM
    Not valid after           = 3/6/2018 2:16 PM

Apple WWDR Certificate
  Apple WWDR                  = installed

Development iOS Provisioning Profiles
  iOS Team Provisioning Profile: *
    UUID                      = 6029bda9-2b95-4896-81ac-365e8e64687e
    App Prefix                = 3YT66T47FB
    App Id                    = *
    Date Created              = 2/16/2018 4:21 PM
    Date Expired              = 2/16/2019 4:21 PM
    Managed                   = Yes and is NOT compatible with Titanium
  iOS Team Provisioning Profile: com.anvilgroup.triphub
    UUID                      = ec04be00-c8f6-4a48-8ffd-dadbf6af6cb0
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.triphub
    Date Created              = 2/23/2017 9:47 AM
    Date Expired              = 2/23/2018 9:47 AM
    Managed                   = Yes and is NOT compatible with Titanium
  Pearson Travel Assist Dev
    UUID                      = a199690b-7529-4b5b-b3d3-cf4356c755f2
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.pearsontravelassist
    Date Created              = 10/17/2017 9:36 AM
    Date Expired              = 10/17/2018 9:36 AM
    Managed                   = No
  SOSAL Dev
    UUID                      = 81ef05b5-c6d7-43e1-9b48-96137811f12d
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.globetracker
    Date Created              = 10/17/2017 9:36 AM
    Date Expired              = 10/17/2018 9:36 AM
    Managed                   = No
  SOSAL Dev
    UUID                      = c6633950-d583-4c4e-8a28-162ace2a0265
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.globetracker
    Date Created              = 10/24/2017 5:26 PM
    Date Expired              = 10/24/2018 5:26 PM
    Managed                   = No
  TripHub Dev
    UUID                      = 8c8fe748-7e71-40f1-9e13-347037547913
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.triphub
    Date Created              = 2/14/2018 8:23 PM
    Date Expired              = 2/14/2019 8:23 PM
    Managed                   = No
  TripHub Dev
    UUID                      = a6e0de7f-5160-4bce-aa46-c1ec33582386
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.triphub
    Date Created              = 10/24/2017 5:23 PM
    Date Expired              = 10/24/2018 5:23 PM
    Managed                   = No
  TripHub Dev
    UUID                      = ac08fe82-3ed3-4644-8b7f-f0825df77a13
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.triphub
    Date Created              = 10/17/2017 9:36 AM
    Date Expired              = 10/17/2018 9:36 AM
    Managed                   = No
  TripHub Dev
    UUID                      = d59f9aa2-8e01-47b4-ad56-a2cfe054f9f6
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.triphub
    Date Created              = 8/24/2017 10:52 AM
    Date Expired              = 8/24/2018 10:52 AM
    Managed                   = No
 
App Store Distribution iOS Provisioning Profiles
  ANVIL SOS and Locate Dist
    UUID                      = 00381168-1f04-4ebc-bc15-f579c5c58a1f
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.globetracker
    Date Created              = 10/24/2017 3:02 PM
    Date Expired              = 3/6/2018 2:16 PM
    Managed                   = No
  ANVIL SOS and Locate Dist
    UUID                      = 3e583ca4-5992-4a53-9582-1ee312961893
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.globetracker
    Date Created              = 3/6/2017 2:29 PM
    Date Expired              = 3/6/2018 2:16 PM
    Managed                   = No
  Pearson Travel Assist Prod
    UUID                      = 1edb10de-30da-4fbd-9c12-08dde08ad307
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.pearsontravelassist
    Date Created              = 3/6/2017 2:29 PM
    Date Expired              = 3/6/2018 2:16 PM
    Managed                   = No
  TripHub Distribution
    UUID                      = a9b9226b-e297-404d-a035-04e9e1eef01e
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.triphub
    Date Created              = 3/6/2017 2:29 PM
    Date Expired              = 3/6/2018 2:16 PM
    Managed                   = No
 
Ad Hoc iOS Provisioning Profiles
  Pearson Ad Hoc
    UUID                      = 0fb00ed0-ee9c-4dc3-8bc2-e024d226bd9b
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.pearsontravelassist
    Date Created              = 3/6/2017 2:29 PM
    Date Expired              = 3/6/2018 2:16 PM
    Managed                   = No
  TripHub AdHoc
    UUID                      = 3c44e73a-7edd-434e-bb1b-7d6fe7d81f07
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.triphub
    Date Created              = 3/6/2017 2:28 PM
    Date Expired              = 3/6/2018 2:16 PM
    Managed                   = No
  TripHub AdHoc
    UUID                      = 4d3d863e-ac51-4336-9077-db3610fab6dc
    App Prefix                = 3YT66T47FB
    App Id                    = com.anvilgroup.triphub
    Date Created              = 2/14/2018 8:24 PM
    Date Expired              = 3/6/2018 2:16 PM
    Managed                   = No
 
Enterprise Ad Hoc iOS Provisioning Profiles
  None

iOS Simulators
11.2
  iPad Air (ipad)
    UDID                      = FAEB13B8-8133-45CB-B1A2-20A52B466B7E
    Supports Watch Apps       = no
  iPad Air 2 (ipad)
    UDID                      = 6BB05786-B18D-4BED-BB25-42070778CF60
    Supports Watch Apps       = no
  iPad (5th generation) (ipad)
    UDID                      = EB12D56C-D6B8-4CE2-932A-8500A2D2C1C6
    Supports Watch Apps       = no
  iPad Pro (9.7-inch) (ipad)
    UDID                      = AB5B8F19-0BC3-487C-B00D-A86A62CAD7E5
    Supports Watch Apps       = no
  iPad Pro (12.9-inch) (ipad)
    UDID                      = CDFA1845-1D65-4D52-BB74-91C05409A2C3
    Supports Watch Apps       = no
  iPad Pro (12.9-inch) (2nd generation) (ipad)
    UDID                      = 1FE079AB-10A3-4532-955F-625620B5541C
    Supports Watch Apps       = no
  iPad Pro (10.5-inch) (ipad)
    UDID                      = 3CCE2E05-34F0-45F4-B718-B552F17A909D
    Supports Watch Apps       = no
  iPhone X (iphone)
    UDID                      = A274861D-FE8B-4AB5-AA2E-7FEFE2F0EC96
    Supports Watch Apps       = yes
  iPhone 8 (iphone)
    UDID                      = BA6DDAB2-3310-46E4-BBD4-A88E2D33244F
    Supports Watch Apps       = yes
  iPhone 8 Plus (iphone)
    UDID                      = B78A4C54-B405-4410-9B9F-85BD77B6C8E8
    Supports Watch Apps       = yes
  iPhone 5s (iphone)
    UDID                      = 9F401E9D-25E0-4062-AA98-361D7B41EAFB
    Supports Watch Apps       = yes
  iPhone 6 Plus (iphone)
    UDID                      = 399AB38B-B22D-48C7-B43C-31DE61A912C4
    Supports Watch Apps       = yes
  iPhone 6 (iphone)
    UDID                      = FE8AD2E2-AA75-4659-B584-A7511B8A8660
    Supports Watch Apps       = yes
  iPhone 6s (iphone)
    UDID                      = E8691201-D146-4F02-AC53-5D6A1301FD4C
    Supports Watch Apps       = yes
  iPhone 6s Plus (iphone)
    UDID                      = 5D7CB383-B9C1-4DD3-BF6E-672C8F35F0A3
    Supports Watch Apps       = yes
  iPhone SE (iphone)
    UDID                      = D1FF1495-3916-403F-AC2F-3B42F1D914AA
    Supports Watch Apps       = yes
  iPhone 7 (iphone)
    UDID                      = 8C8C272A-E34B-4C2D-87DB-FCDF061B250F
    Supports Watch Apps       = yes
  iPhone 7 (iphone)
    UDID                      = 652A3A62-F5E0-4837-B95C-757663D16021
    Supports Watch Apps       = yes
  iPhone 7 Plus (iphone)
    UDID                      = B28F5919-D23C-4C2C-96B6-4A24E221DFBC
    Supports Watch Apps       = yes

WatchOS Simulators
4.2
  Apple Watch - 38mm (watch)
    UDID                      = 34F1082E-5B02-4650-A05F-A3E78231C107
  Apple Watch - 42mm (watch)
    UDID                      = 168C3E29-E8C2-4C9F-A477-37DF759B0D09
  Apple Watch Series 2 - 38mm (watch)
    UDID                      = 2CDED99F-ACF0-4279-AC12-C01C11558787
  Apple Watch Series 2 - 42mm (watch)
    UDID                      = 44A7F7F1-F828-4DA4-A648-D7150D1AEDDD
  Apple Watch Series 3 - 38mm (watch)
    UDID                      = E4137587-C997-4C26-8F8D-008C5387C080
  Apple Watch Series 3 - 42mm (watch)
    UDID                      = 9784054C-9CF4-479D-A051-05ECF32CDB60

Connected iOS Devices
  Martin's iPhone X
    UDID                      = 1129bb32bd5b8ee0eb55fd28cbdd3d63dc070f0b
    Type                      = iPhone (1)
    iOS Version               = 11.2.5
    CPU Architecture          = arm64

Issues
  No issues detected! Your development environment should be working perfectly!

Comments

  1. Hans Knöchel 2018-02-19

    Hey there! You are running SDK 5.5.0.GA with CLI 7.0.2 and have SDK 7.0.2.GA set as teh default:
     
       [INFO]  tiapp.xml <sdk-version> set to 5.5.1.GA, but current Titanium SDK set to 7.0.2.GA
       
    Reading the logs, you are also running on Xcode 9.2 which is not compatible with SDK 5.x. Xcode 9 was releases last September and requird some CLI changes that are present in SDK 6.3+, so please either use 5.5.1.GA for your config (appc ti setup sdk -> Select 5.5.1.GA) and downgrade your Xcode to 8.x or (highly recommended) update your project to 7.0.2.GA for full compatibility with latest tooling and CLI. You can find older Xcode versions [here](https://stackoverflow.com/a/10335943/5537752), I hope that helps!
  2. Martin Williamson 2018-02-19

    I ran the select SDK command but made no difference, I'll try Xcode 8, but I can run it on a physical iOS 11 device, just not any iOS simulators
  3. Hans Knöchel 2018-02-19

    [~anvil_martin] Thanks for the response! Yeah, most of the CLI fixes regarding Xcode 9 have actually been around Simulators (and Distribution / Ad-Hoc), so running on devices will be unaffected. Especially Unable to find any Xcode installations that supports at least iOS 7.1. look very much like what was fixed in 6.3.x - 7.0.2.
  4. Martin Williamson 2018-02-19

    [~hknoechel] Installing XCode 8.3.3 gave me ios 10.3 simulators and these now launch using CLI 7.0.2 fine, Thanks for your help. I'm pretty sure Xcode 9.1 worked with the iOS11.1 simulators but don't have time to try that as well now, if I get the chance I will see if they work too.
  5. Hans Knöchel 2018-02-19

    Happy it helps! Maybe there even was something between 9.1 and 9.2 - I do not recall every CLI ticket, so that might be it. Are you with my resolving this ticket?
  6. Martin Williamson 2018-02-19

    yes you can close this one, thanks again - we will be upgrading that project to 6.3 soon but 7 is a much bugger task again

JSON Source