Giter Club home page Giter Club logo

Comments (8)

billburgess avatar billburgess commented on June 17, 2024 1

Here is the command I ultimately ended up using in my yml file to set the permission. It does work once I set the permissions on the UDID rather than the name.

applesimutils --simulator $(fbsimctl 'iPhone 7' list | tr -s '' | cut -d ' ' -f 1 | head -1) --bundle "com.myapp.bundle" --setPermissions "notifications=YES"

from applesimulatorutils.

LeoNatan avatar LeoNatan commented on June 17, 2024

You need to provide the simulator UUID for the --simulator argument. Use xcrun simctl list / fbsimctl list to obtain the UUID of the simulator you are using.

from applesimulatorutils.

LeoNatan avatar LeoNatan commented on June 17, 2024

I've opened an enhancement issue for this. I'll see what I can do.

from applesimulatorutils.

billburgess avatar billburgess commented on June 17, 2024

I tried once with the simulator UUID. Maybe that is the trick. Subsequent runs still seemed to run against the open iPhone 7 simulator and restarted the Springboard. So something is working on the simulator.

The main for me is how would I be able to use this in my CI script. I won't know the UUID on the remote machine where my tests are running, so I can't hardcode a UUID in. Is it possible to fuzzy logic the match and run on the closest match? Or first match?

from applesimulatorutils.

LeoNatan avatar LeoNatan commented on June 17, 2024

For now, you can use fbsimctl "iPhone 7" list | tr -s ' ' | cut -d ' ' -f 1 | head -1 to obtain the UUID of the simulator you want to use in your CI.

from applesimulatorutils.

LeoNatan avatar LeoNatan commented on June 17, 2024

It might be possible to somehow filter xcrun simctl list as well, but the output there is more complex / less convenient.

from applesimulatorutils.

billburgess avatar billburgess commented on June 17, 2024

I'll give that a try. I appreciate the help.

from applesimulatorutils.

LeoNatan avatar LeoNatan commented on June 17, 2024

Thanks for posting this. I will work on a future improvement to allow specifying the simulator by name.

from applesimulatorutils.

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.