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

Error using iOS 14.5 sims #82

Open
billburgess opened this issue Apr 27, 2021 · 1 comment
Open

Error using iOS 14.5 sims #82

billburgess opened this issue Apr 27, 2021 · 1 comment
Labels

Comments

@billburgess
Copy link

Description
When trying to set permissions on an iOS device running 14.5, I am getting an error.

brasky@Bills-MBP ~ % applesimutils --byId "231CE0DA-5E28-43E5-AB05-F860438CEC3A" --bundle "simpleinout" --setPermissions "notifications=YES, location=always, contacts=YES"
Got error:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
The operation couldn’t be completed. No such file or directory
No such file or directory

Steps to Reproduce
Try to set app permissions with the following setup:

 applesimutils --byId "231CE0DA-5E28-43E5-AB05-F860438CEC3A" --bundle "simpleinout" --setPermissions "notifications=YES, location=always, contacts=YES"

Expected Behavior
Simulator to boot, permission to be set.

Environment

  • macOS version: Big Sur 11.3
  • Xcode version: 12.5, iOS 14.5

Additional Context
I was seeing a similar issue in the reported bug running on my VM. While the program was crashing on the VM, it seems somewhat related. Please let me know what I can do to help.

@billburgess
Copy link
Author

billburgess commented May 20, 2021

I think I may have some further information. New simulators when Terminal doesn't have permission to write to files (that weird XPC permission requirement that pops up). If you don't have permission to write files it will error out and cause problems.

Got error:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
The operation couldn’t be completed. No such file or directory
No such file or directory

Terminal will need Full File Access for this to work I'm assuming. Might help to have something about this in the README.

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

1 participant