flap
在 Flutter 中运行 Go (golang) 服务器的工作证明。
先决条件
构建 Go 服务器
cd go
macOS
make macos
iOS
make ios
iOS 模拟器
make ios-simulator
运行应用
cd ..
flutter devices
flutter run -d {target}
构建应用
flutter build {macos, ios}
已知问题
- 热重载不起作用(解决方法:在开发阶段独立运行 Go 服务器)
问答
为什么 iOS 库使用 .dylib 而不是 .a?
因为我尽管官方文档更喜欢 .a。事实上,我甚至没有尝试过 .a。