Flutter 2.x 升级到 3.10.1 版本之后,原来正常编译的项目,iOS环境下(Xcode Version 13.2.1 (13C100)),编译报错:
- Open the Runner.xcodeproj in Xcode.
- Click on the "Runner" project in the left sidebar.
-
Go to File > New > Target.
-
Select "Unit Testing Bundle" under the "Test" category and click Next.
-
Name the target "RunnerTests" and click Finish.
- 关闭项目,重新编译即可解决
参考链接
Flutter Unable to find a target named RunnerTests in project Runner.xcodeproj, did find Runner.