-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toola: pluginsSupport for writing, building, and running plugin packagesSupport for writing, building, and running plugin packagesc: regressionIt was better in the past than it is nowIt was better in the past than it is nowplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
Steps to reproduce
I run flutter build macos on a project with native dependencies (Firebase) so that cocoapods needs to run. It used to work just fine, but now I'm getting the error message undefined method exists?' for File:Class. That method is called File.exists` in Ruby 3.2 … which is used by my version of cocoapods internally, so it seems. It might have started with Xcode 15.2 which I just installed, but I'm not sure.
I'm on Sonoma 14.2.1, using Homebrew 4.2.3, cocoapods 1.14.3 (which is dependent on Ruby 3.2.2 although this version isn't in the PATH) installed via brew install cocoapods, Xcode 15.2 and Flutter 3.18.0-19.0.pre.123
Expected results
It should run.
Actual results
[!] An error occurred while processing the post-install hook of the Podfile.
undefined method `exists?' for File:Class
/Users/sma/Work/flutter/packages/flutter_tools/bin/podhelper.rb:349:in `flutter_get_local_engine_dir'
/Users/sma/Work/flutter/packages/flutter_tools/bin/podhelper.rb:131:in `flutter_additional_macos_build_settings'
/Users/sma/Work/tellorium_poc/macos/Podfile:38:in `block (3 levels) in from_ruby'
/Users/sma/Work/tellorium_poc/macos/Podfile:37:in `each'
/Users/sma/Work/tellorium_poc/macos/Podfile:37:in `block (2 levels) in from_ruby'
/usr/local/Cellar/cocoapods/1.14.3/libexec/gems/cocoapods-core-1.14.3/lib/cocoapods-core/podfile.rb:196:in
`post_install!'
/usr/local/Cellar/cocoapods/1.14.3/libexec/gems/cocoapods-1.14.3/lib/cocoapods/installer.rb:1013:in
`run_podfile_post_install_hook'
...
Code sample
.
Screenshots or Video
.
Logs
.
Flutter Doctor output
Doctor output
[✓] Flutter (Channel master, 3.18.0-19.0.pre.123, on macOS 14.2.1 23C71 darwin-x64, locale de-DE)
• Flutter version 3.18.0-19.0.pre.123 on channel master at /Users/sma/Work/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 5f17badf41 (32 minutes ago), 2024-01-09 10:49:13 +0100
• Engine revision 820645dbcc
• Dart version 3.4.0 (build 3.4.0-4.0.dev)
• DevTools version 2.31.0
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
• Android SDK at /Users/sma/Library/Android/sdk
• Platform android-34, build-tools 32.0.0
• Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 17.0.7+0-17.0.7b1000.6-10550314)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Build 15C500b
• CocoaPods version 1.14.3
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (version 2023.1)
• 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 17.0.7+0-17.0.7b1000.6-10550314)
[✓] VS Code (version 1.85.1)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.80.0
...
• No issues found!Metadata
Metadata
Assignees
Labels
P1High-priority issues at the top of the work listHigh-priority issues at the top of the work lista: buildBuilding flutter applications with the toolBuilding flutter applications with the toola: pluginsSupport for writing, building, and running plugin packagesSupport for writing, building, and running plugin packagesc: regressionIt was better in the past than it is nowIt was better in the past than it is nowplatform-macBuilding on or for macOS specificallyBuilding on or for macOS specificallyteam-ecosystemOwned by Ecosystem teamOwned by Ecosystem teamtoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.