Quantcast
Channel: Recent Threads — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 204402

Bindings for LiveSDK

$
0
0

Hi All,

I would quite like to use the LiveSDK for iOS with Xamarin and since I can't find anything pre-made out there (other than Auth0, which is excellent but requires slightly too much money for the number of logins we're after) I've decided to look into creating bindings for it.

The pre-built library come as a LiveSDK.Framework which I'm assuming I would simply extract the static library from for referencing and then create the bindings against the headers it contains (although I'm not sure what to do about the "PrivateHeaders" it has in there as well as the authorisation dialog .nibs). It does also come with the source though.

I am having some trouble figuring out the bindings for library, I have tried Objective Sharpie to auto generate the bindings but that seems to fail in a number of places with the following error message:

/LiveSDK-for-iOS-master/bin/LiveSDK.framework/Versions/5.0.3649.0612/Headers/LiveConnectClient.h:85:17: error: expected a type - (void) login:(UIViewController *)currentViewController ^ /LiveSDK-for-iOS-master/bin/LiveSDK.framework/Versions/5.0.3649.0612/Headers/LiveConnectClient.h:88:17: error: expected a type - (void) login:(UIViewController *)currentViewController ^ /LiveSDK-for-iOS-master/bin/LiveSDK.framework/Versions/5.0.3649.0612/Headers/LiveConnectClient.h:92:17: error: expected a type - (void) login:(UIViewController *)currentViewController ^ /LiveSDK-for-iOS-master/bin/LiveSDK.framework/Versions/5.0.3649.0612/Headers/LiveConnectClient.h:96:17: error: expected a type - (void) login:(UIViewController *)currentViewController ^ 4 errors generated. Error while processing /LiveSDK-for-iOS-master/bin/LiveSDK.framework/Versions/5.0.3649.0612/Headers/LiveConnectClient.h. /LiveSDK-for-iOS-master/bin/LiveSDK.framework/Versions/5.0.3649.0612/Headers/LiveUploadOperationDelegate.h:16:34: error: expected a type - (void) liveOperationSucceeded:(LiveOperation *)operation; ^ /LiveSDK-for-iOS-master/bin/LiveSDK.framework/Versions/5.0.3649.0612/Headers/LiveUploadOperationDelegate.h:21:31: error: expected a type operation:(LiveOperation *)operation; ^ /LiveSDK-for-iOS-master/bin/LiveSDK.framework/Versions/5.0.3649.0612/Headers/LiveUploadOperationDelegate.h:25:41: error: expected a type operation:(LiveOperation *)operation; ^ 3 errors generated. Error while processing /LiveSDK-for-iOS-master/bin/LiveSDK.framework/Versions/5.0.3649.0612/Headers/LiveUploadOperationDelegate.h. sharpie-clang-parser exited with error code: 1 System.Exception: sharpie-clang-parser exited with error code: 1 at Sharpie.ObjC.Parser.Parse (System.IO.TextWriter sexpWriter, System.Collections.Generic.List`1 stderrLines) [0x00000] in :0 at Sharpie.Mac.MainWindowController+c__AnonStorey3.<>m__B (System.Object o) [0x00000] in :0

Before I go down the manual creation of binding path, I wanted to just reach out there and see if anyone has already created bindings for the LiveSDK for iOS and would be willing to share, or knows of a reasonable alternative.

Regards Hobsie


Viewing all articles
Browse latest Browse all 204402

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>