miguelpruivo / flutter_file_picker

File picker plugin for Flutter, compatible with mobile (iOS & Android), Web, Desktop (Mac, Linux, Windows) platforms with Flutter Go support.
MIT License
1.35k stars 673 forks source link

Cannot start file_picker with the launch setting nor run command #1208

Closed LeonardoMussato closed 1 year ago

LeonardoMussato commented 1 year ago

Describe the bug While I try to run the app on an IOS emulator a recive the following errors. I'm using the latest version 5.2.4 with flutter 3.3.8 with the Very Good Core framework. My PodFile is like this:

# Uncomment this line to define a global platform for your project
# platform :ios, '11.0'

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

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

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

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

Pod::PICKER_AUDIO = false
Pod::PICKER_DOCUMENT = false

target 'Runner' do
  use_frameworks!
  use_modular_headers!

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

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end

Platform

Platform OS version MacOS 12.6 with Macbook pro M1 Max

How are you picking?

Nothing at the moment because the error occured while building

Details to reproduce the issue The error appear everytime I try to run the app

Error LogArchiving com.uaffamily.mobile... Automatically signing iOS for device deployment using specified development team in Xcode project: 8YS26433MD Running pod install... 1,912ms CocoaPods' output: ↳ Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-Runner`: (``)

Fetching external sources
-> Fetching podspec for `Flutter` from `Flutter`
-> Fetching podspec for `connectivity_plus` from `.symlinks/plugins/connectivity_plus/ios`
-> Fetching podspec for `file_picker` from `.symlinks/plugins/file_picker/ios`
-> Fetching podspec for `flutter_native_splash` from `.symlinks/plugins/flutter_native_splash/ios`
-> Fetching podspec for `intercom_flutter` from `.symlinks/plugins/intercom_flutter/ios`
-> Fetching podspec for `package_info_plus` from `.symlinks/plugins/package_info_plus/ios`
-> Fetching podspec for `rollbar_flutter` from `.symlinks/plugins/rollbar_flutter/ios`
-> Fetching podspec for `shared_preferences_ios` from `.symlinks/plugins/shared_preferences_ios/ios`
-> Fetching podspec for `sqlite3_flutter_libs` from `.symlinks/plugins/sqlite3_flutter_libs/ios`
-> Fetching podspec for `uni_links` from `.symlinks/plugins/uni_links/ios`
-> Fetching podspec for `url_launcher_ios` from `.symlinks/plugins/url_launcher_ios/ios`
-> Fetching podspec for `webview_flutter_wkwebview` from `.symlinks/plugins/webview_flutter_wkwebview/ios`

Resolving dependencies of `Podfile`
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: all_pods_versions_d_d_6.txt exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/d/d/6/ReachabilitySwift/5.0.0/ReachabilitySwift.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: all_pods_versions_1_6_1.txt exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.3.4/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/1.0.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/1.0.2/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/1.0.3/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/1.0.4/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/1.1.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.0.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.1.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.2.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.3.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.3.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.3.5/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.3.6/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.3.7/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.4.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.4.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.4.2/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/2.4.3/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.2/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.3/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.4/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.5/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.6/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.7/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.8/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.9/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.10/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.0.11/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.1.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.1.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.1.2/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.1.3/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.2.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.2.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.3.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.3.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.3.2/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.3.3/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.3.4/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.3.5/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.4.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.4.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.4.2/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.2/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.3/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.4/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.5/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.6/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.5.7/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.6.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.6.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.6.2/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.8.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/3.8.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.0-beta/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo
  update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.0-beta2/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo
  update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.2/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.3/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.0.4/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.2/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.3/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.4/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.5/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.6/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.1.7/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.2.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.2.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.2.2/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.3.0/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.3.1/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.3.2/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.3.3/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: Specs/1/6/1/DKImagePickerController/4.3.4/DKImagePickerController.podspec.json exists! Returning local because checking is only performed in repo update
  CDN: trunk Relative path: all_pods_versions_a_6_2.txt exists! Returning local because checking is only performed in repo update

Comparing resolved specification to the sandbox manifest
  A DKImagePickerController
  A DKPhotoGallery
  A Flutter
  A Intercom
  A PLCrashReporter
  A ReachabilitySwift
  A RollbarCommon
  A RollbarNotifier
  A RollbarPLCrashReporter
  A SDWebImage
  A SwiftyGif
  A connectivity_plus
  A file_picker
  A flutter_native_splash
  A intercom_flutter
  A package_info_plus
  A rollbar_flutter
  A shared_preferences_ios
  A sqlite3
  A sqlite3_flutter_libs
  A uni_links
  A url_launcher_ios
  A webview_flutter_wkwebview

Downloading dependencies

-> Installing DKImagePickerController (4.3.4)
  > Copying DKImagePickerController from `/Users/leo/Library/Caches/CocoaPods/Pods/Release/DKImagePickerController/4.3.4-b512c` to `Pods/DKImagePickerController`

-> Installing DKPhotoGallery (0.0.17)
  > Copying DKPhotoGallery from `/Users/leo/Library/Caches/CocoaPods/Pods/Release/DKPhotoGallery/0.0.17-fdfad` to `Pods/DKPhotoGallery`

-> Installing Flutter (1.0.0)

-> Installing Intercom (14.0.3)
  > Copying Intercom from `/Users/leo/Library/Caches/CocoaPods/Pods/Release/Intercom/14.0.3-068fc` to `Pods/Intercom`

-> Installing PLCrashReporter (1.10.2)
  > Copying PLCrashReporter from `/Users/leo/Library/Caches/CocoaPods/Pods/Release/PLCrashReporter/1.10.2-2a080` to `Pods/PLCrashReporter`

-> Installing ReachabilitySwift (5.0.0)
  > Copying ReachabilitySwift from `/Users/leo/Library/Caches/CocoaPods/Pods/Release/ReachabilitySwift/5.0.0-98503` to `Pods/ReachabilitySwift`

-> Installing RollbarCommon (2.3.4)
  > Copying RollbarCommon from `/Users/leo/Library/Caches/CocoaPods/Pods/Release/RollbarCommon/2.3.4-9a819` to `Pods/RollbarCommon`

-> Installing RollbarNotifier (2.3.4)
  > Copying RollbarNotifier from `/Users/leo/Library/Caches/CocoaPods/Pods/Release/RollbarNotifier/2.3.4-97b17` to `Pods/RollbarNotifier`

-> Installing RollbarPLCrashReporter (2.3.4)
  > Copying RollbarPLCrashReporter from `/Users/leo/Library/Caches/CocoaPods/Pods/Release/RollbarPLCrashReporter/2.3.4-bf0e7` to `Pods/RollbarPLCrashReporter`

-> Installing SDWebImage (5.14.2)
  > Copying SDWebImage from `/Users/leo/Library/Caches/CocoaPods/Pods/Release/SDWebImage/5.14.2-b9a73` to `Pods/SDWebImage`

-> Installing SwiftyGif (5.4.3)
  > Copying SwiftyGif from `/Users/leo/Library/Caches/CocoaPods/Pods/Release/SwiftyGif/5.4.3-6c3ea` to `Pods/SwiftyGif`

-> Installing connectivity_plus (0.0.1)

-> Installing file_picker (0.0.1)

-> Installing flutter_native_splash (0.0.1)

-> Installing intercom_flutter (7.5.0)

-> Installing package_info_plus (0.4.5)

-> Installing rollbar_flutter (1.2.0)

-> Installing shared_preferences_ios (0.0.1)

-> Installing sqlite3 (3.40.0)
  > Copying sqlite3 from `/Users/leo/Library/Caches/CocoaPods/Pods/Release/sqlite3/3.40.0-88dd9` to `Pods/sqlite3`

-> Installing sqlite3_flutter_libs (0.0.1)

-> Installing uni_links (0.0.1)

-> Installing url_launcher_ios (0.0.1)

-> Installing webview_flutter_wkwebview (0.0.1)
  - Running pre install hooks
  - Running pre integrate hooks

Generating Pods project
  - Creating Pods project
  - Installing files into Pods project
    - Adding source files
    - Adding frameworks
    - Adding libraries
    - Adding resources
    - Adding development pod helper files
    - Linking headers
  - Installing Pod Targets
    - Installing target `DKImagePickerController` iOS 9.0
      - Generating Info.plist file at `Pods/Target Support Files/DKImagePickerController/ResourceBundle-DKImagePickerController-DKImagePickerController-Info.plist`
      - Generating module map file at `Pods/Target Support Files/DKImagePickerController/DKImagePickerController.modulemap`
      - Generating umbrella header at `Pods/Target Support Files/DKImagePickerController/DKImagePickerController-umbrella.h`
      - Generating Info.plist file at `Pods/Target Support Files/DKImagePickerController/DKImagePickerController-Info.plist`
      - Generating dummy source at `Pods/Target Support Files/DKImagePickerController/DKImagePickerController-dummy.m`
    - Installing target `DKPhotoGallery` iOS 9.0
      - Generating Info.plist file at `Pods/Target Support Files/DKPhotoGallery/ResourceBundle-DKPhotoGallery-DKPhotoGallery-Info.plist`
      - Generating module map file at `Pods/Target Support Files/DKPhotoGallery/DKPhotoGallery.modulemap`
      - Generating umbrella header at `Pods/Target Support Files/DKPhotoGallery/DKPhotoGallery-umbrella.h`
      - Generating Info.plist file at `Pods/Target Support Files/DKPhotoGallery/DKPhotoGallery-Info.plist`
      - Generating dummy source at `Pods/Target Support Files/DKPhotoGallery/DKPhotoGallery-dummy.m`
    - Installing target `Flutter` iOS 11.0
    - Installing target `Intercom` iOS 13.0
    - Installing target `PLCrashReporter` iOS 9.0
    - Installing target `ReachabilitySwift` iOS 8.0
      - Generating module map file at `Pods/Target Support Files/ReachabilitySwift/ReachabilitySwift.modulemap`
      - Generating umbrella header at `Pods/Target Support Files/ReachabilitySwift/ReachabilitySwift-umbrella.h`
      - Generating Info.plist file at `Pods/Target Support Files/ReachabilitySwift/ReachabilitySwift-Info.plist`
      - Generating dummy source at `Pods/Target Support Files/ReachabilitySwift/ReachabilitySwift-dummy.m`
    - Installing target `RollbarCommon` iOS 13.0
      - Copying module map file to `Pods/Target Support Files/RollbarCommon/RollbarCommon.modulemap`
      - Generating Info.plist file at `Pods/Target Support Files/RollbarCommon/RollbarCommon-Info.plist`
      - Generating dummy source at `Pods/Target Support Files/RollbarCommon/RollbarCommon-dummy.m`
    - Installing target `RollbarNotifier` iOS 13.0
      - Copying module map file to `Pods/Target Support Files/RollbarNotifier/RollbarNotifier.modulemap`
      - Generating Info.plist file at `Pods/Target Support Files/RollbarNotifier/RollbarNotifier-Info.plist`
      - Generating dummy source at `Pods/Target Support Files/RollbarNotifier/RollbarNotifier-dummy.m`
    - Installing target `RollbarPLCrashReporter` iOS 13.0
      - Copying module map file to `Pods/Target Support Files/RollbarPLCrashReporter/RollbarPLCrashReporter.modulemap`
      - Generating Info.plist file at `Pods/Target Support Files/RollbarPLCrashReporter/RollbarPLCrashReporter-Info.plist`
      - Generating dummy source at `Pods/Target Support Files/RollbarPLCrashReporter/RollbarPLCrashReporter-dummy.m`
    - Installing target `SDWebImage` iOS 9.0
      - Generating module map file at `Pods/Target Support Files/SDWebImage/SDWebImage.modulemap`
      - Generating umbrella header at `Pods/Target Support Files/SDWebImage/SDWebImage-umbrella.h`
      - Generating Info.plist file at `Pods/Target Support Files/SDWebImage/SDWebImage-Info.plist`
      - Generating dummy source at `Pods/Target Support Files/SDWebImage/SDWebImage-dummy.m`
    - Installing target `SwiftyGif` iOS 9.0
      - Generating module map file at `Pods/Target Support Files/SwiftyGif/SwiftyGif.modulemap`
      - Generating umbrella header at `Pods/Target Support Files/SwiftyGif/SwiftyGif-umbrella.h`
      - Generating Info.plist file at `Pods/Target Support Files/SwiftyGif/SwiftyGif-Info.plist`
      - Generating dummy source at `Pods/Target Support Files/SwiftyGif/SwiftyGif-dummy.m`
    - Installing target `connectivity_plus` iOS 9.0
      - Generating module map file at `Pods/Target Support Files/connectivity_plus/connectivity_plus.modulemap`
      - Generating umbrella header at `Pods/Target Support Files/connectivity_plus/connectivity_plus-umbrella.h`
      - Generating Info.plist file at `Pods/Target Support Files/connectivity_plus/connectivity_plus-Info.plist`
      - Generating dummy source at `Pods/Target Support Files/connectivity_plus/connectivity_plus-dummy.m`
    - Installing target `file_picker` iOS 8.0
  CDN: trunk Relative path: CocoaPods-version.yml exists! Returning local because checking is only performed in repo update

――― MARKDOWN TEMPLATE ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

### Command

```
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/bin/pod install --verbose
```

### Report

* What did you do?

* What did you expect to happen?

* What happened instead?

### Stack

```
   CocoaPods : 1.11.3
        Ruby : ruby 3.2.0 (2022-12-25 revision a528908271) [arm64-darwin21]
    RubyGems : 3.4.2
        Host : macOS 12.6 (21G115)
       Xcode : 14.1 (14B47b)
         Git : git version 2.37.1 (Apple Git-137.1)
Ruby lib dir : /opt/homebrew/Cellar/ruby/3.2.0/lib
Repositories : trunk - CDN - https://cdn.cocoapods.org/
```

### Plugins

```
cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0
```

### Podfile

```ruby
# Uncomment this line to define a global platform for your project
# platform :ios, '11.0'

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

project 'Runner', {
  'Debug' => :debug,
  'Profile' => :release,
  'Release' => :release,
}

def flutter_root
  generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'Generated.xcconfig'), __FILE__)
  unless File.exist?(generated_xcode_build_settings_path)
    raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure flutter pub get is executed first"
  end

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

require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root)

flutter_ios_podfile_setup

Pod::PICKER_AUDIO = false
Pod::PICKER_DOCUMENT = false

target 'Runner' do
  use_frameworks!
  use_modular_headers!

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

post_install do |installer|
  installer.pods_project.targets.each do |target|
    flutter_additional_ios_build_settings(target)
  end
end
```

### Error

```
NoMethodError - undefined method `=~' for [["PICKER_MEDIA=1"]]:Array
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:446:in `block (2 levels) in merged_xcconfigs'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:446:in `all?'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:446:in `block in merged_xcconfigs'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:444:in `each'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:444:in `each_with_object'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:444:in `merged_xcconfigs'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:1057:in `block in <class:PodTargetSettings>'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/target/build_settings.rb:120:in `block in define_build_settings_method'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:177:in `block in
remove_pod_target_xcconfig_overrides_from_target'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:174:in `each'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:174:in
`remove_pod_target_xcconfig_overrides_from_target'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:157:in `block in add_target'
<internal:kernel>:90:in `tap'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:156:in `add_target'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:47:in `block in install!'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:149:in `message'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator/pod_target_installer.rb:40:in `install!'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:115:in `block in install_pod_targets'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:112:in `map'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/pods_project_generator.rb:112:in `install_pod_targets'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:32:in `block in install_all_pod_targets'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:149:in `message'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:31:in `install_all_pod_targets'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer/xcode/single_pods_project_generator.rb:19:in `generate!'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:314:in `block in create_and_save_projects'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/user_interface.rb:64:in `section'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:309:in `create_and_save_projects'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:301:in `generate_pods_project'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:180:in `integrate'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/installer.rb:167:in `install!'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command/install.rb:52:in `run'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/claide-1.1.0/lib/claide/command.rb:334:in `run'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/lib/cocoapods/command.rb:52:in `run'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/gems/cocoapods-1.11.3/bin/pod:55:in `<top (required)>'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/bin/pod:25:in `load'
/opt/homebrew/Cellar/cocoapods/1.11.3_1/libexec/bin/pod:25:in `<main>'
```

――― TEMPLATE END ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――

[!] Oh no, an error occurred.

Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=undefined+method+%60%3D~%27+for+%5B%5B%22PICKER_MEDIA%3D1%22%5D%5D%3AArray&type=Issues

If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new

Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md

Don't forget to anonymize any private data!

Looking for related issues on cocoapods/cocoapods...
Found no similar issues. To create a new issue, please visit:
https://github.com/cocoapods/cocoapods/issues/new

Error output from CocoaPods: ↳

[!] Automatically assigning platform `iOS` with version `13.0` on target `Runner` because no platform was specified. Please specify a platform for this target in your Podfile. See
`https://guides.cocoapods.org/syntax/podfile.html#platform`.

Flutter Version details [✓] Flutter (Channel stable, 3.3.8, on macOS 12.6 21G115 darwin-arm, locale en-IT) • Flutter version 3.3.8 on channel stable at /Users/leo/development/flutter • Upstream repository https://github.com/flutter/flutter.git • Framework revision 52b3dc25f6 (9 weeks ago), 2022-11-09 12:09:26 +0800 • Engine revision 857bd6b74c • Dart version 2.18.4 • DevTools version 2.15.0

[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0) • Android SDK at /Users/leo/Library/Android/sdk • Platform android-33, build-tools 33.0.0 • Java binary at: /Applications/Android Studio.app/Contents/jre/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866) • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 14.1) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 14B47b • CocoaPods version 1.11.3

[✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2021.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 11.0.13+0-b1751.21-8125866)

[✓] VS Code (version 1.74.2) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.56.0

[✓] Connected device (3 available) • iPhone 14 Pro Max (mobile) • AA154037-74FD-4CF2-8E25-04607BFA149A • ios • com.apple.CoreSimulator.SimRuntime.iOS-16-1 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 12.6 21G115 darwin-arm • Chrome (web) • chrome • web-javascript • Google Chrome 108.0.5359.124

[✓] HTTP Host Availability • All required HTTP hosts are available

THANKS FOR YOUR HELP IN ADVANCE

tomk9 commented 1 year ago

I have the same error. @LeonardoMussato can you check my fix? https://github.com/miguelpruivo/flutter_file_picker/pull/1209

miguelpruivo commented 1 year ago

@LeonardoMussato let me know if the fix works for you and I'll merge it.

AlessandroToschi commented 1 year ago

For us, that fix worked!

LeonardoMussato commented 1 year ago

It seems to work thank you! Now the app starts without any problem and the feature seems to work normally.

AlessandroToschi commented 1 year ago

We dig the problem a bit, and the root cause was probably related to the latest revision of cocoapods 1.11.3_1 which embedded the new ruby 3.2.0 that doesn't allow that operator.

Rollback to cocoa pods 1.11.3 and ruby 3.1.3 solves the problem too

miguelpruivo commented 1 year ago

I'll merge it. Thanks for reporting back.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open for 14 days with no activity.

github-actions[bot] commented 1 year ago

This issue was closed because it has been inactive for 14 days since being marked as stale.