AppleSimulatorUtils icon indicating copy to clipboard operation
AppleSimulatorUtils copied to clipboard

Error using iOS 14.5 sims

Open billburgess opened this issue 4 years ago • 1 comments

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 avatar Apr 27 '21 17:04 billburgess

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.

billburgess avatar May 20 '21 19:05 billburgess