Skip to content

[video_player] Missing Swift version can cause compile issues when using CocoaPods #186232

Closed
flutter/packages
#11670

Description

@chjsun

Steps to reproduce

just flutter pub upgrade

  • video_player_avfoundation does not specify a Swift version and none of the targets (Runner) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.

Actual results

[!] Unable to determine Swift version for the following pods:

  • video_player_avfoundation does not specify a Swift version and none of the targets (Runner) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.

Logs

Logs
 
[!] Unable to determine Swift version for the following pods:

video_player_avfoundation does not specify a Swift version and none of the targets (Runner) integrating it have the SWIFT_VERSION attribute set. Please contact the author or set the SWIFT_VERSION attribute in at least one of the targets that integrate this pod.
Image

Flutter Doctor output

Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.41.7, on macOS 26.4.1 25E253 darwin-arm64, locale zh-Hans-CN)
[✓] Android toolchain - develop for Android devices (Android SDK version 36.1.0)
[✓] Xcode - develop for iOS and macOS (Xcode 26.2)
[✓] Chrome - develop for the web
[✓] Connected device (3 available)
[✓] Network resources

• No issues found!

Activity

  1. saurabh-mirajkar commented on May 8, 2026

    @saurabh-mirajkar
    Contributor

    @chjsun Thanks for the report.

    To make this actionable, could you please provide:

    • A minimal reproducible example (MRE)
    • Your pubspec.yaml
    • video_player_avfoundation versions before/after flutter pub upgrade
    • Whether this reproduces in a newly created Flutter project?
    • Your ios/Podfile contents (if customized)
  2. added
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    needs repro infoAutomated crash report whose cause isn't yet known
    and removed
    in triagePresently being triaged by the triage team
    on May 8, 2026
  3. added
    c: regressionIt was better in the past than it is now
    platform-iosiOS applications specifically
    platform-macosBuilding on or for macOS specifically
    packageflutter/packages repository. See also p: labels.
    P1High-priority issues at the top of the work list
    and removed
    waiting for responseThe Flutter team cannot make further progress on this issue until the original reporter responds
    needs repro infoAutomated crash report whose cause isn't yet known
    on May 8, 2026
  4. stuartmorgan-g commented on May 8, 2026

    @stuartmorgan-g
    Contributor

    No need for a repro case here; this is a mistake in the PR I landed yesterday.

  5. changed the title [-]video_player_avfoundation error[/-] [+][video_player] Missing Swift version can cause compile issues when using CocoaPods[/+] on May 8, 2026
  6. github-actions commented on May 22, 2026

    @github-actions

    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.

  7. locked as resolved and limited conversation to collaborators on May 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P1High-priority issues at the top of the work listc: regressionIt was better in the past than it is nowp: video_playerThe Video Player pluginpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyplatform-macosBuilding on or for macOS specifically

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions