Skip to content

feat(native-shell-ios): SD-05 — add CocoaPods support and verify SPM - #1933

Merged
jcortejoso merged 2 commits into
self-2469/sdk-distributionfrom
self-2474/sd-05-ios-publishing
Apr 8, 2026
Merged

jcortejoso merged 2 commits into
self-2469/sdk-distributionfrom
self-2474/sd-05-ios-publishing

Conversation

@jcortejoso

Copy link
Copy Markdown
Member

Summary

Implements SD-05 from SELF-2474 — verify SPM distribution is clean after SD-02 and add CocoaPods support.

Changes

  • SelfSDK.podspec (new) — CocoaPods spec with s.name='SelfSDK', iOS 15.0+, Swift 5.9, source files pointing to Sources/SelfNativeShell/**/*.swift, frameworks: UIKit, WebKit, CryptoKit. No resource bundles (web assets are hosted).
  • .gitignore (new) — Excludes .build/, .swiftpm/, Pods/, *.xcodeproj/, *.xcworkspace/, DerivedData/
  • Package.swift — Verified clean: no resource copy rules, no stale paths (unchanged from SD-02)

Verified locally

  • xcodebuild build -scheme SelfNativeShell -destination 'generic/platform=iOS Simulator' ✅ BUILD SUCCEEDED
  • pod lib lint — skipped (pod not installed locally, CI will verify)

Usage

SPM:

.package(url: "https://github.com/selfxyz/self.git", from: "0.1.0")

CocoaPods:

pod 'SelfSDK', '~> 0.1.0'

Ref

SELF-2474 (SD-05) — part of SELF-2469 (SDK Distribution)

@vercel

vercel Bot commented Apr 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
self-webview-app Ready Ready Preview, Comment Apr 7, 2026 8:52am

Request Review

@coderabbitai

coderabbitai Bot commented Apr 7, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

🗂️ Base branches to auto review (3)
  • main
  • dev
  • staging

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: c26676b9-234b-44d7-9753-8d5c1bdd09e2

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch self-2474/sd-05-ios-publishing

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

SPM, CocoaPods (via Git), and GitHub Packages (Maven) instructions
with credential setup and requirements.

Ref: SELF-2474
@jcortejoso

Copy link
Copy Markdown
Member Author

@copilot review
@codex review

Copilot AI commented Apr 7, 2026

Copy link
Copy Markdown

@copilot review
@codex review

All CI checks are passing (Native Shells CI ✅, Common CI ✅, Gitleaks ✅). The changes in this PR are:

  • SelfSDK.podspec — new CocoaPods spec (iOS 15.0+, Swift 5.9, Sources/SelfNativeShell/**/*.swift)
  • packages/native-shell-ios/.gitignore — excludes .build/, Pods/, *.xcodeproj/ etc.
  • Installation READMEs for iOS (SPM + CocoaPods) and Android (GitHub Packages/Maven)

No issues found.

@chatgpt-codex-connector

Copy link
Copy Markdown

To use Codex here, create a Codex account and connect to github.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 357bf05dd1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


```swift
dependencies: [
.package(url: "https://github.com/selfxyz/self.git", from: "0.1.0")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Point SPM install docs at a repo with root Package.swift

The Swift Package Manager instructions currently point to https://github.com/selfxyz/self.git, but this repository does not contain a Package.swift at its root (only packages/native-shell-ios/Package.swift exists). SwiftPM resolves remote dependencies from the repository root, so consumers following this snippet cannot add the package and will fail during dependency resolution. Please update the documented source to a package URL/layout SwiftPM can resolve.

Useful? React with 👍 / 👎.

Add to your `Podfile`:

```ruby
pod 'SelfSDK', :git => 'https://github.com/selfxyz/self.git', :tag => '0.1.0'

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Fix CocoaPods git install path for non-root podspec

This Podfile example uses :git against the monorepo root, but SelfSDK.podspec is located under packages/native-shell-ios/ rather than the repository root. CocoaPods’ git source flow expects the podspec at the repo root for that dependency declaration, so users following this command are likely to hit “spec not found” when running pod install. Please adjust the distribution/docs so the podspec is discoverable for the documented install method.

Useful? React with 👍 / 👎.

@jcortejoso
jcortejoso merged commit 2b20b0a into self-2469/sdk-distribution Apr 8, 2026
13 checks passed
@jcortejoso
jcortejoso deleted the self-2474/sd-05-ios-publishing branch April 8, 2026 06:26

This branch was successfully deployed

1 active deployment
Preview – self-webview-app — 357bf05d Deployed Apr 7, 2026 by vercel[bot]
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.

2 participants