

Flutter 在 iOS 模拟器中运行卡住问题解决
source link: https://droidyue.com/blog/2022/05/08/flutter-run-stuck-with-log-waiting-for-observatory-port-to-be-available/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Flutter 在 iOS 模拟器中运行卡住问题解决
May 8th, 2022
当我们尝试在 iOS 模拟器运行 flutter run
可能会出现类似如下的卡住问题。
executing: xcrun simctl launch xxx-54F9-427F-8119-xxxx com.hahaha.app --enable-dart-profiling --enable-checked-mode --verify-entry-points --observatory-port=0
[+1000 ms] com.hahaha.app: 49573
[ ] Waiting for observatory port to be available…
模拟器上的 App 也无法打开,也看不出有什么具体的崩溃问题。不知如何是好。
不过,还是有办法解决的,那就是使用 XCode 运行项目,查看输出
使用 Xcode 打开项目
cd ios/
open Runner.xcworkspace
像正常的 iOS 项目一样,点击 那个类似播放的按钮进行编译运行。
等到运行后,大概在 XCode 右下角,就会发现一定的错误信息
dyld: Symbol not found: _$s7SwiftUI4ViewP14_viewListCountxxdddx6inputsSiSgxxxAA01_ceF6xxdxxddInputsV_tFZxxxxTq
Referenced from: /Users/xxxxx/Library/Developer/CoreSimulator/Devices/xxxxddxx-54F9-427F-8119-xxxxx/data/Containers/Bundle/Application/xxxx-8791-4B78xxx-A9C1-381572AC1A2B/Runner.app/Frameworks/abcde.framework/abcde (which was built for iOS 14.0)
Expected in: /System/Library/Frameworks/SwiftUI.framework/SwiftUI
in /Users/xxxxxx/Library/Developer/CoreSimulator/Devices/xxxxx-54F9-427F-8119-xxxxxx/data/Containers/Bundle/Application/xxxxx-8791-4B78-xxxx-381572xAC1A2B/Runner.app/Frameworks/abcde.framework/abcde
dyld: launch, loading dependent libraries
通过分析上面的错误日志,我们可以确定,这个问题是因为在低于 14 的模拟器上是无法运行这个应用的。

低价正版软件,限时优惠,Office 365,Typora等海量优惠
Recommend
-
52
一、配置要求 硬件 CPU 显卡 内存 硬...
-
42
[TOC] 问题描述 有个楼梯的斜面的normal反了,结果会导致模型卡在这个楼梯走不出来,类似于一个封闭的盒子。因为模型现在改不了的缘故,所以就准备技术上先解决一下: 启用double-sided的功能。
-
19
随着 Android 11 开发者预览版的发布...
-
23
Linux下进行Android环境配置与Android模拟器运行
-
8
大量玩家反馈《微软飞行模拟器》VR版运行效果很差_VR陀螺
-
7
GoBoy是一个可以在多平台运行的任天堂GameBoy和GameBoy Color的模拟器,目前这个模拟器可以运行大多数的GameBoy游戏和一部分GameBoy Color的游戏...
-
7
V2EX › Apple 最近 iOS 打字偶尔会卡住 jin...
-
8
解决 Flutter 引起的 iOS 内存崩溃问题-51CTO.COM 解决 Flutter 引起的 iOS 内存崩溃问题 作者:JPlay 2022-08-05 11:55:13 如果你的 Flutter 版本号小于等于 2.5.3 或大于等于 3.0....
-
9
国产系统上解决docker pull卡住的问题 ...
-
4
qemu-user-static 下 cgo go build 卡住的一次解决 ...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK