2016-08-25 10 views
0

У меня есть эта ошибка и ... ничего в сети! Это, кажется, выходит из Newtonsoft.Json ..Xamarin Forms UWP - Ошибка: ILT0042: Массивы типов указателей в настоящее время не поддерживаются

Существует output моего проекта PCL

1> Newtonsoft.Json 
1> Imported XAML Roots from 2 files: 
1> C:\PROJECT_PATH\PROJECT.UWP\obj\ARM\Release\ilc\in\PROJECT.UWP.xr.xml 
1> C:\PROJECT_PATH\PROJECT.UWP\obj\ARM\Release\ilc\in\Xamarin.Forms.Platform.UAP\Xamarin.Forms.Platform.UAP.xr.xml 
1>C:\PROJECT_PATH\PROJECT.UWP\Resources.System.Linq.Expressions.rd.xml(35): warning : ILTransform_0027: Method 'CreateLambda' within 'System.Linq.Expressions.Expression' could not be found. 
1>C:\PROJECT.UWP\Resources.System.Linq.Expressions.rd.xml(91): warning : ILTransform_0027: Method 'ParameterIsAssignable' within 'System.Linq.Expressions.Expression' could not be found. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Generation.CompilerHelpers.MemberEquals(System.Reflection.MemberInfo, System.Reflection.MemberInfo)' at IL offset 0x3F. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.ConstructorInfo, System.Reflection.BindingFlags)' at IL offset 0x15. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.ConstructorInfo, System.Reflection.BindingFlags)' at IL offset 0x2E. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.MethodInfo, System.Reflection.BindingFlags)' at IL offset 0x15. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.MethodInfo, System.Reflection.BindingFlags)' at IL offset 0x2E. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.FieldInfo, System.Reflection.BindingFlags)' at IL offset 0x15. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.FieldInfo, System.Reflection.BindingFlags)' at IL offset 0x2E. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.EventInfo, System.Reflection.BindingFlags)' at IL offset 0xB4. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.EventInfo, System.Reflection.BindingFlags)' at IL offset 0xC9. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.PropertyInfo, System.Reflection.BindingFlags)' at IL offset 0x15. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Reflection.PropertyInfo, System.Reflection.BindingFlags)' at IL offset 0x2E. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Boolean Microsoft.Scripting.Utils.ReflectionUtils.MatchesFlags(System.Type, System.Reflection.BindingFlags)' at IL offset 0x20. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Security.Authentication.CipherAlgorithmType Security.Tls.MobileAuthenticatedStream.CipherAlgorithm.get()' at IL offset 0x24. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Security.Authentication.HashAlgorithmType Security.Tls.MobileAuthenticatedStream.HashAlgorithm.get()' at IL offset 0x24. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Security.Authentication.ExchangeAlgorithmType Security.Tls.MobileAuthenticatedStream.KeyExchangeAlgorithm.get()' at IL offset 0x24. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.IntPtr CoreText.CTParagraphStyle.CreateFromSettings(CoreText.CTParagraphStyleSettings)' at IL offset 0xCC. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): warning : ILTransform_0027: Invalid IL detected in method 'System.Int32 CoreAnimation.CATransform3D.GetHashCode()' at IL offset 0x22. 
1>C:\Program Files (x86)\MSBuild\Microsoft\.NetNative\ARM\ilc\IlcInternals.targets(936,5): error : ILT0042: Arrays of pointer types are not currently supported: 'System.Int16*[]'.__Arrays of pointer types are not currently supported: 'System.Single*[]'.__Arrays of pointer types are not currently supported: 'System.Int16*[]'.__Arrays of pointer types are not currently supported: 'System.Int16*[]'.__Arrays of pointer types are not currently supported: 'System.Single*[]'.__Arrays of pointer types are not currently supported: 'System.Single*[]'.__Arrays of pointer types are not currently supported: 'System.Int16*[]'.__Arrays of pointer types are not currently supported: 'System.Single*[]'.__ 
1> 
1>Build FAILED. 
1> 
1>Time Elapsed 00:01:17.24 
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ========== 
========== Deploy: 0 succeeded, 0 failed, 0 skipped ========== 

ли кто-то может мне помочь? :/Мне нужно сделать эту версию UWP моего проекта PCL ...

+0

Привет Emixam, это PCL, созданный шаблоном проекта по умолчанию Xamarin? Похоже, я не могу воспроизвести вашу проблему, используя Newtonsoft.Json V9.0.1. Не могли бы вы создать простую демонстрацию, которая может воспроизвести эту проблему? –

+0

Хорошо, я постараюсь сделать вам Edit;) – Emixam23

+0

@ Emixam23 Когда вы начали видеть эту ошибку? – user1

ответ

2

У меня была та же проблема. Мне потребовались дни, чтобы понять это. Чтобы решить эту проблему, мне пришлось прокомментировать эту строку из моего файла UWP.csproj.

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

Я могу только предположить, что эта строка была добавлена, когда я попытался добавить следующий рецепт загрузочной страницы в свое приложение. В какой-то момент я попытался добавить его в качестве средства рендеринга клиента к моему приложению UWP и при этом добавил с помощью UIKIT, который является iOS. Я только размышляю, но, возможно, это все. https://developer.xamarin.com/recipes/ios/standard_controls/popovers/display_a_loading_message/

Я также предполагаю, что он работал просто отлично под отладкой, но не построить под Выпуском из-за того, что Native инструмента вариант цепи .Net пытался скомпилировать Xamarin.iOS.dll с моими UWP приложения ,

Я не говорю, что это ваша проблема, но, возможно, в вашем файле UWP.csproj есть аналогичная запись, которая вызывает проблему. Надеюсь это поможет.

+0

Хорошо спасибо, я посмотрю :) – Emixam23

0

Убедитесь, что вы обновили все пакеты до последних версий, у вас есть версия Visual Studio 2015 Update 3 и последняя стабильная версия Xamarin.

Некоторые разработчики отмечают, что пакеты приложений для релиза здания могут вызывать проблемы, если вы не используете английскую версию Visual Studio - если вы этого не сделаете, установите ее в Tools -> Options -> International Settings.

+0

Привет, хорошо, теперь я попробую попробовать либо мой компьютер, либо мою визуальную студию 2015 год - на английском языке. :) спасибо! – Emixam23

+0

Я пробовал все без успеха:/ – Emixam23