AppleSimulatorUtils
AppleSimulatorUtils copied to clipboard
When trying to set location permissions, get an error.
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
This might be a duplicate of my issue, https://github.com/wix/AppleSimulatorUtils/issues/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.
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? :)
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.
@LeoNatan
I am no longer involved with project or the company, sorry.
I am no longer involved with project or the company, sorry.
@LeoNatan Thanks for your reply, and who is maintaining this project now? :D
@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!
@youngfreeFJS Wix, apparently 😂
@billburgess 🍻
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.
@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: https://github.com/wix/Detox/issues/3155
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