Skip to content

# Feature Request: Add Swift Package Manager (SPM) Support for sentry-capacitor #854

@YoannRu

Description

@YoannRu

Context

Currently, the sentry-capacitor package is only available via Cocoapods for iOS integration. To provide greater flexibility for developers and meet the needs of modern projects, it would be beneficial to add support for Swift Package Manager (SPM).

Current Issue

  • Limited Dependency Management: Relying exclusively on Cocoapods can be a constraint for projects that prefer or require SPM.
  • Growing Adoption of SPM: An increasing number of developers and projects are choosing SPM due to its native integration in Xcode and ease of use.

Proposed Solution

  • SPM Integration: Add a configuration with a Package.swift file that allows sentry-capacitor to be integrated directly via SPM.
  • Testing and Validation: Implement tests to ensure that the SPM integration works correctly and handles all necessary dependencies.
  • Documentation: Update the documentation with clear instructions for installation and usage of the package with SPM. For more details on SPM integration, please refer to the following guide: SPM Integration Guide.

Environment

  • Platform: iOS
  • Current Package Manager: Cocoapods
  • Proposed Package Manager: Swift Package Manager (SPM)

Thank you for considering this request. Please feel free to reach out if you have any questions or need further details.

Sincerely,

Metadata

Metadata

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions