ios – DT_TOOLCHAIN_DIR can’t be used to judge LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR as a substitute

0
48


Making an attempt to run a flutter app after newest Xcode and iOS 17 replace and get the next error “DT_TOOLCHAIN_DIR can’t be used to judge LIBRARY_SEARCH_PATHS, use TOOLCHAIN_DIR as a substitute”

# Uncomment this line to outline a world platform in your undertaking
# platform :ios, '11.0'

# CocoaPods analytics sends community stats synchronously affecting flutter construct latency.
ENV['COCOAPODS_DISABLE_STATS'] = 'true'

undertaking 'Runner', {
  'Debug' => :debug,
  'Profile' => :launch,
  'Launch' => :launch,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.be a part of('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  until File.exist?(generated_xcode_build_settings_path)
    elevate "#{generated_xcode_build_settings_path} should exist. In case you're operating pod set up manually, make sure that flutter pub get is executed first"
  finish

  File.foreach(generated_xcode_build_settings_path) do |line|
    matches = line.match(/FLUTTER_ROOT=(.*)/)
    return matches[1].strip if matches
  finish
  elevate "FLUTTER_ROOT not present in #{generated_xcode_build_settings_path}. Attempt deleting Generated.xcconfig, then run flutter pub get"
finish

require File.expand_path(File.be a part of('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

goal 'Runner' do
  use_frameworks!
  use_modular_headers!

  flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
finish

post_install do |installer|
  installer.generated_projects.every do |undertaking|
    undertaking.targets.every do |goal|
        goal.build_configurations.every do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
            # You'll be able to allow the permissions wanted right here. For instance to allow digicam
            # permission, simply take away the `#` character in entrance so it seems to be like this:
            #
            # ## dart: PermissionGroup.digicam
            # 'PERMISSION_CAMERA=1'
            #
            #  Preprocessor definitions will be present in: https://github.com/Baseflow/flutter-permission-handler/blob/grasp/permission_handler_apple/ios/Courses/PermissionHandlerEnums.h
            config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= [
              '$(inherited)',
        
              ## dart: PermissionGroup.calendar
              # 'PERMISSION_EVENTS=1',
        
              ## dart: PermissionGroup.reminders
              # 'PERMISSION_REMINDERS=1',
        
              ## dart: PermissionGroup.contacts
              # 'PERMISSION_CONTACTS=1',
        
              ## dart: PermissionGroup.camera
              'PERMISSION_CAMERA=1',
        
              ## dart: PermissionGroup.microphone
              # 'PERMISSION_MICROPHONE=1',
        
              ## dart: PermissionGroup.speech
              # 'PERMISSION_SPEECH_RECOGNIZER=1',
        
              ## dart: PermissionGroup.photos
              # 'PERMISSION_PHOTOS=1',
        
              ## dart: [PermissionGroup.location, PermissionGroup.locationAlways, PermissionGroup.locationWhenInUse]
              # 'PERMISSION_LOCATION=1',
                
              ## dart: PermissionGroup.notification
              # 'PERMISSION_NOTIFICATIONS=1',
        
              ## dart: PermissionGroup.mediaLibrary
              # 'PERMISSION_MEDIA_LIBRARY=1',
        
              ## dart: PermissionGroup.sensors
              # 'PERMISSION_SENSORS=1',   
                
              ## dart: PermissionGroup.bluetooth
              # 'PERMISSION_BLUETOOTH=1',
        
              ## dart: PermissionGroup.appTrackingTransparency
              # 'PERMISSION_APP_TRACKING_TRANSPARENCY=1',
        
              ## dart: PermissionGroup.criticalAlerts
              # 'PERMISSION_CRITICAL_ALERTS=1'
            ]
         finish
    finish
finish
  installer.pods_project.targets.every do |goal|
    flutter_additional_ios_build_settings(goal)
  finish
finish

Anybody understand how I can modify this to work?
This appears to occur that there is some kind of error after upgrading Xcode.