Skip to content

[FEAT] Add CocoaPods Support to Enhance Compatibility with Flutter Projects #11

Open

Description

@gausoft

Issue description.
Currently, the paystack_flutter_sdk plugin supports only Swift Package Manager (SPM) for iOS integration. However, Flutter's SPM support is still under development and not fully stable. This limitation poses challenges for developers, as they encounter errors like:


Plugin paystack_flutter_sdk is only Swift Package Manager compatible. Try enabling Swift Package Manager by running "flutter config --enable-swift-package-manager" or remove the plugin as a dependency.

Even after enabling SPM, issues persist, hindering seamless integration.

The solution
Introduce CocoaPods support alongside SPM for the paystack_flutter_sdk plugin. This dual support would ensure broader compatibility across various development environments and cater to developers who rely on CocoaPods for iOS dependency management.

Alternatives

  • Continuing with SPM-only support, but this restricts the plugin's usability due to Flutter's incomplete SPM integration.
  • Manually modifying the plugin to support CocoaPods, which is not ideal for maintainability and consistency.

Additional context

  • Flutter's official documentation indicates that SPM support is still under development and recommends maintaining CocoaPods support for broader compatibility.
  • CocoaPods remains a widely used dependency manager in the iOS ecosystem, and supporting it would align the plugin with common practices.

Implementing CocoaPods support would enhance the plugin's accessibility and reliability for the Flutter community.


Activity

  1. damilola-paystack commented on Jun 2, 2025

    @damilola-paystack
    Member

    Hey @gausoft you are absolutely right. Thanks for sharing a detailed feedback. The reason for the support of only SPM is the underlying iOS SDK. The Flutter SDK is a wrapper of our native SDKs. Due to some dependencies, we've had issues with putting the iOS SDK on Cocoapods. Once this is resolved, we'll also be able to add the support on the Flutter SDK.

  2. gausoft commented on Jun 2, 2025

    @gausoft
    Author

    Thanks

  3. vinayUltivic commented on Dec 19, 2025

    @vinayUltivic

    any update @damilola-paystack ??

  4. added a commit that references this issue on Apr 9, 2026
    d442e1d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions