Skip to content

[file_selector] Add Swift Package Manager compatibility to file_selector_ios and file_selector_macos #146903

Closed

Description

@vashworth

Prerequisites:


Follow "Converting an existing Objective-C Flutter Plugin to a Swift Package" instructions to make file_selector_ios plugin compatible with Swift Package Manager and CocoaPods.

To validate all is working, run the following commands

// Disable swift package manager
flutter config --no-enable-swift-package-manager

// Build example with CocoaPods
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --ios --packages=file_selector_ios

// Build example with swift package manager
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --ios --swift-package-manager --packages=file_selector_ios

// Run native tests
dart run script/tool/bin/flutter_plugin_tools.dart native-test --ios --packages=file_selector_ios

Follow "Converting an existing Swift Flutter Plugin to a Swift Package" instructions to make file_selector_macos plugin compatible with Swift Package Manager and CocoaPods.

To validate all is working, run the following commands

// Disable swift package manager
flutter config --no-enable-swift-package-manager

// Build example with CocoaPods
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --macos --packages=file_selector_macos

// Build example with swift package manager
dart run script/tool/bin/flutter_plugin_tools.dart build-examples --macos --swift-package-manager --packages=file_selector_macos

// Run native tests
dart run script/tool/bin/flutter_plugin_tools.dart native-test --macos --packages=file_selector_macos

Activity

  1. added
    platform-iosiOS applications specifically
    platform-macosBuilding on or for macOS specifically
    a: pluginsSupport for writing, building, and running plugin packages
    fyi-ecosystemFor the attention of Ecosystem team
    team-iosOwned by iOS platform team
    P2Important issues not at the top of the work list
    triaged-iosTriaged by iOS platform team
    and removed on Apr 17, 2024
  2. stuartmorgan-g commented on May 17, 2024

    @stuartmorgan-g
    Contributor

    iOS support was reverted in flutter/packages#6740

  3. github-actions commented on Jun 6, 2024

    @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.

  4. locked as resolved and limited conversation to collaborators on Jun 6, 2024
  5. added theissue type on Apr 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2Important issues not at the top of the work lista: pluginsSupport for writing, building, and running plugin packagesfyi-ecosystemFor the attention of Ecosystem teamp: file_selectorThe file_selector pluginplatform-iosiOS applications specificallyplatform-macosBuilding on or for macOS specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions