'Copy Clipboard from iOS Simulator to Mac?
Is it possible to copy clipboard from iOS simulator to my mac?
Not sure I should ask here or at AskDifferent.
Solution 1:[1]
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.
Solution 2:[2]
- Select the text in the simulator, and make sure the edit menu with "Copy" is visible on the simulator screen
- Use the Mac keyboard to press "? + C" to copy the text into mac clipboard.
Update(Have tested on MacOS 11.3.1):
- Select the text in the simulator, and make sure the edit menu with "Copy" is visible on the simulator screen
- Use the Mac keyboard to press "? + Shift + C", and click "Copy" in the previous step to copy the text into mac clipboard
Solution 3:[3]
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
Solution 4:[4]
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.
Solution 5:[5]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | keverly |
| Solution 2 | |
| Solution 3 | Jeremy Huddleston Sequoia |
| Solution 4 | Qasim |
| Solution 5 | Kevin van den Hoek |

