Questions tagged [flutter-build]

146 questions
179
votes
12 answers

Do not use BuildContexts across async gaps

I have noticed a new lint issue in my project. Long story short: I need to use BuildContext in my custom classes flutter lint tool is not happy when this being used with aysnc method. Example: MyCustomClass{ final buildContext context; …
101
votes
7 answers

Error: Could not find included file 'Generated.xcconfig' in search paths (in target 'Runner')

I have created a Flutter project in Android Studio. It runs fine on Android devices but when I try to run it on Xcode, I get an error as: Build system information error: /Users/Downloads/flutter_wallpaper-master 2/ios/Flutter/Debug.xcconfig:1:…
Swift Guy
  • 1,245
  • 2
  • 8
  • 19
28
votes
1 answer

error: Build input file cannot be found: '/Users/GoogleService-Info.plist' (in target 'Runner' from project 'Runner')

I'm trying to take the iOS build of a Flutter project. No matter what I try it just gives me the following error: error: Build input file cannot be found: '/Users/GoogleService-Info.plist' (in target 'Runner' from project 'Runner') This is the set…
Nina
  • 1,579
  • 2
  • 21
  • 51
11
votes
5 answers

Failed iOS Build , "Error running pod install" . pod install / pod install --repo-update doesn't solve the issue

After flutter build ios --release, it got stuck in pod install, resulting in Error running pod install: Running pod install... 954ms CocoaPods' output: ↳ Preparing Analyzing dependencies …
SoulAndBone
  • 250
  • 2
  • 9
10
votes
2 answers

flutter build_runner takes too long

I am using EasyLocalization, mobx, JsonSerializable etc. To generate *.g.dart files, I am using build_runner watch or the script in scripts/build.sh: flutter packages pub run build_runner build It was taking 2 seconds at most, but then suddenly it…
Muhammed Aydogan
  • 570
  • 1
  • 4
  • 22
9
votes
8 answers

Flutter iOS build fail on running pod install

I'm trying to make a flutter plugin, so I created a plugin by steps provided on https://flutter.dev/docs/development/packages-and-plugins/developing-packages. I'm getting an error when I try to run an ios example. Below is the log I'm getting while…
Amol Gangadhare
  • 1,059
  • 2
  • 11
  • 24
6
votes
3 answers

XCode Error PhaseScriptExecution failed with a nonzero exit code

Need you help please. I've created flutter app and now want to create archive for distribution in Xcode 14.3 . Issue Archive is disabled. Getting this error with build failed PhaseScriptExecution failed with a nonzero exit code Already tried Pod…
Taimoor Sikander
  • 605
  • 1
  • 3
  • 11
6
votes
1 answer

two packages are using two different compileSdkVersion in flutter

I am working with geolocator and permission_handler package in my app but now both packages have different requirement for compileSdkVersion which is 30 and 31 respectively. I am trying to change compileSdkVersion but its not working anymore Now if…
Arslan Kaleem
  • 1,410
  • 11
  • 25
6
votes
1 answer

Flutter Windows build Failed, error LNK1168

While building a Flutter app for Windows in debug mode, this error is occuring. flutter doctor -v gives normal output. What might be the cause of this ? Launching lib\main.dart on Windows in debug mode... lib\main.dart:1 LINK : fatal error LNK1168:…
aihamhasan
  • 479
  • 1
  • 6
  • 11
6
votes
4 answers

Flutter - prevent rebuild when using MediaQuery

I want to use MediaQuery to build widgets based on screen height and width. The problem, also referenced in #26004, is that I only want to query the size data once, for example in initState. MediaQuery documentation states Querying the current…
6
votes
2 answers

Flutter iOS release and profile builds are not working properly

I have a very weird problem, which I just can't solve: I want to test my app on my iPhone and testing the app over the day in different locations. So I need to make a profile or release build to have the app installed on my phone. Debug mode is…
benicamera
  • 750
  • 1
  • 7
  • 24
6
votes
6 answers

Flutter Hot Reload and Hot Restart do not always work

For now one week, sometimes when I HotReload my changes are not applied (the log says it's been HotReload but in fact, they are not) and the same when I HotRestart so I'm forced to stop and re-run the app (and sometimes to delete the build)! …
Milvintsiss
  • 1,420
  • 1
  • 18
  • 34
5
votes
0 answers

How to sign flutter build IPA manually

When I run the command flutter build ipa --export-options-plist= Flutter still tries to sign the build automatically using the details specified in the xcode project, even though I have set signingStyle to manual, and specified a…
sarope
  • 83
  • 5
4
votes
3 answers

Error when compiling and in flutter pub upgrade and pub outdated

I am creating an application in flutter and everything was going well, but at the moment it started giving me an error. It won't let me compile and flutter pub upgrade and flutter pub outdated don't work, but flutter pub get if it works fine. I am…
4
votes
0 answers

flutter build web command failing on linux machines after update 2.8.1

I am trying to build flutter web app on ubuntu machine with command "flutter build web". Build is getting failed with below stack-trace. It is occurring since Flutter update 2.8.1 I have tried it on local machine as well as on azure VM. I am getting…
iQSarvesh
  • 51
  • 1
1
2 3
9 10