簡體   English   中英

無法在 Xamarin.iOS 上 AOT Microsoft.CSharp.dll 的程序集

[英]Could not AOT the assembly for Microsoft.CSharp.dll on Xamarin.iOS

當我嘗試構建我的 Xamarin iOS 項目時,出現錯誤:“無法 AOT 程序集 '/Users/xxx/Library/Caches/Xamarin/mtbs/builds/myApp.iOS/hugeNumbers/obj/iPhone/Debug/mtouch -cache/3-Build/Microsoft.CSharp.dll'"

我在其他一些帖子中發現這是由於 Newtonsoft.Json 包造成的,但它應該是在不久前修復的。

我正在嘗試在 Windows 上的 Visual Studio 2019 上構建我的項目,與我的 Mac 同步以便在 iPhone 上啟動。

請問有什么幫助嗎?

感謝 Lex Li,以下是使其對我有用的步驟:

1- 從這里下載 AOT 安裝程序(適用於 Visual Studio 2019 和 Visual Studio for Mac 8.0

2-啟動安裝程序並按照步驟操作

3- 在您的項目 Xamarin.iOS (myApp.iOS) 上,右鍵單擊 > 設置

4- 轉到構建 iOS,並在頁面底部的附加 mtouch 參數部分添加“--interpreter”

5-再次構建,它應該可以工作。

試試這個:刪除手機或模擬器上的應用程序。 清潔和重建解決方案。 再次部署。

<MtouchExtraArgs>--interpreter=FSharp.Core ...</MtouchExtraArgs>
<MtouchInterpreter>-all</MtouchInterpreter>

<MtouchExtraArgs>--linkskip=FSharp.Core ...</MtouchExtraArgs>

兩者都在https://github.com/xperiandri/Elmish.Uno/為我工作

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM