Reputation: 5698
Is it possible to copy clipboard from iOS simulator to my mac?
Not sure I should ask here or at AskDifferent.
Upvotes: 26
Views: 11715
Reputation: 252
None of these answers worked for me, I'm not sure why the simplest way isn't listed in one of the answers, but it is to first copy like you would usually on iOS, then browse to the simulator menu at the top left of MacOS: Edit > Get Pasteboard
Upvotes: 3
Reputation: 5166
Update(Have tested on MacOS 11.3.1):
Upvotes: 22
Reputation: 1430
Using Xcode 10 Beta
Trying going to Edit>Automatically Sync Pasteboard. Mine was checked, but they weren't synced. Try unchecking it then re-checking it.
If that doesn't work, Uncheck it, select text and copy within simulator, then click Edit>Get Pasteboard.
Upvotes: 31
Reputation: 23623
In addition to the use of the Edit Menu in Simulator.app to copy data between the macOS and iOS pasteboards, with Xcode 8, you can do this from the simctl command line. Check out:
xcrun simctl pbinfo
xcrun simctl pbsync
xcrun simctl pbcopy
xcrun simctl pbpaste
Upvotes: 10
Reputation: 1704
Yes! First, make sure whatever you want to bring to the Mac is on your simulator's clipboard already. Then, do the regular copy shortcut (⌘ + C) to bring the simulator's clipboard to your Mac's clipboard.
You should now be able to paste whatever it was on your Mac, given that it was a compatible format.
Upvotes: 5