How can I get data form UIPasteboard in PacketTunnel Extension after iOS13

I can get data from UIPasteboard in VPN Extension before iOS 13. But after iOS 13 I can't. So what can I do?


The code for get data is like:

NSData *dateObject = [[UIPasteboard generalPasteboard] dataForPasteboardType:lookupKey];