skip to Main Content

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.

3

Answers


  1. Chosen as BEST ANSWER

    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.


  2. In my case i replaced ios folder with newly created app’s ios folder and adjust changes on info.plist and project.pbxproj files

    Login or Signup to reply.
  3. @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"
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search