Skip to content

Add Swift Package Manager Support#61

Open
caggiulio wants to merge 1 commit into
marty-suzuki:masterfrom
caggiulio:feature/spm-support
Open

Add Swift Package Manager Support#61
caggiulio wants to merge 1 commit into
marty-suzuki:masterfrom
caggiulio:feature/spm-support

Conversation

@caggiulio

Copy link
Copy Markdown

Motivation and Context

This PR introduces support for Swift Package Manager (SPM).
To enable SPM compatibility, several structural adjustments were necessary:

  1. Split Objective-C and Swift files into separate folders
    SPM does not support mixing Objective-C and Swift files within the same target. Therefore, Objective-C and Swift sources have been reorganized into distinct directories.

  2. Update the .podspec file
    The .podspec has been updated to reflect the new folder structure, ensuring continued support for CocoaPods integration.

  3. Add the Package.swift manifest
    A Package.swift file has been added to define the SPM package configuration.

Note

The underscore prefix in _ReverseExtension_ObjC is a deliberate workaround to prevent the Objective-C target module from appearing in autocompletion.

Note

The Export.swift file is responsible for exposing the necessary Objective-C imports within the ReverseExtension module.

Fixes on podspec file

ObjC module workaround

Fixes podspec file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant