Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When trying to set location permissions, get an error. #83

Closed
youngfreeFJS opened this issue May 27, 2021 · 11 comments
Closed

When trying to set location permissions, get an error. #83

youngfreeFJS opened this issue May 27, 2021 · 11 comments
Labels

Comments

@youngfreeFJS
Copy link

Description
when use appleSimulatorUtils with appium, i get an error:

2021-05-27 20:32:03:027 [W3C] Encountered internal error running command: Error: Cannot execute "applesimutils --byId 248559EC-E217-42AB-B08F-59ED840DAFE8 --bundle com.meituan.imeituan --setPermissions location\=always". Original error: 2021-05-27 20:32:03.003 applesimutils[95846:7981591] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter'

If you are describing an issue with brew install:

  • [✅] I've run brew doctor and fixed all issues

Environment

  • macOS version: 10.15.7
  • Xcode version: 11.5

Additional Context

https://gist.github.com/youngfreeFJS/6d54ebe8e568e8eca4a43481e0d572fe

@billburgess
Copy link

This might be a duplicate of my issue, #81. I have a couple issues outstanding for the utility throwing errors or not working. I have found that it seems to work on freshly made sims, but errors out on sims that have had the utility run on them previously. Not sure if this is related or not, but thought I'd mention it.

@youngfreeFJS
Copy link
Author

This might be a duplicate of my issue, #81. I have a couple issues outstanding for the utility throwing errors or not working. I have found that it seems to work on freshly made sims, but errors out on sims that have had the utility run on them previously. Not sure if this is related or not, but thought I'd mention it.

Thanks for your reply. It seems like a duplicate issue.
Is there a repair plan for this problem? :)

@billburgess
Copy link

I haven't heard yet. I've been able to stay out in front due to our CI creating new devices before each run. Has been less of an issue, but still an issue when running things locally.

@youngfreeFJS
Copy link
Author

@LeoNatan

@LeoNatan
Copy link
Contributor

LeoNatan commented Jun 3, 2021

I am no longer involved with project or the company, sorry.

@youngfreeFJS
Copy link
Author

I am no longer involved with project or the company, sorry.

@LeoNatan Thanks for your reply, and who is maintaining this project now? :D

@billburgess
Copy link

@LeoNatan Sorry to hear you are not with this project any longer. Thanks for the many years of assistance and fast turnarounds on issues and questions. Best of luck to you!

@LeoNatan
Copy link
Contributor

LeoNatan commented Jun 5, 2021

@youngfreeFJS Wix, apparently 😂

@billburgess 🍻

@tomgransden
Copy link

tomgransden commented Aug 6, 2021

Also been experiencing the same issue intermittently on AppleSimUtils 0.9.4 on iOS 14.4 simulators. Would be brilliant to get to the bottom of it as it's affecting the Detox tests for my app.

13:42:48 detox[2559] ERROR: [exec.js/EXEC_FAIL, #10] "applesimutils --byId 9C41D049-72C4-4F9F-A9E3-EDFE7A696392 --bundle tv.uk.sw --restartSB --setPermissions notifications=YES" failed with code = null, stdout and stderr: detox[2559] ERROR: [exec.js/EXEC_FAIL, #10] 2021-08-06 13:42:48.718 applesimutils[5565:7835360] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initFileURLWithPath:]: nil string parameter'

I remedied this for now by changing some code inside the library to hardcode the path to xcrun, instead of relying on which.

@shamilovtim
Copy link

@noomorph we are getting this error all the time now. It has increased in frequency to how often we used to get Signal 11. I've linked it here: wix/Detox#3155

@asafkorem
Copy link
Contributor

location 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants