Skip to content

Pod validation fails due to warnings with Xcode 26.0 #170437

@vashworth

Description

@vashworth

https://ci.chromium.org/ui/p/flutter/builders/try/Mac_arm64%20macos_repo_checks/8789/infra

Multiple APIs in multiple plugins are deprecated and now with Xcode 26.0 are showing as warnings, which causes pod validation to fail.

For example:

Linting camera_avfoundation.podspec
Running "pod lib lint /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation.podspec --configuration=Debug --skip-tests --use-libraries"

 -> camera_avfoundation
 -> camera_avfoundation (0.0.1)
    - NOTE  | xcodebuild:  note: Using codesigning identity override: -
    - NOTE  | [iOS] xcodebuild:  note: Building targets in dependency order
    - NOTE  | [iOS] xcodebuild:  note: Target dependency graph (5 targets)
    - NOTE  | xcodebuild:  <module-includes>:1:9: note: in file included from <module-includes>:1:
    - NOTE  | xcodebuild:  |         `- note: in file included from <module-includes>:1:
    - NOTE  | [iOS] xcodebuild:  Headers/Public/camera_avfoundation/camera_avfoundation-umbrella.h:14:9: note: in file included from Headers/Public/camera_avfoundation/camera_avfoundation-umbrella.h:14:
    - NOTE  | [iOS] xcodebuild:  |         `- note: in file included from Headers/Public/camera_avfoundation/camera_avfoundation-umbrella.h:14:
    - NOTE  | xcodebuild:  Headers/Public/camera_avfoundation/camera_avfoundation.h:5:9: note: in file included from Headers/Public/camera_avfoundation/camera_avfoundation.h:5:
    - NOTE  | xcodebuild:  |         `- note: in file included from Headers/Public/camera_avfoundation/camera_avfoundation.h:5:
    - NOTE  | xcodebuild:  Headers/Public/camera_avfoundation/FLTCam.h:10:9: note: in file included from Headers/Public/camera_avfoundation/FLTCam.h:10:
    - NOTE  | xcodebuild:  |         `- note: in file included from Headers/Public/camera_avfoundation/FLTCam.h:10:
    - NOTE  | xcodebuild:  Headers/Public/camera_avfoundation/FLTCamConfiguration.h:11:9: note: in file included from Headers/Public/camera_avfoundation/FLTCamConfiguration.h:11:
    - NOTE  | xcodebuild:  |         `- note: in file included from Headers/Public/camera_avfoundation/FLTCamConfiguration.h:11:
    - NOTE  | xcodebuild:  Headers/Public/camera_avfoundation/FLTCamMediaSettingsAVWrapper.h:11:9: note: in file included from Headers/Public/camera_avfoundation/FLTCamMediaSettingsAVWrapper.h:11:
    - NOTE  | xcodebuild:  |         `- note: in file included from Headers/Public/camera_avfoundation/FLTCamMediaSettingsAVWrapper.h:11:
    - NOTE  | xcodebuild:  Headers/Public/camera_avfoundation/FLTCaptureVideoDataOutput.h:8:9: note: in file included from Headers/Public/camera_avfoundation/FLTCaptureVideoDataOutput.h:8:
    - NOTE  | xcodebuild:  |         `- note: in file included from Headers/Public/camera_avfoundation/FLTCaptureVideoDataOutput.h:8:
    - NOTE  | xcodebuild:  Headers/Public/camera_avfoundation/FLTCaptureOutput.h:8:9: note: in file included from Headers/Public/camera_avfoundation/FLTCaptureOutput.h:8:
    - NOTE  | xcodebuild:  |         `- note: in file included from Headers/Public/camera_avfoundation/FLTCaptureOutput.h:8:
    - WARN  | xcodebuild:  Headers/Public/camera_avfoundation/FLTCaptureConnection.h:17:22: warning: 'AVCaptureVideoOrientation' is deprecated: first deprecated in iOS 17.0 - Use AVCaptureDeviceRotationCoordinator instead
    - NOTE  | xcodebuild:  |                      `- warning: 'AVCaptureVideoOrientation' is deprecated: first deprecated in iOS 17.0 - Use AVCaptureDeviceRotationCoordinator instead
    - NOTE  | xcodebuild:  /Volumes/Work/s/w/ir/cache/osx_sdk/xcode_17a5241e/XCode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator26.0.sdk/System/Library/Frameworks/AVFoundation.framework/Headers/AVCaptureSession.h:143:28: note: 'AVCaptureVideoOrientation' has been explicitly marked deprecated here
    - NOTE  | xcodebuild:  |                            `- note: 'AVCaptureVideoOrientation' has been explicitly marked deprecated here
    - WARN  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:12:13: warning: sendability of function types in instance method 'stopVideoRecording(completion:)' does not match requirement in protocol 'Camera'; this is an error in the Swift 6 language mode
    - NOTE  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/Camera.swift:51:8: note: expected sendability to match requirement here
    - NOTE  | xcodebuild:  func stopVideoRecording(completion: @escaping (_ path: String?, _ error: FlutterError?) -> Void)
    - WARN  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:12:13: warning: sendability of function types in instance method 'captureToFile(completion:)' does not match requirement in protocol 'Camera'; this is an error in the Swift 6 language mode
    - NOTE  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/Camera.swift:53:8: note: expected sendability to match requirement here
    - NOTE  | xcodebuild:  func captureToFile(completion: @escaping (_ path: String?, _ error: FlutterError?) -> Void)
    - WARN  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:12:13: warning: sendability of function types in instance method 'setExposurePoint(_:withCompletion:)' does not match requirement in protocol 'Camera'; this is an error in the Swift 6 language mode
    - NOTE  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/Camera.swift:63:8: note: expected sendability to match requirement here
    - WARN  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:12:13: warning: sendability of function types in instance method 'setFocusPoint(_:completion:)' does not match requirement in protocol 'Camera'; this is an error in the Swift 6 language mode
    - NOTE  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/Camera.swift:69:8: note: expected sendability to match requirement here
    - WARN  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:12:13: warning: sendability of function types in instance method 'setZoomLevel(_:withCompletion:)' does not match requirement in protocol 'Camera'; this is an error in the Swift 6 language mode
    - NOTE  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/Camera.swift:74:8: note: expected sendability to match requirement here
    - NOTE  | xcodebuild:  func setZoomLevel(_ zoom: CGFloat, withCompletion: @escaping (_ error: FlutterError?) -> Void)
    - WARN  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:12:13: warning: sendability of function types in instance method 'setFlashMode(_:withCompletion:)' does not match requirement in protocol 'Camera'; this is an error in the Swift 6 language mode
    - NOTE  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/Camera.swift:76:8: note: expected sendability to match requirement here
    - WARN  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/DefaultCamera.swift:12:13: warning: sendability of function types in instance method 'setDescriptionWhileRecording(_:withCompletion:)' does not match requirement in protocol 'Camera'; this is an error in the Swift 6 language mode
    - NOTE  | xcodebuild:  /Volumes/Work/s/w/ir/x/w/packages/packages/camera/camera_avfoundation/ios/camera_avfoundation/Sources/camera_avfoundation/Camera.swift:84:8: note: expected sendability to match requirement here
    - NOTE  | [iOS] xcodebuild:  /Users/chrome-bot/Library/Developer/Xcode/DerivedData/App-bonmhlbxscwcgbfkaunfmrgxjenj/Build/Products/Debug-iphonesimulator/camera_avfoundation/camera_avfoundation-umbrella.h:14:9: note: in file included from /Users/chrome-bot/Library/Developer/Xcode/DerivedData/App-bonmhlbxscwcgbfkaunfmrgxjenj/Build/Products/Debug-iphonesimulator/camera_avfoundation/camera_avfoundation-umbrella.h:14:
    - NOTE  | [iOS] xcodebuild:  |         `- note: in file included from /Users/chrome-bot/Library/Developer/Xcode/DerivedData/App-bonmhlbxscwcgbfkaunfmrgxjenj/Build/Products/Debug-iphonesimulator/camera_avfoundation/camera_avfoundation-umbrella.h:14:
    - NOTE  | [iOS] xcodebuild:  note: Using stub executor library with Swift entry point. (in target 'App' from project 'App')
    - NOTE  | [iOS] xcodebuild:  2025-06-10 18:36:41.926 appintentsmetadataprocessor[46625:986507] warning: Metadata extraction skipped. No AppIntents.framework dependency found.
    - NOTE  | [iOS] xcodebuild:  Pods.xcodeproj: warning: The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 11.0, but the range of supported deployment target versions is 12.0 to 26.0.99. (in target 'Flutter' from project 'Pods')

[!] camera_avfoundation did not pass validation, due to 8 warnings (but you can use `--allow-warnings` to ignore them).

There are also other new warnings, see sub-issues.

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listplatform-iosiOS applications specificallyteam-iosOwned by iOS platform teamtriaged-iosTriaged by iOS platform team

    Type

    No type

    Projects

    Status

    Not started

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions