Comments (8)
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.
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.
I've opened an enhancement issue for this. I'll see what I can do.
from applesimulatorutils.
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.
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.
It might be possible to somehow filter xcrun simctl list
as well, but the output there is more complex / less convenient.
from applesimulatorutils.
I'll give that a try. I appreciate the help.
from applesimulatorutils.
Thanks for posting this. I will work on a future improvement to allow specifying the simulator by name.
from applesimulatorutils.
Related Issues (20)
- No permission type for accessing clipboard for iOS 16.0
- applesimutils binary has not been found in your PATH HOT 1
- Unable to change permissions for a cloned simulator device started by Xcodebuild Test. HOT 4
- Error para conectar con el servidor
- iOS 16: Set health permissions isn't working (error) HOT 6
- new release (0.9.8) has SHA256 mismatch in brew? HOT 3
- Simulator is rebooted when I use "notifications": "YES" HOT 1
- Set location permission not working as expected HOT 24
- Xcode 15 > Unable to run commands HOT 14
- Can't grant permissions on iOS 17 HOT 7
- homebrew: upgrade to 0.9.10 fails due to SHA mismatch HOT 2
- Applesimutils --list doesn't find iPhone devices HOT 8
- Please add Paste from Other apps Permission
- Shorter mode for --list
- setPermissions for health get error: Unknown error calling sqlite3_step (19: NOT NULL constraint failed: authorization.sync_identity) rs
- Fix AppleSimulatorUtils version release script. HOT 1
- On Detox 19.5.7 + XCode 13.3 AppleSimUtils is timing out on CircleCI
- Support for Local Network Usage permission HOT 2
- `0.9.6` was released to homebrew with incorrect checksum HOT 15
- `0.9.7` Brew install checksum mismatch HOT 2
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 applesimulatorutils.