「Flutter 手順」の版間の差分
ナビゲーションに移動
検索に移動
(→起動) |
|||
(同じ利用者による、間の3版が非表示) | |||
4行目: | 4行目: | ||
===プロジェクト生成=== | ===プロジェクト生成=== | ||
+ | ---- | ||
<pre> | <pre> | ||
$ git clone ssh://root@repo.typea.info/var/www/html/git/phrasememo/phrasememo.git | $ git clone ssh://root@repo.typea.info/var/www/html/git/phrasememo/phrasememo.git | ||
9行目: | 10行目: | ||
$ flutter create --overwrite --org "info.typea" --project-name phrasememo --platforms=windows,macos,android,ios,web . | $ flutter create --overwrite --org "info.typea" --project-name phrasememo --platforms=windows,macos,android,ios,web . | ||
</pre> | </pre> | ||
− | ===iOS/macOS=== | + | |
+ | ====iOS/macOS==== | ||
---- | ---- | ||
− | ====command line tools の有効化==== | + | =====command line tools の有効化===== |
<pre> | <pre> | ||
$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/ | $ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/ | ||
$ sudo xcodebuild -runFirstLaunch | $ sudo xcodebuild -runFirstLaunch | ||
</pre> | </pre> | ||
− | ====cocoapods のインストール==== | + | =====cocoapods のインストール===== |
<pre> | <pre> | ||
$ sudo gem install cocoapods | $ sudo gem install cocoapods | ||
23行目: | 25行目: | ||
$ pod setup | $ pod setup | ||
</pre> | </pre> | ||
+ | ===起動=== | ||
+ | ---- | ||
+ | ====iOSシミュレーター==== | ||
+ | <pre> | ||
+ | open -a Simulator | ||
+ | </pre> | ||
+ | ====起動==== | ||
+ | <pre> | ||
+ | $ flutter run | ||
+ | $ flutter run -d web-server | ||
+ | $ flutter run -d macos | ||
+ | </pre> | ||
+ | |||
+ | |||
+ | |||
+ | ===Firebase=== | ||
+ | ---- | ||
+ | [[FlutterFire]] |
2021年7月23日 (金) 07:21時点における最新版
| Flutter | Dart | ブログカテゴリ(Flutter) | Android Studio | Flutter macos | FlutterFire |
目次
Flutter 手順
プロジェクト生成
$ git clone ssh://root@repo.typea.info/var/www/html/git/phrasememo/phrasememo.git $ phrasememo $ flutter create --overwrite --org "info.typea" --project-name phrasememo --platforms=windows,macos,android,ios,web .
iOS/macOS
command line tools の有効化
$ sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer/ $ sudo xcodebuild -runFirstLaunch
cocoapods のインストール
$ sudo gem install cocoapods $ cd ios $ pod install $ pod setup
起動
iOSシミュレーター
open -a Simulator
起動
$ flutter run $ flutter run -d web-server $ flutter run -d macos
Firebase
© 2006 矢木浩人