Skip to content

[IOS] Explore Swift Package Manager support. #29

@timbotimbo

Description

@timbotimbo

Description

This is not something that needs immediate attention, but something to keep in mind for the Future.
In Flutter 3.24, Flutter has started the process of moving ios plugins from cocoapods to Swift Package manager.

Given that Unity (plugins) uses cocoapods, I don't know if we can actually make this change. But staying on cocoapods might cause compatibility issues in future Flutter versions.

From whats new in Flutter 3.24

Swift Package Manager initial support

Today, Flutter uses CocoaPods to manage native iOS or macOS dependencies.

Flutter 3.24 adds early support for Swift Package Manager. This brings several benefits, including:

  1. Access to the Swift package ecosystem. Flutter plugins will be able to leverage the growing ecosystem of Swift packages!
  2. Simplifies Flutter installation. Swift Package Manager is bundled with Xcode. In the future, you won’t need to install Ruby and CocoaPods to use Flutter for Apple’s platforms.

We encourage plugin authors to try adding support for Swift Package Manager to your plugins, and provide feedback on your experience.

From how-to-add-swift-package-manager-support-to-an-existing-flutter-plugin

Flutter plugins should support both Swift Package Manager and CocoaPods until further notice.

Swift Package Manager adoption will be gradual. Plugins that don't support CocoaPods won't be usable by projects that haven't migrated to Swift Package Manager yet. Plugins that don't support Swift Package Manager can cause problems for projects that have migrated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions