Skip to content

Directories with only .gitkeep file within a plugin are not downloaded to pub cache #148002

@vashworth

Description

@vashworth

Steps to reproduce

  1. Create a flutter app
  2. Add a dependency for video_player_avfoundation 2.6.0
  3. flutter config --enable-swift-package-manager
  4. flutter build ios

Actual results

Will error with

xcodebuild: error: Could not resolve package dependencies:
  public headers ("include") directory path for 'video_player_avfoundation_ios' is invalid or not contained in the target

Logs

For example, this path should contain an include/.gitkeep directory

ls /path/to/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.6.0/darwin/video_player_avfoundation/Sources/video_player_avfoundation_ios

https://github.com/flutter/packages/tree/a9f14bc819e635f43f1861b8da807ce03b7ce013/packages/video_player/video_player_avfoundation/darwin/video_player_avfoundation/Sources/video_player_avfoundation_ios/include

Flutter Doctor output

Doctor output
<!-- Paste your output here -->

Metadata

Metadata

Assignees

No one assigned

    Labels

    a: buildBuilding flutter applications with the toolfound in release: 3.22Found to occur in 3.22has reproducible stepsThe issue has been confirmed reproducible and is ready to work onpackageflutter/packages repository. See also p: labels.platform-iosiOS applications specificallyr: solvedIssue is closed as solvedteam-iosOwned by iOS platform teamtoolAffects the "flutter" command-line tool. See also t: labels.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions