Skip to main content
Get Shortkit running in your app in under 5 minutes. Choose your platform below.

Requirements

  • iOS 14.0+
  • Xcode 14+
  • Swift 5.7+

Package installation

  1. In Xcode, go to File → Add Package Dependencies
  2. Enter the repository URL:
https://github.com/AirTVapp/shortkit-ios
  1. Select version and click Add Package

CocoaPods

Add to your Podfile:
pod 'ShortKit', '~> 1.0'
Then run:
pod install

Quick initialization

After installation, initialize the SDK with your publishable key:
import ShortKit

// In your AppDelegate or App init
ShortKit.initialize(apiKey: "pk_live_your_publishable_key")
Get your API keys from the Admin Portal under Settings → API Keys.

Verify installation

Test that everything is working:
// Check SDK is initialized
print("Shortkit version:", ShortKit.version)

// Fetch a test feed
Task {
    do {
        let feed = try await ShortKit.shared.fetchFeed(limit: 1)
        print("Feed loaded: \(feed.items.count) items")
    } catch {
        print("Error: \(error)")
    }
}

Troubleshooting

  • Ensure you’ve run pod install or added the Swift Package correctly
  • Clean build folder: Product → Clean Build Folder
  • Restart Xcode
  • Verify the maven repository URL is correct
  • Check your internet connection
  • Run ./gradlew --refresh-dependencies
  • For RN CLI: Run cd ios && pod install
  • For Expo: Rebuild with npx expo prebuild --clean
  • Check that autolinking is working
  • Ensure your domain is in the allowlist in Admin Portal
  • Check you’re using a publishable key, not a secret key
  • Verify the API key is for the correct environment

Next steps