简体   繁体   English

Xamarin iOS-“ ..的本地链接失败”,带有静态库绑定

[英]Xamarin iOS - “Native linking failed for ..” with Static Library Bind

I'm trying to build an, only iOS, app but I get two errors: 我正在尝试构建一个仅iOS应用程序,但出现两个错误:

linker command failed with exit code 1 (use -v to see invocation) 链接器命令失败,退出代码为1(使用-v查看调用)

Native linking failed for '/Users/{name}/Desktop/{application name}/{application name}/obj/iPhone/Debug/device-builds/iphone8.1-11.1.2/mtouch-cache/arm64/libSomething.dll.dylib'. '/ Users / {name} / Desktop / {application name} / {application name} /obj/iPhone/Debug/device-builds/iphone8.1-11.1.2/mtouch-cache/arm64/libSomething的本机链接失败。 dll.dylib”。 Please file a bug report at http://bugzilla.xamarin.com 请在http://bugzilla.xamarin.com提交错误报告

I get these errors with a dll generated from a binding of a (native obj-c) static library with XCode 9.2 我通过从(本地obj-c)静态库与XCode 9.2的绑定生成的dll得到这些错误

I'm using Visual Studio 7.2 with Xamarin.iOS 11.6.1.2 我正在将Visual Studio 7.2与Xamarin.iOS 11.6.1.2一起使用

I fixed it. 我修好了它。 The error was in the Static Library, was missing two classes. 错误出在静态库中,缺少两个类。 I've added these two in XCode and then works. 我在XCode中添加了这两个,然后可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM