Skip to content

[Regression] Cocoapods shows "undefined method `exists?' for File:Class" error #147041

@sma

Description

@sma

Steps to reproduce

This bug is back in

$ flutter --version
Flutter 3.22.0-14.0.pre.33 • channel master • https://github.com/flutter/flutter.git
Framework • revision 12d54de962 (2 hours ago) • 2024-04-19 03:10:34 -0400
Engine • revision 25d773ea90
Tools • Dart 3.5.0 (build 3.5.0-76.0.dev) • DevTools 2.35.0-dev.8

(I can't reopen my original bug)

It was re-introduced by 6d19fa3, 12 hours ago.

It's called exist? since Ruby 2.2 and the deprecated exists? method was removed in Ruby 3.2. And Cocoapods installed by Homebrew uses Ruby 3.3, so it crashes.

Expected results

it should work

Actual results

it doesn't

Code sample

Code sample
[Paste your code here]

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
[Paste your logs here]

Flutter Doctor output

Doctor output
[Paste your output here]

Metadata

Metadata

Assignees

Labels

a: buildBuilding flutter applications with the toola: pluginsSupport for writing, building, and running plugin packagesc: regressionIt was better in the past than it is nowplatform-iosiOS applications specificallyplatform-macBuilding on or for macOS specificallyr: fixedIssue is closed as already fixed in a newer versionteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions