Repository navigation
podhelper.rb uses deprecated, recently-removed exists? method #109385
Description
Activity
- addedplatform-iosiOS applications specificallyiOS applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.a: buildBuilding flutter applications with the toolBuilding flutter applications with the tool
on Aug 11, 2022 Looks like
exists?was removed in ruby/ruby@bf97415 so the script won't work with very recent versions of Ruby./cc @jmagman
oh dear
- changed the title
[-]M1 flutter build [/-][+]`podhelper.rb` uses deprecated, recently-removed `exists?` method[/+]on Aug 11, 2022 Looks like it was removed in Ruby 3.2, which is still in preview. Ruby 3.1.2 was the last released version.
- What's the output of
$ ruby -v - If you open path/to/flutter-sdk/packages/flutter_tools/bin/podhelper.rb and change this line:
- return [] unless File.exists? file_path + return [] unless File.exists file_path
does the flutter command succeed on your iOS project?
- What's the output of
Error resolved by switching to Ruby3.1.2
Error resolved by switching to Ruby3.1.2
Can you switch back and validate that the diff works on 3.2?
@jack7758258 alternatively, the fix #109428 has merged into master. Can you switch back to Ruby 3.2 preview, check out the Flutter master channel and validate that you are able to build your iOS app? Your validation of the fix would be really helpful!
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.- locked as resolved and limited conversation to collaborators
on Aug 26, 2022 - addedpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
on Jul 5, 2023
Automatically signing iOS for device deployment using specified development team
in Xcode project: 89B89GC38P
Running pod install... 324ms
CocoaPods' output:
↳