提示错误:
Nagendras-MacBook-Pro:uaenumber nagendra$ flutter run
Launching lib/main.dart on iPhone X in debug mode...
Starting Xcode build...
Xcode build done. 1.4s
Failed to build iOS app
Error output from Xcode build:
↳
** BUILD FAILED **
网上找了各种删除Flutter.framework 都没用。
于是直接把项目的IOS目录删掉,用命令行试试能不能直接run,可能创建会自动创建所需文件。
命令行
cd ~/projects/shop
flutter run
提示
Launching lib/main.dart on iPhone XR in debug mode...
No application found for TargetPlatform.ios.
Is your project missing an ios/Runner/Info.plist?
Consider running "flutter create ." to create one.
感觉有希望,create命令可以创建所需文件,于是照着提示输入
flutter create.
上面命令别忘了末尾的.点,自动创建了IOS构建的相关文件
再次
flutter run
成功。
网友评论