Search code examples
iosxcodecordovacocoapods

Unable to load contents of file list: '/Target Support Files/Pods-Target Name/Pods-Target Name-frameworks-Debug-input-files.xcfilelist'


I am getting two errors,

  1. Unable to load contents of file list: '/Target Support Files/Pods-Target Name/Pods-Target Name-frameworks-Debug-input-files.xcfilelist'
  2. 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,

  1. pod deintegrate & pod install
  2. Deleting pods folder, podfile.lock, and auto-generated project-name.xcworkspace. Then pod install
  3. 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)
  4. Deleting derived data -> Clean Build.

I am using Xcode 12.2.

Thanks in advance.


Solution

  • 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,

    1. Comment this line: #include "../pods-debug.xcconfig"
    2. Add this line below the comment: #include "../Pods/Target Support Files/Pods-Target Name/Pods-Target Name.debug.xcconfig"

    In buid-release.xcconfig, make changes like this,

    1. Comment this line: #include "../pods-release.xcconfig"
    2. Add this line below the comment: #include "../Pods/Target Support Files/Pods-Target Name/Pods-Target Name.release.xcconfig"

    Please note, I was facing this issue in Cordova project. I haven't tried this solution in pure native ios project.