Skip to content
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

Update CocoaPods recommended version to 1.9 #69809

Merged
merged 2 commits into from Nov 5, 2020

Conversation

jmagman
Copy link
Member

@jmagman jmagman commented Nov 4, 2020

Description

CocoaPods 1.9 introduced support for xcframeworks. It was released in February 2020.

Flutter will likely need to start being distributed as an xcframework to support Apple Silicon simulators. Nudge people to start upgrading.

Screen Shot 2020-11-04 at 12 51 54 PM

Related Issues

Fixes #69808
Fixes #69807

See #52071 for the last time this was done.

#60109
#64502

Tests

Updated cocoapods_test

@jmagman jmagman added platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management labels Nov 4, 2020
@jmagman jmagman self-assigned this Nov 4, 2020
@flutter-dashboard flutter-dashboard bot added tool Affects the "flutter" command-line tool. See also t: labels. work in progress; do not review labels Nov 4, 2020
@google-cla google-cla bot added the cla: yes label Nov 4, 2020
@flutter-dashboard flutter-dashboard bot added the team Infra upgrades, team productivity, code health, technical debt. See also team: labels. label Nov 4, 2020
@jmagman
Copy link
Member Author

jmagman commented Nov 4, 2020

This seems to have worked on the builder:

Fetching cocoapods 1.9.3
Installing cocoapods 1.9.3

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket.appspot.com/8864525671995568160/+/steps/Install_gems/0/steps/install_gems/0/stdout

@jmagman jmagman marked this pull request as ready for review November 5, 2020 02:01
@jmagman
Copy link
Member Author

jmagman commented Nov 5, 2020

This should probably wait for #69829 to make sure the devicelab machine have a new enough version of CocoaPods but I'm tempted to yolo merge this since it shouldn't actually cause any test failures, just add the doctor warning.

Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tool changes LGTM.

I think the devicelab will not fail if doctor checks don't all come back positive

expect(await cocoaPodsUnderTest.evaluateCocoaPodsInstallation, CocoaPodsStatus.recommended);
});

testWithoutContext('detects above recommended version', () async {
pretendPodIsInstalled();
pretendPodVersionIs('1.8.1');
pretendPodVersionIs('1.9.1');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a blocker, but should we be warning if the .z is above the recommended version?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, what do you mean? This test shows it returning CocoaPodsStatus.recommended which doesn't translate to a warning.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ahh, sorry, you're right.

Copy link
Member

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as keeper of the gemfile.lock file, i approve of this message.

@jmagman
Copy link
Member Author

jmagman commented Nov 5, 2020

Google tests unrelated #69923

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform-ios iOS applications specifically t: xcode "xcodebuild" on iOS and general Xcode project management team Infra upgrades, team productivity, code health, technical debt. See also team: labels. tool Affects the "flutter" command-line tool. See also t: labels.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade CocoaPods gem version on builders Update CocoaPods recommended version to 1.9
3 participants