Copy/Paste not working on Xcode 13 with M1 Macbook Pro simulators. It was working on a normal Mac PC.
Question posted in Xcode
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
Whether you're new to Xcode or an experienced developer, our archive has everything you need to know about this integrated development environment (IDE). From basic functionalities to advanced features, our archive covers a wide range of Xcode-related questions and answers. Browse our archive now and find solutions to your Xcode questions, and take your app development skills to the next level
5
Answers
Since I’ve got my M1 in 2020 I could use copy/paste only in Xcode 11.x or lower.
I did not find any settings for simulator or other checkboxes that could enable copy/paste again on Xcode 13
This is the issue with M1 MacBooks, Pasteboard is having this issue in latest chip and latest simulators.
As of now, no updates from apple for this. So we can try alternative something
EXAMPLE: – Make sure to add
yourfile.txt
in your bundle. and here in textfield data will come from the file of your bundle. Even you can use file from document directory as well if you don’t want to add file in bundle.This is unfortunately a recurring issue for a lot of people on Xcode 12, 13 – but seems to be fixed as of Xcode 14.
If you need to stay on 13 there are three possible workarounds:
Share
/Simulator
from the context menu. This will open the URL in the Simulator you choose.Files
app.Waiting a fix from Apple I managed to create a custom MacOS Shortcut to handle this copy/paste on Simulators.
Here are the steps to make it work:
Normally it should works. The keystroke is a bit slowly I agree but didn’t find any other way to make it work properly.
Tap on the siri action. It could fail
Here are steps to enable it:
If it’s a link, you can drag it directly from desktop Chrome / Safari address bar into your running Simulator window, it will pop up mobile Safari and open the link.
Apple has disabled certificates drag’n’drop and text copy-paste, but us devs cannot be deferred by such pity attempts to ruin usability! /s