Unable to bind Unblu swift framework with Sharpie

265 Views Asked by At

I am creating an app with Xamarim.Forms. I need to use a native library named Unblu. I have the native Objective C framework, but I cannot create the bindings with sharpie because of those errors :

Parsing 1 header files...
While building module 'UnbluVisitorSDK' imported from /private/var/folders/sb/_lrwpl2j7sn5r5tbdhpc_kk40000gp/T/com.xamarin.ObjectiveSharpie/68a590b92ee147c08da023ee285457c4.h:1:
While building module 'UnbluCoreSDK' imported from /Users/max/Unblu/UnbluVisitorSDK.framework/Headers/UnbluVisitorSDK.h:10:
In file included from <module-includes>:1:
In file included from /Users/max/Unblu/UnbluCoreSDK.framework/Headers/UnbluCoreSDK.h:19:
/Users/max/Unblu/UnbluCoreSDK.framework/Headers/OTDefaultAudioDevice.h:8:9: fatal error: 'OpenTok/OpenTok.h' file not found
#import <OpenTok/OpenTok.h>
        ^~~~~~~~~~~~~~~~~~~
While building module 'UnbluVisitorSDK' imported from /private/var/folders/sb/_lrwpl2j7sn5r5tbdhpc_kk40000gp/T/com.xamarin.ObjectiveSharpie/68a590b92ee147c08da023ee285457c4.h:1:
In file included from <module-includes>:1:
/Users/max/Unblu/UnbluVisitorSDK.framework/Headers/UnbluVisitorSDK.h:10:9: fatal error: could not build module 'UnbluCoreSDK'
#import <UnbluCoreSDK/UnbluCoreSDK.h>
 ~~~~~~~^
/private/var/folders/sb/_lrwpl2j7sn5r5tbdhpc_kk40000gp/T/com.xamarin.ObjectiveSharpie/68a590b92ee147c08da023ee285457c4.h:1:9: fatal error: could not build module 'UnbluVisitorSDK'
@import UnbluVisitorSDK;
 ~~~~~~~^~~~~~~~~~~~~~~

Binding...
3 errors generated.
Error while processing /private/var/folders/sb/_lrwpl2j7sn5r5tbdhpc_kk40000gp/T/com.xamarin.ObjectiveSharpie/68a590b92ee147c08da023ee285457c4.h.

Done. Exiting with error code 1.
error: Clang failed to parse input and exited with code 1

I have downloaded the OpenTok framework and tried to bind it (it works fine). Then I tries those command lines with Sharpie to bind Unblu but I still have the same errors...

sharpie bind --sdk=iphoneos --output="Unblu/UnbluCoreSDK.framework/XamarinApiDef" --namespace="UnbluCoreSDK" --framework "Unblu/UnbluCoreSDK.framework" -c -F"Downloads/OpenTok-iOS/OpenTok.framework"
sharpie bind --sdk=iphoneos --output="Unblu/UnbluCoreSDK.framework/XamarinApiDef" --namespace="UnbluCoreSDK" --framework "./Unblu/UnbluCoreSDK.framework" -c -I"Downloads/OpenTok-iOS/OpenTok.framework/Headers"

Any idea to solve this import error please ? I have the dependancy framework it is annoying to be stuck like that for days.

0

There are 0 best solutions below