wix/AppleSimulatorUtils

Can't grant permissions on iOS 17

natsuk4ze opened this issue · 7 comments

Description
Can't grant permissions on iOS 17. iOS 16 and lower works fine 👍

If you are describing an issue with brew install:

  • I've run brew doctor and fixed all issues

Steps to Reproduce
Steps to reproduce the behavior:

run applesimutils --booted --bundle $BUNDLE_ID --setPermissions photos=YES

Expected Behavior
Grant permission for photos.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

  • macOS version: 13.5.1
  • Xcode version: 14.3.1

Additional Context
This is the log:

brew tap wix/brew
brew install applesimutils
cd example
applesimutils --booted --bundle studio.midoridesign.galExample --setPermissions photos=YES
shell: /bin/bash -e {0}
env:
  FLUTTER_ROOT: /Users/runner/hostedtoolcache/flutter/beta-3.15.0-15.1.pre-x64
  PUB_CACHE: /Users/runner/hostedtoolcache/flutter/beta-3.15.0-15.1.pre-x64/.pub-cache
##[debug]/bin/bash -e /Users/runner/work/_temp/212760b4-931e-4e4e-a209-455e3fa8e5a5.sh
==> Tapping wix/brew
Cloning into '/usr/local/Homebrew/Library/Taps/wix/homebrew-brew'...
Tapped 1 cask and 2 formulae (18 files, 1.6MB).
==> Fetching wix/brew/applesimutils
==> Downloading https://github.com/wix/AppleSimulatorUtils/releases/download/0.9.9/applesimutils-0.9.9.catalina.bottle.tar.gz
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/86659796/b059e0e0-5675-48c7-a32e-b24a33[11](https://github.com/natsuk4ze/gal/actions/runs/6247837311/job/16961452290#step:5:11)efe0?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20230920%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20230920T1[13](https://github.com/natsuk4ze/gal/actions/runs/6247837311/job/16961452290#step:5:13)302Z&X-Amz-Expires=300&X-Amz-Signature=8e89d72b6573763f[14](https://github.com/natsuk4ze/gal/actions/runs/6247837311/job/16961452290#step:5:14)7fc63a6e9bbae83f72c0050d8ee88b0207cd05e82202d3&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=86659796&response-content-disposition=attachment%3B%20filename%3Dapplesimutils-0.9.9.catalina.bottle.tar.gz&response-content-type=application%2Foctet-stream
==> Installing applesimutils from wix/brew
==> Pouring applesimutils-0.9.9.catalina.bottle.tar.gz
🍺  /usr/local/Cellar/applesimutils/0.9.9: 2 files, 689.3KB
Error: TCC database is not found. See “applesimutils --help” for usage.
Error: Process completed with exit code [25](https://github.com/natsuk4ze/gal/actions/runs/6247837311/job/16961452290#step:5:26)3.
##[debug]Finishing: Grant permission

You can see details in my workflows

I am not able to set location permission on XCode 15 iOS 17 simulator, notification and tracking permission are getting set perfectly on iOS 17. Location permission is getting set successfully on iOS 15 simulator on XCode 15 as well as on iOS 16 on previous XCode version so it seems there is a bug only for location permission and only on iOS 17. Applesimutils version latest 0.9.10.

Duplicate of #111

@asafkorem Any progress on this issue?

@natsuk4ze try setting the photo permission with xcrun simctl privacy. We might deprecate this API on ASU if it works there.

xcrun simctl privacy <device> grant photos <bundle>

Hey @natsuk4ze, @cctv1005s, @Gnative and @freerahi, in case you're experiencing this issue with Detox, please upgrade to Detox v20.16.
This version resolves this issue for Detox (we've migrated some commands from AppleSimUtils to Xcrun Simctl).

For any other use-case, please migrate your permission command to Simctl as mentioned here: #117 (comment).
We will soon deprecate all ASU commands that has alternative support on Simctl.

photos option under --setPermissions command is now deprecated, please migrate to xcrun simctl privacy from the latest Command Line Tools for Xcode.
Check our deprecation update for more details: https://github.com/wix/AppleSimulatorUtils/blob/master/DEPRECATIONS.md