我一直有一个错误与启动我的flutter
应用程序在我的iPhone模拟器。
这就是我得到的。
Xcode输出:错误:无法以合理的空安全运行,因为以下依赖项不支持空安全:
- package:font_awesome_flutter
- package:flutter_icons
- package:carousel_slider
For solutions, see https://dart.dev/go/unsound-null-safety
Failed to package /Users/roseanne/test_app.
Command PhaseScriptExecution failed with a nonzero exit code
note: Using new build system
note: Planning
note: Build preparation complete
note: Building targets in parallel
warning: Capabilities for Signing & Capabilities may not function correctly because its entitlements use a placeholder team ID. To resolve this, select
a development team in the Runner editor. (in target 'Runner' from project 'Runner')
无法为模拟器生成应用程序。在iPhone12 Pro Max上启动应用程序时出错。
这是一个与flutter空安全相关的错误,您导入的一些包没有空安全兼容性。
如果您更新(或删除如果他们没有空安全版本)下面列出的包,它应该可以正常工作。
- package:font_awesome_flutter
- package:flutter_icons
- package:carousel_slider