Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-26495] Cannot load iOS 12.0 simulator after upgrading to Xcode 10 and Ti SDK 7.4.0.GA

GitHub Issuen/a
TypeBug
PriorityCritical
StatusResolved
ResolutionNot Our Bug
Resolution Date2018-11-14T11:22:53.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterKai Lu
AssigneeJan Vennemann
Created2018-10-10T00:59:13.000+0000
Updated2019-10-03T08:49:48.000+0000

Description

Steps to Reproduce

create a new project tap on run and watch it fail Error message in the console: [ERROR] : Simulator is not available

Actual Result

[DEBUG] : Removing empty directories [INFO] : Invoking xcodebuild [DEBUG] : Invoking: DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build -target 'Contractor WorkZone' -configuration Debug -scheme Contractor_WorkZone -derivedDataPath /Volumes/BOX/Projects/Titanium/WorkZone/build/iphone/DerivedData -UseNewBuildSystem=YES OBJROOT=/Volumes/BOX/Projects/Titanium/WorkZone/build/iphone/build/Intermediates SHARED_PRECOMPS_DIR=/Volumes/BOX/Projects/Titanium/WorkZone/build/iphone/build/Intermediates/PrecompiledHeaders SYMROOT=/Volumes/BOX/Projects/Titanium/WorkZone/build/iphone/build/Products -destination 'platform=iOS Simulator,id=DD7ADA2D-8D55-4275-A373-37FDE844367C,OS=12.0' ONLY_ACTIVE_ARCH=1 [INFO] : Finished building the application in 12s 747ms [INFO] : Launching iOS Simulator [ERROR] : Simulator is not available

Expected Result

Simulator should boot up

Attachments

FileDateSize
.log2018-10-10T01:00:43.000+00008607292
customer-02(appc ti build -p ios).txt2018-10-29T16:52:40.000+00006205
customer-02(appc ti info).txt2018-10-29T16:52:40.000+00009259
customer-02(appc ti info -t ios).txt2018-10-29T16:52:40.000+00004221
diagnostic_log.log2018-10-23T12:11:20.000+0000351995
diagnostic25920695823889573.log2018-10-10T01:01:16.000+00002446909
trace_log_12_selected.rtf2018-10-23T00:13:02.000+00008891
trace_log.rtf2018-10-23T00:13:21.000+00002030174
trace.txt2018-10-23T00:02:48.000+000072317

Comments

  1. David van de Meer 2018-10-10

    I have seen this error a few times - only happens with specific simulators, for me I simply had to delete the simulator and add it again
  2. Kai Lu 2018-10-10

    Thanks David but it is a brand new install of the Xcode. I doubt it was because of a specific simulator. I actually tried a lot of them but all failed the launch.
  3. David van de Meer 2018-10-10

    Have you tried to delete and re-add one?
  4. Kai Lu 2018-10-10

    Hi David, I don't think that was the issue so I did not try that. Plus I am able to launch the simulator directly from the Xcode and the native project runs just fine.
  5. Sharif AbuDarda 2018-10-14

    Hello, What is the SDK version that you are trying on? Try on the 7.4.1 releases. Thanks.
  6. Kai Lu 2018-10-14

    Thanks Sharif, I have actually tested on both 7.4.0 and 7.5.0. Neither works on mine. Will give 7.4.1 a shot but not so much hope though.
  7. Kai Lu 2018-10-15

    Just tried 7.4.1, the same issue.
  8. kedomuz 2018-10-22

    Same issue here, latest SDK 7.4.1, OSX High Sierra 10.13.6, nodejs 8.9.4 (via nvm) Done fresh install: xcode 10 and appcelerator studio. (Simulator from xcode starting normally and xcode native app working, but from studio and cli "Simulator is not available").
       [TRACE] :  ** BUILD SUCCEEDED **
       [INFO] :   Finished building the application in 34s 913ms
       [INFO] :   Launching iOS Simulator
       [TRACE] :  [ioslib] Selected iOS Simulator: iPhone X
       [TRACE] :  [ioslib]   UDID    = B6086366-C410-4B8E-8729-6DC6BD5A0E40
       [TRACE] :  [ioslib]   iOS     = 12.0
       [TRACE] :  [ioslib] Autoselected Xcode: 10.0
       [TRACE] :  [ioslib] Checking if the simulator /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/Contents/MacOS/Simulator is already running
       [TRACE] :  [ioslib] Simulator is not running
       [TRACE] :  [ioslib] Tailing iPhone X Simulator system log: /Users/ked/Library/Logs/CoreSimulator/B6086366-C410-4B8E-8729-6DC6BD5A0E40/system.log
       [ERROR] :  Simulator is not available
       
  9. Sharif AbuDarda 2018-10-22

    Hello, Can you run a trace log of your build? Run project through terminal. "appc run -p ios -l trace", send the log in here. Also, try with "appc run -p ios -I 12.0" for explicitly selecting iOS SDK 12 when run. Copy the command from here to run. Thanks.
  10. kedomuz 2018-10-23

    Sure! Attached "trace.txt"
  11. Kai Lu 2018-10-23

    Thanks Sharif. I've attached my two trace logs as well. "trace_log" and "trace_log_12_selected".
  12. Sharif AbuDarda 2018-10-24

    Hello, Try deleting the simulator in xCode and reinstall again. Then try from the studio. Thanks.
  13. kedomuz 2018-10-25

    Hello, deleted and added again, not helped,
  14. Josh Lambert 2018-10-29

    Howdy! I'm seeing this same thing. My environment is as follows:

    Node Version: v8.9.4

    APPC CLI Version: 7.0.6

    APPC SDK Version: 7.4.1.GA

    NPM Version: 5.6.0

    Titanium CLI Version: 5.1.1

    OS Version: 10.14

    I have tried the following things to resolve:

    Testing using: XCode 9, 10, and 10.1.

    Deleting / re-adding simulators.

    Restarting computer.

    Trying different TiSDK versions.

    Re-installing Java, Node, Titanium, Titanium Studio, NPM, etc.

    Nothing working so far. Glad to know I'm not the only one.
  15. Vijay Singh 2018-10-30

    I tried at my end by creating new app and run it, it is launching iOS 12 simulator. I guess it should be something to do with environment.
  16. Samir Mohammed 2018-10-30

    Also unable to reproduce on 7.4.1.GA *Test Environment*
        Node : 8.9.4
        Appc CLI 7.0.6
        APPC SDK Version: 7.4.1.GA
        NPM Version: 5.6.0
        MAC Os 10.14
        
        Xcode
          10.0 (build 10A255) - Xcode default
            Install Location          = /Applications/Xcode.app/Contents/Developer
            iOS SDKs                  = 12.0
            iOS Simulators            = 12.0
            Watch SDKs                = 5.0
            Watch Simulators          = 5.0
            Supported by TiSDK 7.4.1.GA = yes
            EULA Accepted             = yes
            Teams                     = none
        
        
  17. Kai Lu 2018-10-31

    EULA Accepted = yes How can I get an Xcode output of this? I guess this might be the difference as I never accepted any kind of EULA when I installed the Xcode 10.
  18. Kai Lu 2018-10-31

    Just checked, it's not about the EULA. Problem still there after accepting the license (sudo xcodebuild -license accept).
  19. Kai Lu 2018-11-07

    Is there anyone looking at this issue right now? We still cannot launch the iOS 12 simulator on Xcode 10 (MacOS 10.13.6). Tried uninstall reinstall the xcode, created a new project, etc. all failed with "Simulator is not available" error message.
  20. Jan Vennemann 2018-11-07

    [~kenjorai], can you run xcrun simctl list devices | grep <UUID> with the simulator UUID in your Titanium build log? For example my output looks like this:
        ~/Development/appc/titanium_mobile on master ❱❱❱ appc run -p ios -l trace
        ....
        [TRACE] [ioslib] No iOS Simulator UDID specified, searching for best match
        [TRACE] [ioslib] Scanning Xcodes: 10.1:10B61
        [TRACE] [ioslib] Scanning Xcode 10.1:10B61 sims: 12.1
        [TRACE] [ioslib] No watch app being installed, so picking first Simulator
        [TRACE] [ioslib] Autoselected iOS Simulator: iPhone 7 Plus
        [TRACE] [ioslib]   UDID    = 2A7B0A56-6C58-4CAF-90C1-C359C137752C
        [TRACE] [ioslib]   iOS     = 12.1
        [TRACE] [ioslib] Autoselected Xcode: 10.1
        ...
        
        ~/Development/appc/titanium_mobile on master ❱❱❱ xcrun simctl list devices | grep 2A7B0A56-6C58-4CAF-90C1-C359C137752C
            iPhone 7 Plus (2A7B0A56-6C58-4CAF-90C1-C359C137752C) (Shutdown) 
        
    What's the state of your selected sim according to simctl? How are you selecting sims? Also compare the UUID of the sim you try to use with Titanium with the UUID of sim you use in Xcode under Window > Devices and Simulators. Either you or the SDK seems to select a Simulator that is not available anymore (probably missing runtime of older iOS version). To avoid selecting unavailable Simulators you can delete all unavailable with xcrun simctl delete unavailable or individual ones using xcrun simctl delete <UUID>. Please also see this question on StackOverflow: https://stackoverflow.com/questions/34910383/xcode-free-to-clear-devices-folder/34914591
  21. Kai Lu 2018-11-08

    Thanks Jan, I had upgraded to Xcode 10.1 and the simulator (iOS 12.1) is launching now. Before the upgrade, I tried the "xcrun simctl delete unavailable" which did not work. Not sure what's been the issue but seems the 10 to 10.1 upgrade and Command_Line_Tools_macOS_10.13_for_Xcode_10.1 (not sure if the command line tools are necessary for the fix) are making the simulator come back again.
  22. Jan Vennemann 2018-11-08

    Yeah, might be the command line tools, the Titanium CLI makes use of them extensively.
  23. Jan Vennemann 2018-11-14

    Alright, resolving this ticket then. Making sure that only valid simulators are available solves this issue. Either by making sure the Xcode environment is up-to-date or deleting any unavailable simulators as described in my comment above.
  24. Léna Faure 2019-10-02

    Hello, I have exactly the same issue an unwanted upgrade of Xcode to version 11. The error I get is at the end of the build : "Simulator is not available". The simulator is showing with commands appc ti info and xcrun simctl list devices, I mention the simulator id for each build with no success. The app launches fine when installed on the simulator manually. Here is what I attempted so far : - Testing with XCode versions 10.1, 10.3 and 11 (with complete uninstall / reinstall) - Deleting / re-adding simulators - Rebooting computer - Trying different TiSDK versions - Eventually deinstalling / reinstalling everything (Appcelerator, Xcode, Titanium CLI, etc) @Josh Lambert @Jan Vennemann, did you eventually find a solution ?
  25. Léna Faure 2019-10-03

    For anyone reading this thread and having the same issue, here are the steps I followed to solve it: - fully uninstalling xCode, his folders on ~/Library/Developer & /Library/Developer - sudo xcode-select -r to reset my xcode-select - installing Xcode 10.3 from [https://developer.apple.com/download/more/](https://developer.apple.com/download/more/) - revert to Appcelerator CLI 7.0.10 (or previous version) appc use 7.0.10 Apparently the bug has to do with the new version of CLI causing trouble for ioslib to connect to the simulators

JSON Source