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 I add App Snadbox in Capabilities, I get the following error in the library. #12

Open
jasudev opened this issue Jul 11, 2022 · 0 comments

Comments

@jasudev
Copy link
Contributor

jasudev commented Jul 11, 2022

Hi~
First of all, thank you for providing such a wonderful library.
I found one problem while using it. When I add App Snadbox in Capabilities, I get the following error in the library.

screencapture: cannot run two interactive screen captures at a time
Error: task.terminationStatus != 0

If you uninstall App Sandbox, you can process screenshots normally.
I'm trying to find the cause of the problem, but it's not easy to fix.

https://developer.apple.com/forums/thread/51236
I found a hint in the forum above.

com.apple.security.temporary-exception.mach-register.global-name

com.apple.screencapture.interactive

If you set it like this, it will be processed normally.
Whether this method is the perfect solution seems to need more confirmation.
It seems that the library sample source also needs a review.
Please review. thank you.

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

No branches or pull requests

1 participant