[TIMOB-26495] Cannot load iOS 12.0 simulator after upgrading to Xcode 10 and Ti SDK 7.4.0.GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Resolved |
Resolution | Not Our Bug |
Resolution Date | 2018-11-14T11:22:53.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | n/a |
Reporter | Kai Lu |
Assignee | Jan Vennemann |
Created | 2018-10-10T00:59:13.000+0000 |
Updated | 2019-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 availableActual 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 availableExpected Result
Simulator should boot upAttachments
File | Date | Size |
---|---|---|
.log | 2018-10-10T01:00:43.000+0000 | 8607292 |
customer-02(appc ti build -p ios).txt | 2018-10-29T16:52:40.000+0000 | 6205 |
customer-02(appc ti info).txt | 2018-10-29T16:52:40.000+0000 | 9259 |
customer-02(appc ti info -t ios).txt | 2018-10-29T16:52:40.000+0000 | 4221 |
diagnostic_log.log | 2018-10-23T12:11:20.000+0000 | 351995 |
diagnostic25920695823889573.log | 2018-10-10T01:01:16.000+0000 | 2446909 |
trace_log_12_selected.rtf | 2018-10-23T00:13:02.000+0000 | 8891 |
trace_log.rtf | 2018-10-23T00:13:21.000+0000 | 2030174 |
trace.txt | 2018-10-23T00:02:48.000+0000 | 72317 |
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
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.
Have you tried to delete and re-add one?
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.
Hello, What is the SDK version that you are trying on? Try on the 7.4.1 releases. Thanks.
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.
Just tried 7.4.1, the same issue.
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").
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.
Sure! Attached "trace.txt"
Thanks Sharif. I've attached my two trace logs as well. "trace_log" and "trace_log_12_selected".
Hello, Try deleting the simulator in xCode and reinstall again. Then try from the studio. Thanks.
Hello, deleted and added again, not helped,
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.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.
Also unable to reproduce on 7.4.1.GA *Test Environment*
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.
Just checked, it's not about the EULA. Problem still there after accepting the license (sudo xcodebuild -license accept).
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.
[~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: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 withxcrun simctl delete unavailable
or individual ones usingxcrun simctl delete <UUID>
. Please also see this question on StackOverflow: https://stackoverflow.com/questions/34910383/xcode-free-to-clear-devices-folder/34914591Thanks 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.
Yeah, might be the command line tools, the Titanium CLI makes use of them extensively.
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.
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
andxcrun 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 ?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