Summary
Adding uid2-ios-sdk via SPM and linking the UID2Prebid product fails to build when the
app target's minimum deployment is iOS 12, producing:
The package product 'PrebidMobile' requires minimum platform version 13.0 for the iOS
platform, but this target supports 12.0
Root Cause
Package.swift declares .iOS(.v12) as the minimum platform, but latest PrebidMobile package
(added in #80) requires .iOS(.v13). SPM enforces that all products in the dependency
graph satisfy the declared minimum, so UID2Prebid, which links PrebidMobile cannot
resolve.
Steps to Reproduce
- Create an Xcode project.
- Add
https://github.com/IABTechLab/uid2-ios-sdk via SPM.
- Add
UID2Prebid to the target's linked frameworks.
- Build.
Expected Behavior
Build succeeds, or a clear compile-time error explains the iOS 13 requirement.
Actual Behavior
SPM emits the platform version conflict error above and the build fails.
Suggested Fix
Bump the minimum platform in Package.swift to .iOS(.v13) (and .tvOS(.v13)) if possible.
Environment
uid2-ios-sdk version: 2.1.0 (latest)
prebid-mobile-ios version: 3.3.1 (latest, pulled via .upToNextMajor(from: "3.1.0"))
- Xcode: 16.x
- Swift tools version: 5.8
Summary
Adding
uid2-ios-sdkvia SPM and linking theUID2Prebidproduct fails to build when theapp target's minimum deployment is iOS 12, producing:
Root Cause
Package.swiftdeclares.iOS(.v12)as the minimum platform, but latestPrebidMobilepackage(added in #80) requires
.iOS(.v13). SPM enforces that all products in the dependencygraph satisfy the declared minimum, so
UID2Prebid, which linksPrebidMobilecannotresolve.
Steps to Reproduce
https://github.com/IABTechLab/uid2-ios-sdkvia SPM.UID2Prebidto the target's linked frameworks.Expected Behavior
Build succeeds, or a clear compile-time error explains the iOS 13 requirement.
Actual Behavior
SPM emits the platform version conflict error above and the build fails.
Suggested Fix
Bump the minimum platform in
Package.swiftto.iOS(.v13)(and.tvOS(.v13)) if possible.Environment
uid2-ios-sdkversion: 2.1.0 (latest)prebid-mobile-iosversion: 3.3.1 (latest, pulled via.upToNextMajor(from: "3.1.0"))