Skip to content
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

run example error #156

Open
peter100u opened this issue Feb 8, 2023 · 10 comments
Open

run example error #156

peter100u opened this issue Feb 8, 2023 · 10 comments

Comments

@peter100u
Copy link

pty_forkpty: Operation not permitted
[VERBOSE-2:dart_vm_initializer.cc(41)] Unhandled Exception: Bad state: Failed to create PTY: null
#0 new Pty.start (package:flutter_pty/flutter_pty.dart:123:7)
#1 _HomeState._startPty (package:example/main.dart:79:15)
#2 _HomeState.initState. (package:example/main.dart:73:22)

@peter100u peter100u changed the title run error run example error Feb 8, 2023
@xtyxtyx
Copy link
Member

xtyxtyx commented Feb 8, 2023

What operating system do you use to run the example?

@peter100u
Copy link
Author

ios

@xtyxtyx
Copy link
Member

xtyxtyx commented Feb 8, 2023

iOS doesn't allow opening pseudo terminals.

@peter100u
Copy link
Author

That's a shame, I see that this https://pub.dev/packages/xterm supports iOS, so do you have any plans to make him support the iOS platform

@xtyxtyx
Copy link
Member

xtyxtyx commented Feb 9, 2023

iOS的沙箱它就是不支持伪终端呀 我有啥办法😂

xterm.dart本身不挑后端,可以接本地的pty也可以接远程的ssh。只是iOS不支持本地终端

@peter100u
Copy link
Author

哦哦,原来是国人,哈哈

@peter100u
Copy link
Author

我看appstore上伪终端的app,人家是怎么做的,你知道吗

@xtyxtyx
Copy link
Member

xtyxtyx commented Feb 9, 2023

那种是自己搞了模拟器 https://github.com/ish-app/ish/tree/master/emu

@peter100u
Copy link
Author

好吧,那太可惜了,我以为你这个全平台支持, 回去告诉老板,flutter做不了

@peter100u
Copy link
Author

不过还是感谢你

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants