Xamarin Forms UWP - Error : ILT0042: Arrays of pointer types are not currently supported

后端 未结 2 1564
误落风尘
误落风尘 2021-01-26 02:02

I got this error and.. nothing on the web ! It seems to come from Newtonsoft.Json..

There is the output of my PCL project

1         


        
相关标签:
2条回答
  • 2021-01-26 02:40

    I had the same problem. It took me days to figure this out. To solve the problem, I had to comment out this line from my UWP.csproj file.

    <ItemGroup>
        <Reference Include="Xamarin.iOS">
          <HintPath>..\..\..\..\..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\Xamarin.iOS\v1.0\Xamarin.iOS.dll</HintPath>
        </Reference>
    </ItemGroup>
    

    I can only assume that this line got added when I tried to add the following loading page recipe to my app. At one point, I tried to add it as a customer renderer to my UWP app and in doing so added using UIKIT, which is an iOS thing. I'm only speculating, but perhaps that is it. https://developer.xamarin.com/recipes/ios/standard_controls/popovers/display_a_loading_message/

    I also assume that it worked just fine under Debug, but didn't Build under Release due to the fact that the .Net Native tool chain option was trying to compile the Xamarin.iOS.dll with my UWP app.

    I'm not saying that this is your issue, but perhaps there is a similar entry in your UWP.csproj file that is causing the issue. Hope this helps.

    0 讨论(0)
  • 2021-01-26 02:49

    Ensure you have updated all the packages to the latest versions, you have Visual Studio 2015 Update 3 and the latest stable version of Xamarin.

    Some developers have mentions, that building release app packages can cause issues if you don't use the English version of Visual Studio - if you don't, set it in Tools -> Options -> International Settings.

    0 讨论(0)
提交回复
热议问题