A new Flutter project.
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.
$ open ios/Runner.xcodeproj/
- Select Runner (nested in Project, not in Targets)
- Select 'Build Settings'
- Click "+"
- Click "Add User-Defined Setting"
- Add FLUTTER_ROOT as the key and add the result of the following as the value:
$ which flutter | sed 's/.{11}$//'
(should be something like /Users/neil/.flutter)
(which flutter
should result in the binary, and the flutter root, should be one dir up)
- Select Runner (nested in Project, not in Targets)
- Select 'Info'
- Under configurations, open each one up and set the value to 'None'
- (make sure it says "No configurations set" on each item)
- Close Xcode
$ flutter clean $ flutter pub get $ rm -rf ~/Library/Developer/Xcode/DerivedData/ $ cd ios;rm -rf Pods/ Podfile Podfile.lock ; pod install; cd .. $ flutter build ios $ open ios/Runner.xcworkspace
( those commands as a one liner ): flutter clean; flutter pub get; rm -rf ~/Library/Developer/Xcode/DerivedData/; cd ios;rm -rf Pods/ Podfile Podfile.lock ; pod install; cd ..; flutter build ios; open ios/Runner.xcworkspace
flutter build ios; open ios/Runner.xcworkspace
- Select Product > Destination > Generic iOS Device
- Select Product > Archive
#TODO write setup for android building
update the version code (Y) in the pubspec.yml (2.X.X+Y)
flutter build appbundle --release --target-platform android-arm,android-arm64,android-x64
flutter build apk --release