Skip to content

pbpaste doesnt work on iOS 9.3.3 #1

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

Open
moshed opened this issue Dec 9, 2016 · 2 comments
Open

pbpaste doesnt work on iOS 9.3.3 #1

moshed opened this issue Dec 9, 2016 · 2 comments

Comments

@moshed
Copy link

moshed commented Dec 9, 2016

doesnt look like this is maintained but figure its worth a try.
pbpaste is not working on 9.3.3 just outputs blank text

@AriX
Copy link
Owner

AriX commented Dec 9, 2016

Unfortunately in later versions of iOS 9 Apple introduced functionality that prevents non-foreground apps (including command-line processes) from reading from the clipboard.

This is enforced by pasteboardd; it uses -[BKSApplicationStateMonitor applicationInfoForPID:completion:] to get info about the app, and appears to check if the app's SBApplicationStateKey reflects that it's a foreground app, or that the value for SBApplicationStateRunningReasonKey is com.apple.viewservice.session.

The best path forward would probably be to add a substrate tweak to hook AssertionServices.framework to always consider pbpaste to be a foreground app. I don't have time to implement this right now, but hope to address at some point!

@moshed
Copy link
Author

moshed commented Dec 11, 2016

oh awesome!
big fan of your other work (workflow and deskconnect) so whenever you have time works for me

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

2 participants