Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DISCUSSION] Use bundler to configure dependencies for iOS project #22998

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Tracked by #168015
artur-ios-dev opened this issue Oct 12, 2018 · 10 comments
Closed
Tracked by #168015

[DISCUSSION] Use bundler to configure dependencies for iOS project #22998

artur-ios-dev opened this issue Oct 12, 2018 · 10 comments
Labels
c: new feature Nothing broken; request for a new capability P3 Issues that are less important to the Flutter project platform-ios iOS applications specifically team-ios Owned by iOS platform team tool Affects the "flutter" command-line tool. See also t: labels. triaged-ios Triaged by iOS platform team

Comments

@artur-ios-dev
Copy link
Contributor

Right now if I am correct the flutter doctor tells us to install CocoaPods. Wouldn't it be better to install Bundler and use Gemfile to configure gem's dependencies - like CocoaPods?

Thanks to that we will make sure the template project is compatible with all the installed dependencies on a user's machine.

What do you guys think?

@zoechi zoechi added c: new feature Nothing broken; request for a new capability platform-ios iOS applications specifically tool Affects the "flutter" command-line tool. See also t: labels. labels Oct 12, 2018
@zoechi zoechi added this to the Future milestone Oct 12, 2018
@allenhsu
Copy link

I also noticed that when running flutter run it uses the global version of pod, so it's difficult to restrict version of pod. We use Bundler to manage version of fastlane and cocoapods for other commands, and fastlane respects Bundler if Gemfile is available. I hope flutter can do similar check.

@vysotsky
Copy link

The same thing. We're using fastlane for CI/CD and it require cocoapods to be in Gemfile. So as a workaround I currently have two cocoapods installed - the first one is installed globally and the second one is installed by bundler and used for archiving. Not so good solution anyway. I'd like flutter to respect Gemfile if it persists...

@artur-ios-dev
Copy link
Contributor Author

**NOTE: ** Should consider switching to SPM instead and there will be no need for CocoaPods and therefore Bundler, unless are there any other gems that are being used?

@Antol
Copy link

Antol commented Oct 25, 2019

I also like to have all dependencies strictly set by a project environment (.ruby-version, Gemfile, Podfile - you know). And as I working with many projects at the same time, some of them are legacy, I can't rely on global versions of any tools. So I would love to have flutter build which respects Gemfile and Bundler as fastlane does

@christopherfujino
Copy link
Contributor

Related to #40135

@kf6gpe kf6gpe added the P6 label May 29, 2020
@kf6gpe kf6gpe removed this from the Future milestone Jun 1, 2020
@flutter-triage-bot flutter-triage-bot bot added P3 Issues that are less important to the Flutter project and removed P6 labels Jun 28, 2023
@flutter-triage-bot flutter-triage-bot bot added multiteam-retriage-candidate team-ios Owned by iOS platform team triaged-ios Triaged by iOS platform team labels Jul 8, 2023
@KarimEbrahemAbdelaziz
Copy link

Hello guys,
@Antol @vysotsky @allenhsu

I added the feature to support Bundler to manage Gem dependencies, please review the PR and test it out and share you suggestions if any to improve it.

Here is the Draft PR.

Meanwhile I'm working on the tests for my changes to be done this week.

Thank you.

@christopherfujino
Copy link
Contributor

@loic-sharma should we close this issue as a wont-fix since we're focusing on swift package manager?

@loic-sharma
Copy link
Member

Thanks for the ping! We can close this issue once we started deprecating CocoaPods. I added it to the Swift Package Manager umbrella issue: #126005

@christopherfujino
Copy link
Contributor

@loic-sharma I'm going to close this issue because, in my opinion, we shouldn't add new functionality supporting cocoapods since we are imminently deprecating it anyway. This is to stop well-meaning people from opening PRs implementing this feature.

If you feel strongly, feel free to re-open this issue.

Copy link

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 -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
c: new feature Nothing broken; request for a new capability P3 Issues that are less important to the Flutter project platform-ios iOS applications specifically team-ios Owned by iOS platform team tool Affects the "flutter" command-line tool. See also t: labels. triaged-ios Triaged by iOS platform team
Projects
None yet
Development

No branches or pull requests

10 participants