Skip to content

CybexoSDK iOS Setup

Last updated: July 1, 2026

Property Value
CocoaPods package pod 'CybexoSDK', '~> 1.0'
Minimum iOS 14
Public entrypoint CybexoCMP

Add the pod to your Podfile.

platform :ios, '14.0'
target 'YourApp' do
use_frameworks!
pod 'CybexoSDK', '~> 1.0'
end

Then run:

Terminal window
pod install --repo-update
open YourApp.xcworkspace

Pin an exact version for production release builds when required by your release process.

Initialize once during app startup.

import SwiftUI
import CybexoSDK
struct ContentView: View {
@State private var didInitialize = false
var body: some View {
Button("Review Consent") {
CybexoCMP.shared.showBanner(force: true)
}
.onAppear {
guard !didInitialize else { return }
CybexoCMP.shared.initialize(settingsId: "YOUR_SETTINGS_ID") {
print("CYBEXO CMP ready")
}
didInitialize = true
}
}
}

Expose a privacy or settings entry so users can review consent later.

CybexoCMP.shared.showBanner(force: true)

Before production release:

  1. Initialize with the production Settings ID.
  2. Confirm first-run banner behavior on a clean install.
  3. Confirm showBanner(force: true) reopens preferences.
  4. Confirm accept, reject, and granular choices persist across app restart.
  5. Validate TC string behavior if IAB TCF is enabled for the property.
  6. Confirm downstream analytics or attribution SDKs receive the intended consent state.

If rollback is required:

  1. Disable the CMP feature flag or revert the app build.
  2. Remove the CybexoSDK pod.
  3. Remove CybexoCMP initialization/reopen calls.
  4. Rebuild and verify app startup and downstream SDK behavior.