Swift linker error: Undefined symbol for surely available API presentationDimensions

I'm developing a Camera App which uses the presentationDimensions(...) API:

Code Block swift
if #available(iOS 13.0, *) {
let leftVideo = self.formatDescription.presentationDimensions()
let rightVideo = other.formatDescription.presentationDimensions()
// ...
}

Now when I try to build the project, I get the following errors:

Undefined symbol: (extension in CoreMedia):__C.CMFormatDescriptionRef.presentationDimensions(usePixelAspectRatio: Swift.Bool, useCleanAperture: Swift.Bool) -> __C.CGSize

Last Xcode log:

My .pbxproj:


Note that when I remove those calls to presentationDimensions everything works fine.

Can anyone help me out here? The API has been available since iOS 13.0, and even if my iOS deployment target is 11.0 I should still be able to build it, no?
Answered by mrousavy in 662914022
Finally found the answer. I had SWIFT_VERSION pinned to 5.0, but iOS 13 came with Swift 5.2 so pinning Swift to 5.2 (and removing the LIBRARY_SEARCH_PATH pointing to 5.0) solved it. jesus christ.
Accepted Answer
Finally found the answer. I had SWIFT_VERSION pinned to 5.0, but iOS 13 came with Swift 5.2 so pinning Swift to 5.2 (and removing the LIBRARY_SEARCH_PATH pointing to 5.0) solved it. jesus christ.
Swift linker error: Undefined symbol for surely available API presentationDimensions
 
 
Q