Skip to content

Update xcode to 14e222b #3868

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

Merged
merged 7 commits into from
May 2, 2023
Merged

Conversation

vashworth
Copy link
Contributor

@vashworth vashworth commented May 1, 2023

Packages part of flutter/flutter#125814.

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the relevant style guides and ran the auto-formatter. (Unlike the flutter/flutter repo, the flutter/packages repo does use dart format.)
  • I signed the CLA.
  • The title of the PR starts with the name of the package surrounded by square brackets, e.g. [shared_preferences]
  • I listed at least one issue that this PR fixes in the description above.
  • I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.
  • I updated CHANGELOG.md to add a description of the change, following repository CHANGELOG style.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is test-exempt.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@vashworth
Copy link
Contributor Author

vashworth commented May 1, 2023

Mac_arm64 ios_platform_tests_shard_1 test failing:

/Volumes/Work/s/w/ir/x/w/packages/packages/video_player/video_player_avfoundation/ios/Classes/FLTVideoPlayerPlugin.m:149:47: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
 NS_INLINE UIViewController *rootViewController() {
                                               ^
                                                void

Seems to be similar issue as flutter/flutter#125812.

@vashworth
Copy link
Contributor Author

Mac_x64 check_podspecs failing due to same warning:

/Volumes/Work/s/w/ir/x/t/CocoaPods-Lint-20230501-45129-fsmr4f-camera_avfoundation/App/main.m:4:9: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]

@jmagman
Copy link
Member

jmagman commented May 1, 2023

Mac_arm64 ios_platform_tests_shard_1 test failing:

/Volumes/Work/s/w/ir/x/w/packages/packages/video_player/video_player_avfoundation/ios/Classes/FLTVideoPlayerPlugin.m:149:47: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
 NS_INLINE UIViewController *rootViewController() {
                                               ^
                                                void

Seems to be similar issue as flutter/flutter#125812.

Same warning, but this is code that should be updated in this repo:

NS_INLINE UIViewController *rootViewController() {

- NS_INLINE UIViewController *rootViewController() {
+ NS_INLINE UIViewController *rootViewController(void) {

Mac_x64 check_podspecs failing due to same warning:

Yes, this one is flutter/flutter#125812 and requires a CocoaPods bump. In the meantime we can add --allow-warnings with a TODO to remove when infra updates the necessary gem.

@jmagman
Copy link
Member

jmagman commented May 1, 2023

Same warning, but this is code that should be updated in this repo:

More examples pointed out in the test failures, like:

static NSDictionary<NSString *, id> *loadGoogleServiceInfo() {

@vashworth vashworth requested a review from hellohuanlin as a code owner May 1, 2023 20:18
@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

readonly OS=com.apple.CoreSimulator.SimRuntime.iOS-16-2

 readonly OS=com.apple.CoreSimulator.SimRuntime.iOS-16-3

@vashworth
Copy link
Contributor Author

readonly OS=com.apple.CoreSimulator.SimRuntime.iOS-16-2

 readonly OS=com.apple.CoreSimulator.SimRuntime.iOS-16-3

Do you mean 16-4?

@jmagman
Copy link
Member

jmagman commented May 1, 2023

Do you mean 16-4?

Ha, yup.

@jmagman
Copy link
Member

jmagman commented May 1, 2023

Actually @vashworth you may have to update the void parts separately and wait for them to be published before updating Xcode since camera_avfoundation is using the published version of video_player_avfoundation, not the version in the repo (or is there some other way to do this @stuartmorgan?)

/Volumes/Work/s/w/ir/x/w/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.4.4/ios/Classes/FLTVideoPlayerPlugin.m:149:47: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes]
NS_INLINE UIViewController *rootViewController() {
                                              ^
                                               void
1 error generated.

auto-submit bot pushed a commit that referenced this pull request May 1, 2023
…to avoid deprecation warning (#3873)

Fixes usages of function without a prototype, surfaced by warning "a function declaration without a prototype is deprecated in all versions of C" introduced in Xcode 14.3.

Tests failed because of this in #3868.
@jmagman
Copy link
Member

jmagman commented May 1, 2023

Yes, this one is flutter/flutter#125812 and requires a CocoaPods bump. In the meantime we can add --allow-warnings with a TODO to remove when infra updates the necessary gem.

I think this would "fix" (turn off) the last issue.

@stuartmorgan-g
Copy link
Contributor

or is there some other way to do this @stuartmorgan?

Sorry for the slow response, but if it's picking up transitive dependency warnings I don't think there was a non-hacky solution other than the route of pushing out the fix in a prequel PR.

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

@vashworth
Copy link
Contributor Author

@jmagman / @stuartmorgan do you have any idea why Cirrus CI / android-platform_tests CHANNEL:master PACKAGE_SHARDING:--shardIndex 0 --shardCount 7 test is failing? It it even supposed to run? Looks like other android-platform_tests get skipped

@stuartmorgan-g
Copy link
Contributor

Looks like it's just flake, unfortunately.

It it even supposed to run? Looks like other android-platform_tests get skipped

If you touch CI files, essentially everything runs; we don't do any smarts around which platforms might actually be affected. Those stable tests are skipped because we don't test stable in presubmit any more (but they are marked as skipped so that in cases were we specifically want them we can trigger manual re-runs from the UI).

@jmagman
Copy link
Member

jmagman commented May 2, 2023

It passed on re-run.

@vashworth vashworth added the autosubmit Merge PR when tree becomes green via auto submit App label May 2, 2023
@auto-submit auto-submit bot merged commit b9f2f1e into flutter:main May 2, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 3, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request May 3, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request May 3, 2023
flutter/packages@f163786...407b7da

2023-05-03 vashworth@google.com Update Cirrus to Xcode 14.3 (flutter/packages#3890)
2023-05-03 stuartmorgan@google.com [file_selector] Deprecates `macUTIs` (flutter/packages#3888)
2023-05-03 41930132+hellohuanlin@users.noreply.github.com [pigeon]enable treat warning as errors for swift code in unit test (flutter/packages#3889)
2023-05-02 vashworth@google.com Update xcode to 14e222b (flutter/packages#3868)
2023-05-02 41930132+hellohuanlin@users.noreply.github.com [pigeon]fix "as Any" workaround due to nested optional (flutter/packages#3658)
2023-05-02 10687576+bparrishMines@users.noreply.github.com [webview_flutter_android] Adds support to accept third party cookies (flutter/packages#3834)
2023-05-02 10687576+bparrishMines@users.noreply.github.com [webview_flutter_wkwebview] Fixes an exception caused by the `onUrlChange` callback returning a null url (flutter/packages#3848)
2023-05-02 pateltirth454@gmail.com [google_maps_flutter] [Docs] Note regarding usage within a bounded & an unbound widget  (flutter/packages#3691)
2023-05-02 evace93@gmail.com [local_auth_android] Fix Android lint warnings (flutter/packages#3764)
2023-05-02 koji.wakamiya@gmail.com [go_router_builder] Support go_router v7 (flutter/packages#3858)
2023-05-02 10687576+bparrishMines@users.noreply.github.com [webview_flutter_wkwebview] Fixes internal enum type and adds unknown enum values (flutter/packages#3812)
2023-05-02 stuartmorgan@google.com [file_selector] Add MIME type support on macOS (flutter/packages#3862)
2023-05-02 engine-flutter-autoroll@skia.org Roll Flutter from 828a040 to db6074a (12 revisions) (flutter/packages#3881)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC flutter-ecosystem@google.com,rmistry@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
zhouyuanbo pushed a commit to zhouyuanbo/video_player_avfoundation_2.4.6 that referenced this pull request Jun 1, 2023
…to avoid deprecation warning (#3873)

Fixes usages of function without a prototype, surfaced by warning "a function declaration without a prototype is deprecated in all versions of C" introduced in Xcode 14.3.

Tests failed because of this in flutter/packages#3868.
nploi pushed a commit to nploi/packages that referenced this pull request Jul 16, 2023
…to avoid deprecation warning (flutter#3873)

Fixes usages of function without a prototype, surfaced by warning "a function declaration without a prototype is deprecated in all versions of C" introduced in Xcode 14.3.

Tests failed because of this in flutter#3868.
nploi pushed a commit to nploi/packages that referenced this pull request Jul 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
autosubmit Merge PR when tree becomes green via auto submit App needs tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants