0

我正在使用 Xamarim.Forms 创建一个应用程序。我需要使用一个名为 Unblu 的本地库。我有本机 Objective C 框架,但由于这些错误,我无法使用 Sharpie 创建绑定:

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

我已经下载了 OpenTok 框架并尝试绑定它(它工作正常)。然后我用 Sharpie 尝试那些命令行来绑定 Unblu,但我仍然有同样的错误......

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"

请问有什么办法解决这个导入错误吗?我有依赖框架,像这样被困几天很烦人。

4

0 回答 0