Copy and paste text into iOS simulator

This should be documented somewhere, but I cannot find it.

In my application using the iPad simulator, there is a text box into which I want the user to paste text. In the real world, a user will copy text from a Safari address into a text box. But I'm trying to do this in an ios ipad simulator, but only with partial results.

After restarting the application, I can immediately paste the text into the text field using the Mac Edit|Paste Text menu or using Shift-Command-V (but not just with Edit|Paste , but it's Ok). The need for the Shift is annoying, but I can live with him.

But if I try to copy another URL on the Mac, and then again, Edit|Paste Text or even use the Paste bubble on the simulator, I will not get the new text, but the original text.

Is this a common thing? Is this a feature of the simulator that it is not connected in real time to the buffer on the host computer?

+94
ios clipboard
Mar 03 '13 at 18:02
source share
15 answers

Use caution to avoid combining the clipboard with the simulator clipboard. They are not the same.

The simulator simulates an iOS device with its own iOS buffer, which applications running on this device (simulator) use the pup-up select-all / copy / paste user interface elements for iOS.

Completely separate from this: your mac has its own clipboard and content. The Simulator program running on your mac provides the menu item "Edit"> "Paste Text". The program implements this menu item, accessing your macro buffer and entering text into the simulator , as if the user was using a keyboard. The iOS clipboard is not accessible and is not affected by the functions of the "Edit application" menu.

Update:. With Xcode 6, you need to select the Edit > Paste menu item in iOS Simulator (this transfers data between the Mac clipboard and the iOS clipboard), then click on the field in the simulator and tap the "Paste" bubble.

In your question, you are not indicating which "Safari" you are copying the URL from. This could be a Mac safari application or a simulator safari application. Running a copy from the Mac safari program is sent to the Mac clipboard, and the copy from the Safari application goes to the iOS clipboard inside the simulator.

I think that your problems arise because of the confusion of the two, thinking that one clipboard is all shared.

+89
Mar 03 '13 at 22:34
source share

I found that even with the Edit> Automatically Synchronize Installation Card icon installed, this function does not work.

However, just unchecking and then turning this option back on, fixed this feature!

Hope this works for someone.

+91
Sep 20 '18 at 14:23
source share

Copy the text to mac, then click the text box in the simulator and click

Shift V Team

+65
Aug 14 '13 at 17:49 on
source share

What worked for me is this.

1) copy text from Mac

2) In the simulator, do edit-> paste or Command V (I think this copies the text from the clipboard to the iOS Simulator clipboard).

3) Select the text field in the simulator, and then run the + Shift + V command.

+13
Jul 29 '14 at 14:16
source share

Please select the option "Automatically synchronize the mounting plate" in the Simulator edit option.

enter image description here

+11
May 27 '18 at 7:45
source share

I upgraded to OS X 10.13.6 and Xcode 10.1 and there is an added menu in edit

click " get pasteboard then you can paste using the tooltip in the simulator

+8
Nov 07 '18 at 8:16
source share

Xcode 10. 0+ :

Shutting down and then re-synchronizing the Pasteboard automatically solved the problem.

You may need to do this several times. Sometimes it takes some time to call it for some reason.

(Edit β†’ Automatic Cardboard Sync)

+4
Nov 09 '18 at 5:43
source share

It is sometimes very difficult to type long URLs in an iOS simulator. There must be some way to copy the URL from Max OS to the iOS text box. Here's how you can do it:

  • Copy text from Mac
  • Open the simulator and click on the text field into which you want to insert text
  • Now in the Simulator menu, click Edit β†’ Paste Text

and what is he. Your text from the Mac OS copy buffer should now be in the text box of the iOS simulator.

+2
Jun 24 '13 at 15:58
source share

Three steps: (The key point is that the "Paste" help menu is saved when you use "⌘ + V" .)

  • make sure you select the point you want to skip in the simulator, and editMenu with "Insert" is displayed .
  • use the keyboard on mac, " ⌘ + V " to paste the text into the simulator clipboard.
  • click "Paste" on editMenu, which is shown above, to paste the text into the simulator text screen.

enter image description here

+2
Jun 27 '16 at 7:57
source share

In the new emulator, I don’t have the β€œinsert” option, and synchronization does not work for the simulator. It looks like in the simulator you MUST copy something to the internal clipboard before the synchronization really works.

+2
Nov 01 '18 at 9:52
source share

A similar thing happened to me, and I found a strange workaround, it can help anyone who might run into the same problem. Try the following:

  1. Disable and then enable the option Automatically Sync Pasteboard , which is located in the Edit menu on the Simulator
  2. Copy the text you want from your Mac
  3. Paste the text again on your Mac in a text editor such as Atom, or even in the address bar of the browser
  4. .Select all the text Cmd+A , and then cut / copy Cmd+X / Cmd+C
  5. You should now be able to insert text on the simulator.
+2
Aug 08 '19 at 15:31
source share

This works for me. In version 8.0.3 Safari and the iOS simulator version 8.1

  • Copy text from Safari - select the text, then cmd-v or Edit> Copy.
  • In Ios Simulator, click Edit> Paste.
  • In the text box or text element, right-click and select Paste.
0
Feb 27 '15 at 18:07
source share

This is what I found.

  • Copy text from mac.
  • In the simulator, open safari and highlight the address bar by clicking on it.
  • Press Cmd + V
  • Click once on the address bar.
  • A pop-up paste will appear.
  • Click on the paste.

Shift + Cmd + V works fine.

0
Nov 04 '16 at 15:44
source share

V + V: When the iOS simulator is in front, copy the contents of the OS X clipboard in iOS, but do not paste it. Again, this works for both text and images.
So you need to do the following:
1. Copy text anywhere on your MacOS, except for the iOS simulator.
2. In the iOS simulator, press ⌘ + V, copy the text from the macOS clipboard to the clipboard of the iOS simulator.
3. In the iOS, TextField or TextView simulator, click β†’ Edit β†’ Paste.

0
Mar 16 '18 at 7:54
source share

sometimes you just need to select Hardware β†’ reset contents and settings in the simulator menu. then everything works automatically as simple and transparent as working in MacOS with other applications

0
Mar 21 '19 at 12:10
source share



All Articles