New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Flutter App running on M1 ARM iOS 14.3 simulator cannot paste text #74970
Comments
|
Hi @hongfeiyang |
I have updated the comment |
|
I am facing the same issue |
|
Reproducible on the latest master flutter doctor -v[✓] Flutter (Channel master, 1.26.0-18.0.pre.90, on macOS 11.1 20C69 darwin-arm, locale en-GB)
• Flutter version 1.26.0-18.0.pre.90 at /Users/nevercode/development/flutter_master
• Framework revision 25134a16d1 (2 days ago), 2021-01-29 23:52:30 -0800
• Engine revision ce14c8a841
• Dart version 2.12.0 (build 2.12.0-276.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/nevercode/Library/Android/sdk
• Platform android-30, build-tools 30.0.3
• Java binary at: /Users/nevercode/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/Android
Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.4, Build version 12D4e
• CocoaPods version 1.10.1
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 4.1)
• Android Studio at /Users/nevercode/Library/Application Support/JetBrains/Toolbox/apps/AndroidStudio/ch-0/201.7042882/Android Studio.app/Contents
• Flutter plugin can be installed from:
� https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin can be installed from:
� https://plugins.jetbrains.com/plugin/6351-dart
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6915495)
[✓] Connected device (3 available)
• iPhone 12 Pro Max (mobile) • 42B7F3DF-3053-419B-BA8F-FF1218F7A174 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-4 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 11.1 20C69 darwin-arm
• Chrome (web) • chrome • web-javascript • Google Chrome 88.0.4324.96
• No issues found!Minimal reproducible code sampleimport 'package:flutter/material.dart';
void main() => runApp(MyApp());
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Sample',
home: Scaffold(
appBar: AppBar(
title: Text('Sample'),
),
body: Center(
child: TextField(),
),
),
);
}
} |
This comment has been minimized.
This comment has been minimized.
|
looks like related issue: #73950 |
This comment has been minimized.
This comment has been minimized.
|
I am having this issue too. Please help take a look into it. |
This comment has been minimized.
This comment has been minimized.
|
I can reproduce it on Screen.Recording.2021-05-19.at.19.11.15.movCode to reproduce: import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
void main() => runApp(App());
class App extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Builder(builder: (context) {
return Scaffold(
body: SafeArea(
child: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
ElevatedButton(
child: Text("Paste into Clipboard"),
onPressed: () async {
const flutterIsAwesome = "Flutter is awesome!";
await Clipboard.setData(ClipboardData(text: flutterIsAwesome));
ScaffoldMessenger.of(context).showSnackBar(SnackBar(
content: Text("Pasted '$flutterIsAwesome' into clipboard"),
));
},
),
ElevatedButton(
child: Text("Copy from Clipboard"),
onPressed: () async {
final clipboardData = await Clipboard.getData("text/plain");
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text(clipboardData?.text ?? "null")),
);
},
),
],
),
),
),
);
}),
);
}
} |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Same issue on my M1 mac, no simulator can pastes anything into Flutter TextField widget. Works fine on intel macbook pro. |
This comment has been minimized.
This comment has been minimized.
|
Why flutter, why assign a p4 priority to this issue? On my m1 MacBook not only copy paste does not work, physical keyboard does not work either. This problem even persists in the final production build where my client cannot use his iPad Pro magic keyboard to type in anything, which render my text based apps useless. Why can't the flutter team fix this? It's been several months already |
|
I'm not even using Flutter and plain old Swift apps on the M1 don't let me paste text inside text fields. |
|
The paste issue looks like a iOS 14.*+ simulator bug, most likely related to Rosetta translation. I also tried it on the iOS 15 beta 1 simulator and unfortunately pasting failed there as well. When it fails I see: etc. This looks similar to other non-Flutter issues I see reported: xmartlabs/Eureka#2152 I was easily able to reproduce this in a vanilla new Xcode project by adding a text field, and setting the iOS simulator Vanilla Xcode project: vanilla_project_repro.movWork tracked at #60118 for Flutter to not need Rosetta for ARM simulators. I installed an iOS 13.7 simulator on my M1 and pasting worked as expected on a Flutter app. |
|
If there even exists a possible workaround (doubtful), it would be in the engine. Adjusting labels. |
|
I don't think this is actionable right now. |
Thank you! Great work tracking this down, and I will use iOS 13 for now as a workaround. Much appreciated!! |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |


Steps to Reproduce
Copy any text in safari running on M1 Simulator, build a test app with a textfield on M1 simulator, try to paste that text in a textfield and it will have a popup saying that "App pasted from CoreSimulatorBridge" but nothing will get pasted. It does paste in safari address bar and notes app.
Expected results:
Something pasted
Actual results:
Nothing pasted
Logs
The text was updated successfully, but these errors were encountered: