Skip to content

feat(ios): add Swift Package Manager support for Capacitor 6-8#46

Closed
Geek-Squared wants to merge 4 commits into
talsec:mainfrom
Geek-Squared:feature/ios-spm-support
Closed

feat(ios): add Swift Package Manager support for Capacitor 6-8#46
Geek-Squared wants to merge 4 commits into
talsec:mainfrom
Geek-Squared:feature/ios-spm-support

Conversation

@Geek-Squared

Copy link
Copy Markdown

What's new

This PR adds Swift Package Manager (SPM) support for the iOS plugin, while keeping the existing CocoaPods integration intact.

With CocoaPods entering maintenance mode and its trunk going read-only in December 2026, SPM is becoming the standard for iOS dependency management. Capacitor 8 already defaults to SPM for new iOS projects, so this change ensures freeRASP works seamlessly with modern Capacitor setups.

Changes:

  • Added Package.swift with binary target for TalsecRuntime.xcframework and Capacitor/Cordova dependencies (supports Capacitor 6-8)

PR checklist

In-app checks:

  • callbacks are received
  • dev/prod switch works
  • README.md is updated (if applicable)
  • example app is working

Pre-release checks:

  • CHANGELOG.md is updated
  • package.json version is increased
  • release label is applied on PR

To be checked by maintainers:

  • freeRASP logs are received
  • sdkVersion property in logs is correct
  • sdkPlatform property in logs is correct

Resolved issues

Adds SPM support in preparation for CocoaPods deprecation (December 2026) and compatibility with Capacitor 8's default package manager.

@tompsota

Copy link
Copy Markdown
Member

Hi @Geek-Squared,

Thanks for the PR! We'll test and review it soon—the change is indeed necessary as you mention.

@MosesNgwerume08

Copy link
Copy Markdown

Hi @Geek-Squared,

Thanks for the PR! We'll test and review it soon—the change is indeed necessary as you mention.

Hi @tompsota just following up regarding this PR. Thanks.

Geek-Squared and others added 3 commits June 9, 2026 11:08
…ramework

The `**/.*` rule matched the zero-byte .jbroot/libRHProbe.dat files sealed
by TalsecRuntime.xcframework's code signature. When pnpm/npm packs this
git dependency into node_modules it honors .npmignore and dropped those
files, breaking signature validation on iOS with 'a sealed resource is
missing or invalid'. Re-include the .jbroot directory so the seal stays
intact.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@tompsota

Copy link
Copy Markdown
Member

Hi @Geek-Squared ,

We've added the SPM support along with couple other changes in release 3.1.0.

Thanks for your support!

@tompsota tompsota closed this Jul 27, 2026
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.

3 participants