Git Product home page Git Product logo

Comments (10)

Mirconet avatar Mirconet commented on June 16, 2024 3

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.

johndpope avatar johndpope commented on June 16, 2024

#44

from opensim.

dungc avatar dungc commented on June 16, 2024

Thank you @Mirconet,it's worked.

from opensim.

ogezue avatar ogezue commented on June 16, 2024

when is a release planned?

from opensim.

RomainQuidet avatar RomainQuidet commented on June 16, 2024

+1 need an update :) thanks !

from opensim.

RomainQuidet avatar RomainQuidet commented on June 16, 2024

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.

RomainQuidet avatar RomainQuidet commented on June 16, 2024

So isAvailable json key is used now, but availability is still (available) or (unavailable etc...)

from opensim.

RomainQuidet avatar RomainQuidet commented on June 16, 2024

anyway, the command line used xcrun simctl list -j devices does not list my ios 12 simulator devices ....

from opensim.

RomainQuidet avatar RomainQuidet commented on June 16, 2024

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.

Bunn avatar Bunn commented on June 16, 2024

Fixed on the latest release: https://github.com/luosheng/OpenSim/releases/tag/0.4.1

from opensim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.