【问题标题】:Error Native linking error: framework not found IOSurface for architecture arm64错误本机链接错误:未找到架构 arm64 的框架 IOSurface
【发布时间】:2018-05-28 19:46:58
【问题描述】:

我在尝试为我的 Xamarin.IOS 项目进行构建时遇到以下错误。

本机链接错误:未找到架构 arm64 的框架。

本机链接失败。请查看构建日志。

我正在尝试使用 UGROKIT xamarin sdk,但没有成功。它在我的 Android 项目上运行良好。

我在windows上用的是VS2015,mac上的xcode版本是8.2.1。

我尝试过做原生参考,但似乎也不起作用。

不知道我还能做什么。有什么想法吗?

【问题讨论】:

  • 不,我的 iPad 还是 9.3.5,模拟器是 10.2。

标签: c# ios xamarin xamarin.ios


【解决方案1】:

本机链接错误:找不到架构 arm64 的 IOSurface 框架。 xcode 版本是 8.2.1。 我的 iPad 还是 9.3.5,模拟器是 10.2。

IOSurface 曾经是一个私有框架,因此不允许在提交到 App Store 的应用中使用。

在 iOS 11 中 IOSurface.framework 已更改,现在它是一个公共框架,您必须使用 Xcode9(+) 并以 iOS11(+) 为目标。

回复:https://developer.apple.com/documentation/iosurface

iOS 11
The following new frameworks were added in iOS 11:

ARKit.framework (Augmented Reality)
CoreML.framework (Machine Learning)
CoreNFC.framework (Near Field Communication)
DeviceCheck.framework
FileProvider.framework
FileProviderUI.framework
IdentityLookup.framework
IOSurface.framework
PDFKit.framework (new in iOS, exists in macOS)
Vision.framework

回复:Xamarin.iOS 11.0/#Whats_New

【讨论】:

    【解决方案2】:

    在我将这一行添加到我的项目后,我得到了同样的错误

    using FFImageLoading;
    

    ImageService.Instance.LoadFile(ViewModel.BannerUrl).Into(ImageBunner);

    当我删除它时,我的项目构建成功!

    不知道为什么!!!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-08-25
      • 2018-08-08
      • 2016-02-22
      • 2016-07-11
      • 2015-12-16
      • 1970-01-01
      • 2023-03-05
      • 1970-01-01
      相关资源
      最近更新 更多