Swift Package Manager distribution of the Appodeal SDK core (binary, no ad-network adapters yet).
.package(url: "https://github.com/appodeal/Appodeal-Swift-Package.git", from: "4.2.0")The SDK ships as static xcframeworks. Add -ObjC to your app target's Other Linker
Flags (OTHER_LDFLAGS) so the SDK's Objective-C categories are loaded — without it you will get
unrecognized selector crashes at runtime:
OTHER_LDFLAGS = $(inherited) -ObjC
(SwiftPM cannot set this for you: version-pinned packages may not carry unsafeFlags, so the
flag must live in the consuming app.)
Add the AppodealSDK product to your target, then:
import Appodeal
// or: import AppodealSDK (re-exports Appodeal)
Appodeal.initialize(withApiKey: "YOUR_KEY", types: [.interstitial, .banner])Appodeal+AppodealMediationCore— prebuilt xcframeworks- First-party
StackModules/StackRendering/StackProductPresentation/StackConsentManager— vendored xcframeworks (until they ship their own SwiftPM packages) - Dependencies resolved via SwiftPM: swift-protobuf, GoogleUserMessagingPlatform
Ad-network adapters are not part of this package yet — only networks that themselves ship SwiftPM packages can be added later.
Package.swift binary url/checksum values are generated by the swift_package Fastlane
lane in the main SDK repo, which builds the xcframeworks, zips them, computes checksums, uploads
to S3, updates this file, and tags the version. Do not hand-edit the checksums.