fix: cap OneTrust SDK versions to avoid ObjC selector mismatch#773
Conversation
Prevent OneTrust releases from 202503+ from being resolved by default, where the selector used by the Objective-C kit integration is not available and CI builds fail.
PR SummaryLow Risk Overview Updates Reviewed by Cursor Bugbot for commit 4485712. Bugbot is set up for automated code reviews on this repo. Configure here. |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 9c3176b. Configure here.
📦 SDK Size Impact ReportMeasures how much the SDK adds to an app's size (with-SDK minus without-SDK).
➡️ SDK size impact change is minimal. Raw measurementsTarget branch (main): {"baseline_app_size_kb":84,"baseline_executable_size_bytes":75464,"with_sdk_app_size_kb":1896,"with_sdk_executable_size_bytes":76312,"sdk_impact_kb":1812,"sdk_executable_impact_bytes":848,"xcframework_size_kb":6596}This PR: {"baseline_app_size_kb":84,"baseline_executable_size_bytes":75464,"with_sdk_app_size_kb":1896,"with_sdk_executable_size_bytes":76312,"sdk_impact_kb":1812,"sdk_executable_impact_bytes":848,"xcframework_size_kb":6596} |
Set the SPM lower bound to 202502.1.0 so SPM and CocoaPods resolve the same safe OneTrust range and avoid selecting older incompatible SDK releases.
Limit CocoaPods resolution to versions below 202503.0.0 while leaving the lower bound open, matching the intended policy to pin only the upper OneTrust version.
Limit SPM OneTrust dependencies to versions below 202503.0.0 while leaving the lower bound open, matching the upper-bound-only version policy.

Background
CI started failing after newer OneTrust SDK releases were resolved by default.
Those versions no longer expose the Objective-C selector expected by the OneTrust kit integration.
What Has Changed
< 202503.0.0) in the kit package manifest.< 202503.0.0) in the kit podspec.Screenshots/Video
N/A
Checklist
Additional Notes
This update is intended to stabilize CI by preventing automatic resolution to OneTrust SDK versions where the ObjC selector mismatch occurs.