Closed natsuk4ze closed 8 months ago
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.
@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: https://github.com/wix/AppleSimulatorUtils/issues/117#issuecomment-1862584974. 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
Description Can't grant permissions on iOS 17. iOS 16 and lower works fine 👍
If you are describing an issue with
brew install
:brew doctor
and fixed all issuesSteps 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
Additional Context This is the log:
You can see details in my workflows