Problems running on iOS

筅森魡賤 提交于 2019-12-12 20:23:53

问题


I've tried on 3 different computers but it still has the same problem that prevents me from running the project on the Mac. When I use Windows and connect to my Mac to run, it shows the same error on all 3 computers.

The error message displayed:

Can not resolve reference: /Library/Frameworks/Xamarim.iOS.framework/Versions/Current/lilb/mono/Xamarin.iOS/Facades/System.Memory.dll


回答1:


Quick fix steps

  1. VS on PC:

    • in iOS poject open References list
    • find Xamarin.iOS and check the path in properties
    • open containing folder, open Facades folder, copy System.Memory.dll
  2. Mac:

    • open Finder and Go > Go to folder... > type Library
    • find:

      Library/Frameworks/Xamarim.iOS.framework/Versions/Current/lilb/mono/Xamarin.iOS/Facades/

    • paste System.Memory.dll

.. rebuild and you are good to go




回答2:


From what I understand, this is usually do to a pending update for Xcode.

Make sure Xcode is installed and updated. Once it is updated, launch Xcode to ensure that all updates are finished(I don't know why, but a lot of times you have to run Xcode for the update to finalize.)

Then clean and rebuild your project. That should fix the issue.



来源:https://stackoverflow.com/questions/51417228/problems-running-on-ios

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!