Rendy
Rendy

Reputation: 5698

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.

Upvotes: 26

Views: 11715

Answers (5)

Kevin van den Hoek
Kevin van den Hoek

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

JerryZhou
JerryZhou

Reputation: 5166

  1. Select the text in the simulator, and make sure the edit menu with "Copy" is visible on the simulator screen
  2. Use the Mac keyboard to press "⌘ + C" to copy the text into mac clipboard.

Update(Have tested on MacOS 11.3.1):

  1. Select the text in the simulator, and make sure the edit menu with "Copy" is visible on the simulator screen
  2. Use the Mac keyboard to press "⌘ + Shift + C", and click "Copy" in the previous step to copy the text into mac clipboard

enter image description here

Upvotes: 22

keverly
keverly

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

Jeremy Huddleston Sequoia
Jeremy Huddleston Sequoia

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

Qasim
Qasim

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

Related Questions