Flutterの習得に向けて、Udacityのチュートリアル講座を受けています( Build Native Mobile Apps with Flutter)
![](https://yaba-blog.com/wp-content/uploads/cocoon-resources/blog-card-cache/806ebc08a35db1a309aedac26f3cd7ec.png)
Build Native Mobile Apps with Flutter | Udacity
Learn online and advance your career with courses in programming, data science, artificial intelligence, digital marketing, and more. Gain in-demand technical s...
上記講座のLesson1 13.Quiz: Code Your Own Category Widgetで詰まったので解決策を記載します。
問題:flutter run でシミュレータが起動できない
flutter runしても、Oops; flutter has exited unexpectedly. と出てシミュレータが起動できない。
flutter_01.logをチェックしてみます。
ProcessException: ProcessException: Process "/usr/bin/xcrun" exited abnormally:
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=22):
Failed to install the requested application
The application's Info.plist does not contain CFBundleVersion.
Ensure your bundle contains a CFBundleVersion.
アプリケーションのInfo.plistにはCFBundleVersionが含まれていません。
バンドルにCFBundleVersionが含まれていることを確認してください。
バンドルにCFBundleVersionが含まれていることを確認してください。
と記載があります。
解決方法:pubspec.yamlに version: 1.0.0+1 を追記する
pubspec.yamlにバージョンを追記します。
![](https://yaba-blog.com/wp-content/uploads/2019/10/スクリーンショット-2019-10-28-14.23.07-1-1024x316.png)
これで問題なく実行することができました。
![](https://yaba-blog.com/wp-content/uploads/2019/10/スクリーンショット-2019-10-28-14.31.14-511x1024.png)
日本語でFlutterの概要を知るなら以下の書籍がオススメです。
コメント