xamarin-macios
xamarin-macios copied to clipboard
AVCaptureDeviceDiscoverySession Marked for incorrect platforms
Steps to Reproduce
- Call AVCaptureDeviceDiscoverySession.Create (...)
var deviceDiscovery = AVCaptureDeviceDiscoverySession.Create(
new AVCaptureDeviceType[] { AVCaptureDeviceType.BuiltInWideAngleCamera }, nameof (AVMediaTypes.Video), AVCaptureDevicePosition.Back);
Expected Behavior
We are able to create a new AVCaptureDeviceDiscoverySession object.
Actual Behavior
We receive this warning: "This call site is reachable on: 'iOS' 11.2 and later, 'maccatalyst' 11.2 and later. 'AVCaptureDeviceDiscoverySession.Create(AVCaptureDeviceType[], string, AVCaptureDevicePosition)' is only supported on: 'maccatalyst' 14.0 and later, 'macOS/OSX' 10.15 and later."
Environment
Visual Studio Enterprise 2022 for Mac Preview
Version 17.0 Preview (17.0 build 6829)
Installation UUID: bd88c7b9-36ea-4c30-8a34-a76257874308
Runtime
.NET 6.0.2-servicing.1.22063.8 (64-bit)
Architecture: X64
Roslyn (Language Service)
4.0.0-5.21501.19+8e1779e16298415843e85029d8b52a1ae9bb4c30
NuGet
Version: 6.0.0.262
.NET SDK (x64)
SDK: /usr/local/share/dotnet/sdk/6.0.101/Sdks
SDK Versions:
6.0.101
6.0.100
6.0.100-rc.2.21505.57
6.0.100-rc.1.21463.6
5.0.404
5.0.403
5.0.402
5.0.401
5.0.400
5.0.203
5.0.202
5.0.200
5.0.103
5.0.101
5.0.100
3.1.416
3.1.415
3.1.414
3.1.413
3.1.412
3.1.409
3.1.408
3.1.406
3.1.404
3.1.100
MSBuild SDKs: /usr/local/share/dotnet/sdk/6.0.101/Sdks
.NET Core Runtime (x64)
Runtime: /usr/local/share/dotnet/dotnet
Runtime Versions:
6.0.1
6.0.0
6.0.0-rc.2.21480.5
6.0.0-rc.1.21451.13
5.0.13
5.0.12
5.0.11
5.0.10
5.0.9
5.0.6
5.0.5
5.0.3
5.0.1
5.0.0
3.1.22
3.1.21
3.1.20
3.1.19
3.1.18
3.1.15
3.1.14
3.1.12
3.1.10
3.1.0
Xamarin.Profiler
Version: 1.7.0.0
Location: /Applications/Xamarin Profiler.app/Contents/MacOS/Xamarin Profiler
Updater
Version: 11
Apple Developer Tools
Xcode 13.2 (19585)
Build 13C90
Xamarin.Mac
Version: 8.5.0.5 (Visual Studio Enterprise)
Hash: e49c11f99
Branch: main
Build date: 2022-01-04 23:06:44-0500
Xamarin.Android
Version: 12.2.0.2 (Visual Studio Enterprise)
Commit: xamarin-android/d17-1/e9c7503
Android SDK: /Users/tjlambert/Library/Developer/Xamarin/android-sdk-macosx
Supported Android versions:
12.0 (API level 31)
11.0 (API level 30)
9.0 (API level 28)
SDK Command-line Tools Version: 5.0
SDK Platform Tools Version: 30.0.4
SDK Build Tools Version: 31.0.0
Build Information:
Mono: a5d1934
Java.Interop: xamarin/java.interop/d17-1@7ac33610
ProGuard: Guardsquare/proguard/v7.0.1@912d149
SQLite: xamarin/sqlite/3.37.1@0893b3b
Xamarin.Android Tools: xamarin/xamarin-android-tools/main@db125a7
Microsoft Build of OpenJDK
Java SDK: /Library/Java/JavaVirtualMachines/microsoft-11.jdk
11.0.12
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
Eclipse Temurin JDK
Java SDK: /Library/Java/JavaVirtualMachines/temurin-8.jdk
1.8.0.302
Android Designer EPL code available here:
https://github.com/xamarin/AndroidDesigner.EPL
Android SDK Manager
Version: 17.1.0.42
Hash: ad59eab
Branch: remotes/origin/new/vsm-net6
Build date: 2022-01-20 18:34:17 UTC
Android Device Manager
Version: 0.0.0.1064
Hash: 9b9de47
Branch: remotes/origin/new/vsm-net6~7
Build date: 2022-01-20 18:34:17 UTC
Xamarin.iOS
Version: 15.5.0.5 (Visual Studio Enterprise)
Hash: e49c11f99
Branch: main
Build date: 2022-01-04 23:06:45-0500
Xamarin Designer
Version: 17.1.0.89
Hash: 4cdb8cdf9
Branch: remotes/origin/main
Build date: 2022-01-20 18:34:13 UTC
Build Information
Release ID: 1700006829
Git revision: 3d10f41759aefb049b0590ae184baa52df34a6e6
Build date: 2022-01-20 18:32:14+00
Build branch: main
Build lane: main
Operating System
Mac OS X 11.6.1
Darwin 20.6.0 Darwin Kernel Version 20.6.0
Tue Oct 12 18:33:42 PDT 2021
root:xnu-7195.141.8~1/RELEASE_X86_64 x86_64
Build Logs
Example Project (If Possible)
Gist with code snippets: https://gist.github.com/tj-devel709/272699f783bb7ce7f4c05f2f11dc5cc2
@chamons
Looks like the issue is now resolved. Based on the generator file, the correct attributes are now generated and shipped.
Generated file at time of issue Generated file now