expo: Paste from clipboard doesn't work in iOS simulator run on MacBook with M1 chip

Summary

Pasting from clipboard doesn’t work in an app run in Expo Go. It’s not an issue with the simulator because I can copy and paste text in other apps in the simulator e.g. Safari. I can also copy and paste things from outside the simulator to Safari in the simulator. It’s possible to select a text in my app, copy it, and past it to another app in the simulator or to my VS Code outside. The problem occurs only in simulators with iOS > 13.7, so the workaround is to install an older version.

I’m using MacBook Pro M1

Similar unsolved issues: https://github.com/expo/expo/issues/13661 https://github.com/flutter/flutter/issues/74970

Managed or bare workflow? If you have ios/ or android/ directories in your project, the answer is bare!

managed

What platform(s) does this occur on?

iOS

SDK Version (managed workflow only)

44

Environment

expo-env-info 1.0.2 environment info: System: OS: macOS 12.1 Shell: 5.8 - /bin/zsh Binaries: Node: 16.14.0 - ~/.nvm/versions/node/v16.14.0/bin/node npm: 8.3.1 - ~/.nvm/versions/node/v16.14.0/bin/npm SDKs: iOS SDK: Platforms: DriverKit 21.2, iOS 15.2, macOS 12.1, tvOS 15.2, watchOS 8.3 IDEs: Android Studio: 2021.1 AI-211.7628.21.2111.8193401 Xcode: 13.2.1/13C100 - /usr/bin/xcodebuild npmGlobalPackages: eas-cli: 0.48.1 expo-cli: 5.2.0 Expo Workflow: managed

Reproducible demo

https://user-images.githubusercontent.com/100682087/159446278-c4f74804-e293-42ad-98b2-f558544791ff.mov

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 20
  • Comments: 21 (3 by maintainers)

Most upvoted comments

@philpettican118 thank you. iOS 16.2: Working, confirm.

Simulator -> Edit -> ✔︎ Automatically Sync Pasteboard

This is an Xcode/iOS simulator issue from what I’ve gathered. I am googling this issue and have noticed that it worked in the past. It doesn’t seem to be Expo-specific but users are complaining about this in Apple forums as well, and to this day it’s still an outstanding issue. I don’t know if it’s fixed in the latest Xcode 14 beta though. Users in the forums are saying it generally works in iOS 13 simulators but 14+ doesn’t. Some say pasting twice helps (which I’ve had to do as well) but that stopped working in recent versions.

@nemrosim thank you all the same,IOS 16.1, M1, work for me.

I was running into the same issue on both an Intel and M1 mac. I tried copying and pasting between:

iOS 14.5: Not working iOS 15.4: Not working iOS 16.2: Working

react-native info:

System: OS: macOS 13.2.1 CPU: (8) arm64 Apple M1 Memory: 85.70 MB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 16.17.0 - ~/.nvm/versions/node/v16.17.0/bin/node Yarn: 1.22.19 - ~/.nvm/versions/node/v16.17.0/bin/yarn npm: 8.15.0 - ~/.nvm/versions/node/v16.17.0/bin/npm Watchman: 2023.02.20.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.2, iOS 16.2, macOS 13.1, tvOS 16.1, watchOS 9.1 Android SDK: Not Found IDEs: Android Studio: 2021.2 AI-212.5712.43.2112.8609683 Xcode: 14.2/14C18 - /usr/bin/xcodebuild Languages: Java: 11.0.18 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 17.0.2 => 17.0.2 react-native: 0.68.5 => 0.68.5 react-native-macos: Not Found npmGlobalPackages: *react-native*: Not Found

I’m having the issue on a m2 mac.