Hi all, now I trying to capture screen with AVFoundation's feature.
But when I call some constructor about AVFoundation, I face the following the exception.
I can't find any FAQ and documents about this trouble, but it is very simple use for this class so I hope
some workaround is already exists...
Thank you.
OS: Sierra 10.12.5
IDE: Visual Studio for mac Pro
static void Main(string[] args)
{
var input = new AVCaptureScreenInput();
NSApplication.Init();
NSApplication.Main(args);
}
at ObjCRuntime.Class.Register (System.Type type) [0x00007] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/src/ObjCRuntime/Class.cs:126
at ObjCRuntime.Class.GetHandle (System.Type type) [0x00002] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/src/ObjCRuntime/Class.cs:94
at Foundation.NSObject.AllocIfNeeded () [0x0001e] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/src/Foundation/NSObject2.cs:476
at Foundation.NSObject..ctor (Foundation.NSObjectFlag x) [0x00008] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/src/Foundation/NSObject2.cs:116
at AVFoundation.AVCaptureInput..ctor (Foundation.NSObjectFlag t) [0x00000] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/src/build/mac/mobile/AVFoundation/AVCaptureInput.g.cs:51
at AVFoundation.AVCaptureScreenInput..ctor () [0x00000] in /Users/builder/data/lanes/4691/d2270eec/source/xamarin-macios/src/build/mac/mobile/AVFoundation/AVCaptureScreenInput.g.cs:88
at hoge.MainClass.Main (System.String[] args) [0x00001] in /Users/xxx/Projects/hoge/hoge/Main.cs:10