Skip to content

UID2Prebid SPM build fails: PrebidMobile 3.3.1 requires iOS 13 but package declares iOS 12 #87

@abdulmedzid

Description

@abdulmedzid

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

  1. Create an Xcode project.
  2. Add https://github.com/IABTechLab/uid2-ios-sdk via SPM.
  3. Add UID2Prebid to the target's linked frameworks.
  4. 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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions