问题
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: could not find included file 'Generated.xcconfig' in search paths (in target 'Runner')
Can anyone help me with how to solve this issue?
回答1:
Try running flutter build ios
and then rerun in Xcode
回答2:
Please follow these steps/run commands
- flutter clean (in terminal)
- flutter build (in terminal)
- In Xcode, then clean project
- In Xcode, then build project
The error should have gone now :)
回答3:
I assume you have already ios/
folder in your Flutter project. If not, you can run flutter build ios
.
The root cause of this error most of the times happens after you have cloned a project like from Github.
In order to fix, you need to get the packages and install the pods.
flutter clean && flutter pub get && cd ios/ && pod install
(In some situation you might need to update your Pod Repo and Pods. You can do that via running pod repo update && pod update
)
回答4:
Why does this error occur?
This error occurred when creating multiple builds types for App. Development and production build on 2 different firebase server. After we have done with all the setup and tried to run the build it, this error pops up on Xcode.
The solution to this depends on what steps you took before this error arrives
If you are getting this error without running flutter build ios then first try to this
Run
flutter build ios
to create a release buildTo ensure that Xcode refreshes the release mode configuration, close and re-open your Xcode workspace. For Xcode 8.3 and later
If you use
flutter build ios
when you receive the error? then try to this SolutionOn Terminal type:
flutter clean flutter build
And on Xcode:
Product >> Clean Build Folder Product >> Build
来源:https://stackoverflow.com/questions/54321180/error-could-not-find-included-file-generated-xcconfig-in-search-paths-in-tar