I am getting two errors,
- Unable to load contents of file list: ‘/Target Support Files/Pods-Target Name/Pods-Target Name-frameworks-Debug-input-files.xcfilelist’
- Unable to load contents of file list: ‘/Target Support Files/Pods-Target Name/Pods-Target Name-frameworks-Debug-output-files.xcfilelist’
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,
- pod deintegrate & pod install
- Deleting pods folder, podfile.lock, and auto-generated project-name.xcworkspace. Then pod install
- Deleting the entries in Embed Pods Framework->InputFileLists & OutputFileLists-> Clean Build. (Upon doing this it gives another error of podfile.lock file not in sync. Please do pod install)
- Deleting derived data -> Clean Build.
I am using Xcode 12.2.
Thanks in advance.
3
Answers
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.
In my case i replaced ios folder with newly created app’s ios folder and adjust changes on info.plist and project.pbxproj files
@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:
To: