Skip to content

fix(ios): bump ion-ios-camera to 2.0.0 - #77

Open
andredestro wants to merge 1 commit into
mainfrom
fix/RMET-5354/bump-ion-ios-camera-2.0.0
Open

fix(ios): bump ion-ios-camera to 2.0.0#77
andredestro wants to merge 1 commit into
mainfrom
fix/RMET-5354/bump-ion-ios-camera-2.0.0

Conversation

@andredestro

@andredestro andredestro commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Follow-up to RMET-5354.

Why

ion-ios-camera 2.0.0 raises the library's minimum deployment target to iOS 15 and removes the AVFoundation APIs Apple deprecated in iOS 16 and 18 (AVAsset(url:), AVAsset.duration, AVAsset.tracks(withMediaType:)).

Those deprecations were never visible in the library's own build, but they were visible to consumers: SwiftPM and CocoaPods compile a dependency with the consuming app's deployment target, so any app targeting iOS 18+ saw them. Picking up 2.0.0 is what actually clears them for apps using this plugin.

The bump does not happen on its own. Package.swift used from: "1.0.5", which SwiftPM reads as >=1.0.5 <2.0.0, and the podspec used ~> 1.0.5, i.e. >=1.0.5 <1.1.0. Both stop short of 2.0.0.

What changed

  • Package.swift: ion-ios-camera from: "1.0.5"from: "2.0.0"
  • CapacitorCamera.podspec: IONCameraLib ~> 1.0.5~> 2.0.0

Not a breaking change here

ion-ios-camera 2.0.0 is a major because it drops iOS 14. This plugin already declares iOS 15 as its minimum, in Package.swift (platforms: [.iOS(.v15)]) and in CapacitorCamera.podspec (s.ios.deployment_target = '15.0'), so its own floor does not move. Every app that can build this plugin today can build it against 2.0.0.

Marked fix(ios): accordingly, matching the previous dependency bumps (#66, #50, #46).

Verification

npm run verify:ios (xcodebuild clean build -scheme CapacitorCamera -destination generic/platform=iOS):

  • BUILD SUCCEEDED
  • 0 warnings
  • swift package resolve pins ion-ios-camera 2.0.0, capacitor-swift-pm 8.5.0
  • IONCameraLib 2.0.0 is live on CocoaPods trunk

CI covers the rest: verify:android, verify:web, and both example-app builds.

IONCameraLib 2.0.0 raises its own minimum deployment target to iOS 15
and replaces the AVFoundation APIs Apple deprecated in iOS 16 and 18.
SwiftPM and CocoaPods compile a dependency with the consuming app's
deployment target, so apps targeting iOS 18+ were seeing those
deprecation warnings in their own builds. They no longer do.

Not a breaking change for this plugin: it already declares iOS 15 as its
minimum in both Package.swift and CapacitorCamera.podspec, so every app
that can build the plugin today can build it against 2.0.0.

Verified with `npm run verify:ios` (xcodebuild clean build, generic
iOS): 0 warnings, BUILD SUCCEEDED.

@jcesarmobile jcesarmobile left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not a blocker, but for CocoaPods, ~> 2.0.0 means any 2.0.x version but not including 2.1.0, while for SPM from: "2.0.0" will include any 2.x version, so maybe we might want to have the same behavior on both package managers?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants