Documentation / 04
Binary SDKs
Declare SDKs that ship only as prebuilt frameworks with binary. Prefer the vendor's Swift package when there is one.
Declare a binary
target 'Game' do
binary 'AdsAdapter',
url: 'https://example.com/AdsAdapter-6.4.2.zip',
sha256: '3f1c…',
system_frameworks: %w[WebKit AVFoundation],
libraries: %w[z c++],
linker_flags: ['-ObjC']
endUse HTTPS for remote binary archives and a complete 64-character SHA-256 checksum; 3f1c… above is a placeholder. Signed query parameters are supported; credentials and fragments in the URL are rejected. SwiftPods supports .zip, .tar.gz, .tgz and .tar.xz, verifies the checksum and extracts them within size and path limits. Compute a checksum with shasum -a 256 Archive.zip. swiftpods install --offline uses verified cached archives only.
Binaries from the catalog
SDKs in the package catalog need only a version; the catalog supplies the archive, its checksum and how to link it:
binary 'HyprMX', '6.4.2'
binary 'AppLovinMediationHyprMXAdapter', '6.4.2.0.0'To add a version, submit a catalog entry with the archive URL, SHA-256 and any required linking or resource metadata.
Which frameworks
Every .xcframework in the archive becomes part of one product named after the declaration. Choose some of them with xcframeworks: ['SDK/Kit.xcframework']; a bare 'Kit.xcframework' is found at any depth. A local framework or directory works too:
binary 'Analytics', path: 'Vendor/Analytics.xcframework'When one binary needs another, list it in dependencies: ['Core']. SDKs that load a resource bundle from the app declare it with resources: ['SDK/Resources.bundle']; [SwiftPods] Finish copies it into every target that links the binary. Archives that contain only legacy .framework bundles are rejected; wrap them with xcodebuild -create-xcframework and use path.
What is generated
Binary SDKs become a local package in SwiftPods/SwiftPodsBinaries: a binary target per framework and a small target carrying system frameworks, libraries and linker flags. A generated SwiftPodsDependencies container links the binaries declared by each target. Swift packages themselves are integrated directly into the Xcode targets.
In its own copy of an iOS framework, SwiftPods moves a versioned bundle's contents to the top level, unwraps a static library packed in a single-architecture universal binary, and adds a minimal Info.plist when one is missing. Installation prints a note for each repair. Application runtime search paths let dyld find embedded dynamic frameworks; see framework embedding.