Reputation: 321
I am getting two errors,
Following are the contents of my Podfile,
flutter_application_path = 'flutter module path'
load File.join(flutter_application_path, '.ios', 'Flutter', 'podhelper.rb')
target 'Target Name' do
install_all_flutter_pods(flutter_application_path)
end
I have a flutter module which I am using in my project. So for that I am integrating that flutter module through Podfile.
If anyone wants to know about how to embed flutter module in iOS project, Please refer this link https://flutter.dev/docs/development/add-to-app/ios/project-setup
I have tried following solutions,
I am using Xcode 12.2.
Thanks in advance.
Upvotes: 17
Views: 23971
Reputation: 11155
For me it's was due to recently adding flavor configuration.
Thanks to other answers, I've checked .xcconfig
files, and files they are looking for.
I've found out, that Pods-Runner.debug.xcconfig
file doesn't exist anymore.
It was actually replaced by Pods-Runner.debug-myFlavor.xcconfig
, so I've modified both Debug.xcconfig
and Release.xcconfig
like that:
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug-myFlavor.xcconfig"
// added this ^^^^^^^^^
#include "Generated.xcconfig"
Upvotes: 1
Reputation: 1385
My solution was to pod deintegrate
and pod install
afterwards. Worked for Xcode Cloud pipeline.
Upvotes: 7
Reputation: 251
in my case i tried
1- pod repo update /pod deintegrate / pod install
with no success
then i noticed that inside my Runner>Flutter
both Debug.xcconfig and Release.xcconfig are missing
so i copied both files from older project
the content of files is
Debug.xcconfig:
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig"
#include "Generated.xcconfig"
and
Release.xcconfig:
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
these steps fixed my project i hope it will fix yours also
Upvotes: 5
Reputation: 9
@Yash's answer helped me.
I was using Xcode Cloud to build a Flutter project on iOS and encountered the same error.
iOS/Flutter/Release.xcconfig:
Change:
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
To:
#include? "../Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig"
#include "Generated.xcconfig"
Upvotes: 0
Reputation: 475
In my case i replaced ios folder with newly created app's ios folder and adjust changes on info.plist and project.pbxproj files
Upvotes: 0
Reputation: 321
I figured out the solution for this.
We need to make changes in build-debug.xcconfig and build-release.xcconfig.
In buid-debug.xcconfig, make changes like this,
In buid-release.xcconfig, make changes like this,
Please note, I was facing this issue in Cordova project. I haven't tried this solution in pure native ios project.
Upvotes: 0