Comments (10)
Change SimulatorController.swift:34 -> if let deviceList = deviceList as? [[String:AnyObject]] {
The value for the key "isAvailable" is a boolean.
Then change SimulatorController.swift row 36 - 39 to:
if let state = deviceJson["state"] as? String,
let availability = deviceJson["availability"] as? String,
let name = deviceJson["name"] as? String,
let udid = deviceJson["udid"] as? String {
from opensim.
from opensim.
Thank you @Mirconet,it's worked.
from opensim.
when is a release planned?
from opensim.
+1 need an update :) thanks !
from opensim.
The pull request #44 does not correct the issue.
the json parsed is structure as this for available devices:
{ "availability" : "(available)", "state" : "Shutdown", "isAvailable" : true, "name" : "iPhone 5s", "udid" : "769F8F0A-66FA-41F5-8FAA-17E803044DB8", "availabilityError" : "" }
and for not available device:
{ "availability" : "(unavailable, runtime profile not found)", "state" : "Shutdown", "isAvailable" : false, "name" : "Apple TV 4K (at 1080p)", "udid" : "352FBDD8-0776-45CB-8CEE-97625CB8F9F0", "availabilityError" : "runtime profile not found" }
from opensim.
So isAvailable json key is used now, but availability is still (available) or (unavailable etc...)
from opensim.
anyway, the command line used xcrun simctl list -j devices
does not list my ios 12 simulator devices ....
from opensim.
it does list it but the json parser fails now as availability is not anymore a string but a boolean. Swift dictionary must be homogeneous... as? [[String: String]] fails
from opensim.
Fixed on the latest release: https://github.com/luosheng/OpenSim/releases/tag/0.4.1
from opensim.
Related Issues (20)
- Add button to refresh simulators or refresh automatically after simulator reset.
- tvOS simulator support ~ HOT 1
- Latest version binary download crashes when launching with "unexpectedly found nil while unwrapping an Optional value" HOT 4
- make simulator not responding when using Xcode 9 beta 2 HOT 3
- 10.13 Beta Xcode8/9不工作 HOT 8
- ios11 模拟器的问题 HOT 1
- "Copy Sandbox Path to Pasteboard" not working HOT 1
- Can't see iOS 11 simulators in OpenSim HOT 27
- macOS Mojave & XCode10 Support HOT 1
- new build 0.4.0 not available through brew cask? HOT 2
- Ver 0.4.1 uses too much CPU HOT 15
- OpenSim don't show anything HOT 5
- No Simulators found with Xcode 11 Beta HOT 3
- No simulators found on macOS Catalina beta (Xcode10/11) HOT 3
- hi, 能不能加个小功能呢? HOT 2
- XCode 11 HOT 7
- Feature request: notification/auto update when there is a new release
- Update Install with Homebrew Cask HOT 1
- groupContainer folder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensim.