Привязка Xamarin.iOS не распознает ссылку .framework
Я пытаюсь привязать SDK Bitmovin Player для iOS.
Я выполнил следующие шаги:
Создайте ApiDefinitions.cs и StructsAndEnums.cs ( https://docs.microsoft.com/pt-br/xamarin/cross-platform/macios/binding/objective-sharpie/examples/cocoapod)
sharpie pod init ios AFNetworking
Замените Podfile на BitmovinPlayer SDK:platform :ios, '13.1' install! 'cocoapods', :integrate_targets => false target 'ObjectiveSharpieIntegration' do use_frameworks! end pod 'BitmovinPlayer', git: 'https://github.com/bitmovin/bitmovin-player-ios-sdk-cocoapod.git', tag: '2.33.0'
Шарпи успешно создал файлы.Создайте проект привязки Xamarin.iOS (https://docs.microsoft.com/pt-br/xamarin/cross-platform/macios/binding/objective-c-libraries?tabs=macos)
- Заменить ApiDefinitions и Structs.cs
- удалять
Verify
атрибуты - В Visual Studio добавлена "собственная ссылка" на BitmovinPlayer.framework из репозитория GitHub: https://github.com/bitmovin/bitmovin-player-ios-sdk-cocoapod/releases
Проблема в том, что Visual Studio не распознает using BitmovinPlayer;
.введите описание изображения здесь
Вывод сборки:Target _GenerateBindings:
BTouchEmitDebugInformation: false
/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/btouch-native /v /nostdlib /baselib:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll /lib:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS /r:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll /unsafe /d:"UNIFIED;MOBILE;IOS;DEBUG" /Users/pedroccrl/Projects/BitmoviniOSBinding/BitmoviniOSBinding/ApiDefinition.cs /s:/Users/pedroccrl/Projects/BitmoviniOSBinding/BitmoviniOSBinding/Structs.cs -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll /tmpdir:/Users/pedroccrl/Projects/BitmoviniOSBinding/BitmoviniOSBinding/obj/Debug/ios/ /sourceonly:/Users/pedroccrl/Projects/BitmoviniOSBinding/BitmoviniOSBinding/obj/Debug/ios/sources.list /target-framework=Xamarin.iOS,v1.0
BTOUCH : error BI0002: bgen: Could not compile the API bindings.
ApiDefinition.cs(3,7): error CS0246: The type or namespace name 'BitmovinPlayer' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(46,34): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2394,39): error CS0246: The type or namespace name 'IBMPUserInterfaceAPI' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2394,61): error CS0246: The type or namespace name 'IBMPUserInterfaceEventHandler' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(131,38): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(221,16): error CS0111: Type 'BMPCue' already defines a member called 'Constructor' with the same parameter types
ApiDefinition.cs(297,31): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(1899,32): error CS0308: The non-generic type 'NSObject' cannot be used with type arguments
ApiDefinition.cs(345,39): error CS0308: The non-generic type 'NSObject' cannot be used with type arguments
ApiDefinition.cs(1903,32): error CS0308: The non-generic type 'NSObject' cannot be used with type arguments
ApiDefinition.cs(1908,65): error CS0308: The non-generic type 'NSObject' cannot be used with type arguments
ApiDefinition.cs(1908,146): error CS0308: The non-generic type 'NSObject' cannot be used with type arguments
ApiDefinition.cs(2753,6): error CS0579: Duplicate 'Static' attribute
ApiDefinition.cs(2785,6): error CS0579: Duplicate 'Static' attribute
ApiDefinition.cs(2434,33): error CS0246: The type or namespace name 'GCKMediaStatus' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2438,35): error CS0246: The type or namespace name 'GCKMediaMetadata' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2458,26): error CS0246: The type or namespace name 'GCKCastChannel' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2481,9): error CS0246: The type or namespace name 'GCKMediaStatus' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2485,9): error CS0246: The type or namespace name 'GCKMediaMetadata' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2489,9): error CS0246: The type or namespace name 'GCKDevice' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2517,9): error CS0246: The type or namespace name 'GCKCastChannel' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2541,42): error CS0246: The type or namespace name 'GCKMediaInformation' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2953,14): error CS0111: Type 'BMPOfflineManagerListener' already defines a member called 'OfflineManager' with the same parameter types
ApiDefinition.cs(719,28): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(764,30): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(930,32): error CS0308: The non-generic type 'NSObject' cannot be used with type arguments
ApiDefinition.cs(583,44): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2723,46): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2966,10): warning CS0618: 'iOSAttribute' is obsolete: 'Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName.'
ApiDefinition.cs(2843,38): error CS0246: The type or namespace name 'IBMPMetadataEntry' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2230,35): error CS0246: The type or namespace name 'IBMPPlayerAPI' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2230,50): error CS0246: The type or namespace name 'IBMPPlayerEventHandler' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(2230,74): error CS0246: The type or namespace name 'IBMPRemoteControlAPI' could not be found (are you missing a using directive or an assembly reference?)
ApiDefinition.cs(3023,10): warning CS0618: 'iOSAttribute' is obsolete: 'Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName.'
ApiDefinition.cs(3028,10): warning CS0618: 'iOSAttribute' is obsolete: 'Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName.'
ApiDefinition.cs(521,27): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?)
Done building target "_GenerateBindings" in project "BitmoviniOSBinding.csproj" -- FAILED.
Done building project "BitmoviniOSBinding.csproj" -- FAILED.
Build FAILED.
ApiDefinition.cs(2966,10): warning CS0618: 'iOSAttribute' is obsolete: 'Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName.' ApiDefinition.cs(3023,10): warning CS0618: 'iOSAttribute' is obsolete: 'Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName.' ApiDefinition.cs(3028,10): warning CS0618: 'iOSAttribute' is obsolete: 'Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName.' BTOUCH : error BI0002: bgen: Could not compile the API bindings. ApiDefinition.cs(3,7): error CS0246: The type or namespace name 'BitmovinPlayer' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(46,34): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2394,39): error CS0246: The type or namespace name 'IBMPUserInterfaceAPI' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2394,61): error CS0246: The type or namespace name 'IBMPUserInterfaceEventHandler' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(131,38): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(221,16): error CS0111: Type 'BMPCue' already defines a member called 'Constructor' with the same parameter types ApiDefinition.cs(297,31): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(1899,32): error CS0308: The non-generic type 'NSObject' cannot be used with type arguments ApiDefinition.cs(345,39): error CS0308: The non-generic type 'NSObject' cannot be used with type arguments ApiDefinition.cs(1903,32): error CS0308: The non-generic type 'NSObject' cannot be used with type arguments ApiDefinition.cs(1908,65): error CS0308: The non-generic type 'NSObject' cannot be used with type arguments ApiDefinition.cs(1908,146): error CS0308: The non-generic type 'NSObject' cannot be used with type arguments ApiDefinition.cs(2753,6): error CS0579: Duplicate 'Static' attribute ApiDefinition.cs(2785,6): error CS0579: Duplicate 'Static' attribute ApiDefinition.cs(2434,33): error CS0246: The type or namespace name 'GCKMediaStatus' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2438,35): error CS0246: The type or namespace name 'GCKMediaMetadata' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2458,26): error CS0246: The type or namespace name 'GCKCastChannel' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2481,9): error CS0246: The type or namespace name 'GCKMediaStatus' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2485,9): error CS0246: The type or namespace name 'GCKMediaMetadata' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2489,9): error CS0246: The type or namespace name 'GCKDevice' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2517,9): error CS0246: The type or namespace name 'GCKCastChannel' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2541,42): error CS0246: The type or namespace name 'GCKMediaInformation' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2953,14): error CS0111: Type 'BMPOfflineManagerListener' already defines a member called 'OfflineManager' with the same parameter types ApiDefinition.cs(719,28): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(764,30): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(930,32): error CS0308: The non-generic type 'NSObject' cannot be used with type arguments ApiDefinition.cs(583,44): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2723,46): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2843,38): error CS0246: The type or namespace name 'IBMPMetadataEntry' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2230,35): error CS0246: The type or namespace name 'IBMPPlayerAPI' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2230,50): error CS0246: The type or namespace name 'IBMPPlayerEventHandler' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(2230,74): error CS0246: The type or namespace name 'IBMPRemoteControlAPI' could not be found (are you missing a using directive or an assembly reference?) ApiDefinition.cs(521,27): error CS0246: The type or namespace name 'IBMPJsonable' could not be found (are you missing a using directive or an assembly reference?) 3 Warning(s) 34 Error(s)
Time Elapsed 00:00:04.64
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Build: 34 errors, 3 warnings
Что я делаю не так?