skip to Main Content

I have installed new version of Xcode 15.0. After this I am unable to run my flutter app. It is showing me following error:

Error (Xcode): DT_TOOLCHAIN_DIR cannot be used to evaluate LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR instead

2

Answers


  1. I found this solution from here.

    post_install do |installer|
          installer.pods_project.targets.each do |target|
              target.build_configurations.each do |config|
              xcconfig_path = config.base_configuration_reference.real_path
              xcconfig = File.read(xcconfig_path)
              xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
              File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
              end
          end
      end
    

    Feel free to explore more answers from others. The above-written code has the highest reactions among all others.

    Login or Signup to reply.
  2. I have solved those issues in this way:

    post_install do |installer|
      installer.pods_project.targets.each do |target| 
        flutter_additional_ios_build_settings(target)
        target.build_configurations.each do |config|
          xcconfig_path = config.base_configuration_reference.real_path
          xcconfig = File.read(xcconfig_path)
          xcconfig_mod = xcconfig.gsub(/DT_TOOLCHAIN_DIR/, "TOOLCHAIN_DIR")
          File.open(xcconfig_path, "w") { |file| file << xcconfig_mod }
          end
      end
    end
    

    I hope this will help you.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search