c0de / XamarinOpenTok

Xamarin OpenTok Bindings and Test Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Object reference not set to an instance of an object. OpenTok.Binding.iOS

NVentimiglia opened this issue · comments

I am getting a null reference exception when building the ios binding project. This is very strange. Do you have any idea what the cause of this is ?

Different exception on IOS / Xam Studio


Building: OpenTok.Binding.iOS (Release)

Build started 3/27/2016 10:48:03 PM.
__________________________________________________
Project "/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/OpenTok.Binding.iOS.csproj" (Build target(s)):

    Target _CollectBundleResources:
        CollectBundleResources Task
          BundleResources:
          OptimizePropertyLists: False
          OptimizePNGs: False
          ProjectDir: /Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS
          ResourcePrefix: Resources

    Target _CreateEmbeddedResources:
        CreateEmbeddedResources Task
          BundleResources:
          Prefix: monotouch

    Target PrepareForBuild:
        Configuration: Release Platform: AnyCPU

    Target GenerateSatelliteAssemblies:
    No input files were specified for target GenerateSatelliteAssemblies, skipping.

    Target _GenerateBindings:
        BTouchEmitDebugInformation: false
        BTouch Task
          BTouchToolPath: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/
          BTouchToolExe: btouch-native
          AdditionalLibPaths: <null>
          AllowUnsafeBlocks: True
          ApiDefinitions:
            ApiDefinitionNew.cs
          BaseLibDll: /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll
          CompilerPath: <null>
          CoreSources:
            StructsAndEnums.cs
          DefineConstants: __MOBILE__;__IOS__;
          EmitDebugInformation: False
          GeneratedSourcesDir: obj/Release/ios/
          GeneratedSourcesFileList: obj/Release/ios/sources.list
          Namespace: <null>
          NativeLibraries: <null>
          NoStdLib: False
          OutputAssembly: <null>
          References:
            /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.dll
            /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll
            /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Core.dll
            /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll
          Resources: <null>
          Sources: <null>
        Tool /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/btouch-native execution started with arguments: /v /baselib:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll /unsafe /d:"__MOBILE__;__IOS__" /Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs /s:/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/StructsAndEnums.cs -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 -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Core.dll -r /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll /tmpdir:/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/obj/Release/ios/ /sourceonly:/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/obj/Release/ios/sources.list 
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(62,4): warning CS0618: `ObjCRuntime.AvailabilityAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(62,40): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(62,63): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(71,4): warning CS0618: `ObjCRuntime.AvailabilityAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(71,40): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(71,63): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(80,4): warning CS0618: `ObjCRuntime.AvailabilityAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(80,40): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(80,63): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(89,4): warning CS0618: `ObjCRuntime.AvailabilityAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(89,40): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
        /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/smcs -debug -unsafe -target:library -nowarn:436 -out:'/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/obj/Release/ios/temp.dll' -r:/Library/Frameworks/Xamarin.iOS.framework/Versions/9.4.1.25/lib/btouch/btouch-native.exe -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' -r:'/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/System.Core.dll' -r:'/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/mscorlib.dll' -unsafe -r:'/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS/Xamarin.iOS.dll' -define:__MOBILE__;__IOS__  '/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs' '/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/StructsAndEnums.cs' -lib:/Library/Frameworks/Xamarin.iOS.framework/Versions/Current/lib/mono/Xamarin.iOS 
BTOUCH: error BI1007: btouch: Unknown attribute ObjCRuntime.AvailabilityAttribute on OpenTok.Binding.Ios.OTSession.Disconnect
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(89,63): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(98,4): warning CS0618: `ObjCRuntime.AvailabilityAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(98,40): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(98,63): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
    Task "BTouch" execution -- FAILED
    Done building target "_GenerateBindings" in project "/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/OpenTok.Binding.iOS.csproj".-- FAILED

Done building project "/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/OpenTok.Binding.iOS.csproj".-- FAILED

Build FAILED.

Warnings:

/Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/OpenTok.Binding.iOS.csproj (Build) ->
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/iOS/Xamarin.iOS.ObjCBinding.CSharp.targets (_GenerateBindings target) ->

    /Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(62,4): warning CS0618: `ObjCRuntime.AvailabilityAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
    /Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(62,40): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
    /Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(62,63): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
    /Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(71,4): warning CS0618: `ObjCRuntime.AvailabilityAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
    /Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(71,40): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
    /Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(71,63): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
    /Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(80,4): warning CS0618: `ObjCRuntime.AvailabilityAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
    /Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(80,40): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
    /Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(80,63): warning CS0618: `ObjCRuntime.Platform' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'
    /Users/nventimiglia/Desktop/AgriSync-GIT/XamarinOpenTok/Bindings/OpenTok.Binding.iOS/ApiDefinitionNew.cs(89,4): warning CS0618: `ObjCRuntime.AvailabilityAttribute' is obsolete: `Use [Introduced|Deprecated|Obsoleted|Unavailable] attributes with PlatformName'

---------------------- Done ----------------------

Build: 1 error, 15 warnings

We were working with the OpenTok development team in early 2015 trying to create xamarin bindings for their iOS and android SDK. Apple just updated XCode and tweaked Objective-C & Swift. I'm guessing the bindings just need to be updated. I can find some time to play with it and re-add the bindings.

https://developer.xamarin.com/guides/ios/advanced_topics/binding_objective-c/