c# - 更新到最新的 Xcode 和 VS 后,Xamarin ios 编译到 Iphone 失败

标签 c# xcode xamarin xamarin.ios linker-errors

我有一个使用 XCardView 一段时间的项目。(我已经将该应用分发到应用商店。) 我将 VS 和 XCode 都更新到了最新版本。

现在,当我在模拟器中执行我的项目时,一切正常。 但是,当我尝试将其编译到设备时,操作失败并出现 3 个错误:

enter image description here

1:

Error: linker command failed with exit code 1 (use -v to see invocation)

2:

Error MT5211: Native linking failed, undefined Objective-C class: ZLSwipeableViewDelegate. The symbol '_OBJC_CLASS_$_ZLSwipeableViewDelegate' could not be found in any of the libraries or frameworks linked with your application. (MT5211)

3:

Error MT5202: Native linking failed. Please review the build log. (MT5202)

我读过 MT5211 link对于错误,但我不知道如何解决它,因为我没有 XCardView 库的源代码,并且在日志中我没有找到任何有趣的信息...

顺便说一句,我根本没有更改我的项目设置。

有什么办法可以解决这个问题吗?

提前致谢:)

编辑 1:

除了添加新的类文件外,我没有更改任何项目设置。 这是我的项目配置文件:

enter image description here

编辑 2:

XCardView 是一个 Xamarin 组件。由于组件商店不再可用,因此可以找到整个组件 here

最佳答案

右键单击 ios 解决方案,您将看到 iOS 构建选项,您可以将链接器属性设置为仅从 SDK 链接。

关于c# - 更新到最新的 Xcode 和 VS 后,Xamarin ios 编译到 Iphone 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50786049/

相关文章:

c# - 如何检测应用程序何时终止?

c# - UINavigationController 和 UISplitviewController

c# - 属性 - 按值还是引用?

swift - 是否可以将输入的文本保存到 SwiftUI 的警报文本字段中,并像这样在应用程序中显示它 -> Text ("alert text input here")?

xcode - 如何在 OS X 中使用 masm 编译并运行汇编代码?

xamarin - 如何获取ListView中Picker的选定项?

c# - 用于选择两个集合之间的公共(public)元素的 Linq 语句

ios - 我该如何解决这个委托(delegate)错误?

xamarin - 这个项目需要迁移xamarin项目

c# - Xamarin 'Hello Android' Quickstart 无法在 Visual Studio 2015 中初始化 Nexus 5 KitKat