将已有的flutter打包成macos项目

1.开启macos功能

flutter config --enable-macos-desktop

2.进入项目根目录执行命令创建macos对应的文件

flutter create .

3.运行macos项目

flutter run -d macos

4.打包macos项目

flutter build macos

运行macos无法访问http请求 可以在macos目录runner文件夹中 DebugProfile.entitlements和 Release.entitlements添加如下内容

	<key>com.apple.security.network.server</key>
	<true/>
	<key>com.apple.security.network.client</key>
	<true/>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
  • 2021-05-09
猜你喜欢
  • 2022-03-01
  • 2022-12-23
  • 2021-07-10
  • 2022-01-26
  • 2021-08-02
  • 2021-10-17
相关资源
相似解决方案