Conversation

@Viditb @jefframes I noticed some cases where users are getting an error - PBErrorDomain Code=13 "Operation not authorized." - when pasting from UIPasteControl. Looks like it's coming back in the completion handler to loadObject(ofClass: String.self).

Have you guys seen this at all with your users? I figured UIPasteControl would handle anything like this internally, but I guess not?

3
0
0

@chrisvasselli i never shipped the app where I used this. But it does sound familiar from when I was testing. I’ll take a peek at it this weekend and see if it refreshes my memory. There were definitely things that felt flaky but I may have solved it 🤔

0
0
0

@chrisvasselli Nothing stuck out to me, and my implementation is basically the same as yours for this method. I assume this isn't what happens if a user on iOS16 denies the app access to the pasteboard? That's my only guess.

0
0
0

@f Thanks. Yeah, makes me wonder if maybe the "operation not permitted" error message is a red herring, and there's something else going on not related to permissions?

1
0
0
@chrisvasselli Possible, these days (especially with SwiftUI) I’ve found that the error message isn’t always indicative of the actual issue 😛
0
0
1