Search Unity

UWP compilation error

Discussion in 'Windows' started by GLeBaTi, May 12, 2017.

  1. GLeBaTi

    GLeBaTi

    Joined:
    Jan 12, 2013
    Posts:
    54
    Hello. I have this error when i compile UWP.

    Unity version: 2017.1.0b4
    BuidType: D3D
    Use Net Core
    ScriptingBackand: IL2CPP
    API LVL: .NET 2.0
    Scripting Runtime version: 3.5​

    Code (csharp):
    1. UnityException: Failed to run reference rewriter with command --target="Temp\StagingArea\Data\Managed\winrt.dll" --additionalreferences="Temp\StagingArea\Data\Managed" --platform="C:\Program Files (x86)\Windows Kits\10\UnionMetadata\Facade\Windows.winmd" --dbg=pdb --framework="Temp\StagingArea\Data\Managed" --alt=Microsoft.Win32.SafeHandles,mscorlib;System,mscorlib;System,System;System,System.Core;System.CodeDom.Compiler,System;System.Collections,mscorlib;System.Collections.Generic,mscorlib;System.Collections.Generic,System;System.Collections.Generic,System.Core;System.Collections.ObjectModel,mscorlib;System.Collections.ObjectModel,WindowsBase;System.Collections.Specialized,System;System.Collections.Specialized,WindowsBase;System.ComponentModel,System;System.ComponentModel.DataAnnotations,System.ComponentModel.DataAnnotations;System.Data,System.Data;System.Data.Common,System.Data;System.Diagnostics,mscorlib;System.Diagnostics,System;System.Diagnostics.CodeAnalysis,mscorlib;System.Globalization,mscorlib;System.IO,mscorlib;System.IO,System;System.IO,System.Core;System.IO.Compression,System;System.IO.IsolatedStorage,mscorlib;System.Linq,System.Core;System.Linq.Expressions,System.Core;System.Net,System;System.Net.NetworkInformation,System;System.Net.Security,System;System.Net.Sockets,System;System.Reflection,mscorlib;System.Reflection.Emit,mscorlib;System.Resources,mscorlib;System.Runtime,mscorlib;System.Runtime.CompilerServices,mscorlib;System.Runtime.CompilerServices,System.Core;System.Runtime.InteropServices,mscorlib;System.Runtime.InteropServices,System;System.Runtime.InteropServices.ComTypes,mscorlib;System.Runtime.InteropServices.ComTypes,System;System.Runtime.Serialization,mscorlib;System.Runtime.Serialization,System.Runtime.Serialization;System.Runtime.Serialization.Json,System.ServiceModel.Web;System.Security,mscorlib;System.Security.Authentication,System;System.Security.Principal,mscorlib;System.ServiceModel,System.ServiceModel;System.ServiceModel.Channels,System.ServiceModel;System.ServiceModel.Description,System.ServiceModel;System.ServiceModel.Dispatcher,System.ServiceModel;System.ServiceModel.Security,System.ServiceModel;System.ServiceModel.Security.Tokens,System.ServiceModel;System.Text,mscorlib;System.Text.RegularExpressions,System;System.Threading,mscorlib;System.Threading,System;System.Threading,System.Core;System.Xml,System.Runtime.Serialization;System.Xml,System.Xml;System.Xml.Linq,System.Xml.Linq;System.Xml.Schema,System.Xml;System.Xml.Serialization,System.Xml --ignore=System.IConvertible,mscorlib.
    2. Error: type `Windows.ApplicationModel.Store.LicenseInformation` doesn't exist in target framework. It is referenced from winrt.dll at UnityEngine.Purchasing.Default.CurrentApp.
    3. Error: type `Windows.ApplicationModel.Store.UnfulfilledConsumable` doesn't exist in target framework. It is referenced from winrt.dll at Windows.Foundation.IAsyncOperation`1<System.Collections.Generic.IReadOnlyList`1<Windows.ApplicationModel.Store.UnfulfilledConsumable>> UnityEngine.Purchasing.Default.CurrentApp::GetUnfulfilledConsumablesAsync().
    4. Error: type `System.Collections.Generic.IReadOnlyList`1` doesn't exist in target framework. It is referenced from winrt.dll at Windows.Foundation.IAsyncOperation`1<System.Collections.Generic.IReadOnlyList`1<Windows.ApplicationModel.Store.UnfulfilledConsumable>> UnityEngine.Purchasing.Default.CurrentApp::GetUnfulfilledConsumablesAsync().
    5. Error: type `Windows.Foundation.IAsyncOperation`1` doesn't exist in target framework. It is referenced from winrt.dll at Windows.Foundation.IAsyncOperation`1<System.Collections.Generic.IReadOnlyList`1<Windows.ApplicationModel.Store.UnfulfilledConsumable>> UnityEngine.Purchasing.Default.CurrentApp::GetUnfulfilledConsumablesAsync().
    6. Error: type `Windows.ApplicationModel.Store.UnfulfilledConsumable` doesn't exist in target framework. It is referenced from winrt.dll at Windows.Foundation.IAsyncOperation`1<System.Collections.Generic.IReadOnlyList`1<Windows.ApplicationModel.Store.UnfulfilledConsumable>> UnityEngine.Purchasing.Default.CurrentApp::GetUnfulfilledConsumablesAsync().
    7. Error: type `System.Collections.Generic.IReadOnlyList`1` doesn't exist in target framework. It is referenced from winrt.dll at Windows.Foundation.IAsyncOperation`1<System.Collections.Generic.IReadOnlyList`1<Windows.ApplicationModel.Store.UnfulfilledConsumable>> UnityEngine.Purchasing.Default.CurrentApp::GetUnfulfilledConsumablesAsync().
    8. Error: type `Windows.Foundation.IAsyncOperation`1` doesn't exist in target framework. It is referenced from winrt.dll at Windows.Foundation.IAsyncOperation`1<System.Collections.Generic.IReadOnlyList`1<Windows.ApplicationModel.Store.UnfulfilledConsumable>> UnityEngine.Purchasing.Default.CurrentApp::GetUnfulfilledConsumablesAsync().
    9. Error: type `Windows.ApplicationModel.Store.CurrentApp` doesn't exist in target framework. It is referenced from winrt.dll at Windows.Foundation.IAsyncOperation`1<System.Collections.Generic.IReadOnlyList`1<Windows.ApplicationModel.Store.UnfulfilledConsumable>> UnityEngine.Purchasing.Default.CurrentApp::GetUnfulfilledConsumablesAsync().
    10. Error: type `Windows.ApplicationModel.Store.UnfulfilledConsumable` doesn't exist in target framework. It is referenced from winrt.dll at Windows.Foundation.IAsyncOperation`1<System.Collections.Generic.IReadOnlyList`1<Windows.ApplicationModel.Store.UnfulfilledConsumable>> UnityEngine.Purchasing.Default.CurrentApp::GetUnfulfilledConsumablesAsync().
    11. Error: type `System.Collections.Generic.IReadOnlyList`1` doesn't exist in target framework. It is referenced from winrt.dll at Windows.Foundation.IAsyncOperation`1<System.Collections.Generic.IReadOnlyList`1<Windows.ApplicationModel.Store.UnfulfilledConsumable>> UnityEngine.Purchasing.Default.CurrentApp::GetUnfulfilledConsumablesAsync().
    12. Error: type `Windows.Foundation.IAsyncOperation`1` doesn't exist in target framework. It is referenced from winrt.dll at Windows.Foundation.IAsyncOperation`1<System.Collections.Generic.IReadOnlyList`1<Windows.ApplicationModel.Store.UnfulfilledConsumable>> UnityEngine.Purchasing.Default.CurrentApp::GetUnfulfilledConsumablesAsync().
    13. Catastrophic failure while running rrw: Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Windows.Foundation.UniversalApiContract, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'
    14.   � Unity.SearchPathAssemblyResolver.Resolve(AssemblyNameReference name, ReaderParameters parameters)
    15.   � Unity.SearchPathAssemblyResolver.Resolve(AssemblyNameReference name)
    16.   � Mono.Cecil.MetadataResolver.Resolve(TypeReference type) � C:\buildslave\cecil\build\Mono.Cecil\MetadataResolver.cs:��ப� 106
    17.   � Mono.Cecil.MetadataResolver.GetType(ModuleDefinition module, TypeReference reference) � C:\buildslave\cecil\build\Mono.Cecil\MetadataResolver.cs:��ப� 148
    18.   � Mono.Cecil.MetadataResolver.Resolve(MethodReference method) � C:\buildslave\cecil\build\Mono.Cecil\MetadataResolver.cs:��ப� 216
    19.   � Mono.Cecil.MethodReference.Resolve() � C:\buildslave\cecil\build\Mono.Cecil\MethodReference.cs:��ப� 170
    20.   � Unity.ReferenceRewriter.RewriteTypeReferences.Visit(MethodReference method, String referencingEntityName)
    21.   � Unity.ReferenceRewriter.ReferenceDispatcher.Visit(MethodReference method, String referencingEntityName)
    22.   � Unity.ReferenceRewriter.ReferenceDispatcher.DispatchMethodBody(MethodBody body)
    23.   � Unity.ReferenceRewriter.ReferenceDispatcher.DispatchMethod(MethodDefinition method)
    24.   � Unity.ReferenceRewriter.ReferenceDispatcher.DispatchMethods(TypeDefinition type)
    25.   � Unity.ReferenceRewriter.ReferenceDispatcher.Dispatch()
    26.   � Unity.ReferenceRewriter.RewriteTypeReferences.Run()
    27.   � Unity.ReferenceRewriter.RewriteOperation.Execute(RewriteContext context)
    28.   � Unity.ReferenceRewriter.Program.Main(String[] args)
    29.  
    30. PostProcessWinRT.RunReferenceRewriter () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:615)
    31. PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:170)
    32. UnityEditor.WSA.BuildPostprocessor.DoPostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:155)
    33. UnityEditor.WSA.BuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:162)
    34. UnityEditor.HostView:OnGUI()
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Looks like you are using Unity in-app purchasing. It does not work with IL2CPP when it's set to .NET 2.0 API compatibility level. Switch to .NET 4.6 compatibility level instead.
     
  3. GLeBaTi

    GLeBaTi

    Joined:
    Jan 12, 2013
    Posts:
    54
    Now i have this error with .NET 4.6
    Code (CSharp):
    1. Severity    Code    Description    Project    File    Line    Suppression State
    2. Error    LNK2001    unresolved external symbol "struct Il2CppType const IDictionary_2_t3331096585_0_0_0" (?IDictionary_2_t3331096585_0_0_0@@3UIl2CppType@@B)    Il2CppOutputProject    D:\IUBin\UWP\Il2CppOutputProject\B7F338584720098138B3E9DE701B96A5.obj    1  
    3.  
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Can you paste the contents of the output window?
     
  5. GLeBaTi

    GLeBaTi

    Joined:
    Jan 12, 2013
    Posts:
    54
    Scripting Runtime API = 4.6:
    1>------ Build started: Project: Il2CppOutputProject, Configuration: Master Win32 ------
    1> Building GameAssembly.dll with MsvcWinRtToolChain.
    1> Output directory: D:\IUBin\UWP\build\bin\Win32\Master
    1> Cache directory: D:\IUBin\UWP\build\obj\il2cppOutputProject\Win32\Master
    1> Il2CppMetadataUsage.cpp
    1> Il2CppAttributes.cpp
    1> Bulk_System.Xml_2.cpp
    1> Il2CppTypeDefinitions.cpp
    1> Bulk_Generics_22.cpp
    1> Bulk_Generics_5.cpp
    1> Il2CppGenericMethodPointerTable.cpp
    1> Il2CppMethodPointerTable.cpp
    1> Il2CppInvokerTable.cpp
    1> Bulk_Assembly-CSharp_2.cpp
    1> Bulk_System.Xml_4.cpp
    1> GenericMethods2.cpp
    1> Bulk_System.Core_0.cpp
    1> Il2CppInteropDataTable.cpp
    1> Il2CppGenericClassTable.cpp
    1> Il2CppGenericMethodTable.cpp
    1> GenericMethods0.cpp
    1> GenericMethods1.cpp
    1> Bulk_mscorlib_2.cpp
    1> Bulk_Assembly-CSharp_3.cpp
    1> Bulk_Assembly-CSharp_0.cpp
    1> Bulk_Assembly-CSharp_1.cpp
    1> Bulk_protobuf-net_0.cpp
    1> Bulk_System.Xml_3.cpp
    1> Bulk_mscorlib_1.cpp
    1> Bulk_mscorlib_9.cpp
    1> Bulk_System_5.cpp
    1> Bulk_System_6.cpp
    1> Bulk_mscorlib_12.cpp
    1> Bulk_UnityEngine.UI_0.cpp
    1> Bulk_System.Xml_1.cpp
    1> Bulk_mscorlib_13.cpp
    1> Bulk_Assembly-CSharp_6.cpp
    1> GenericMethods3.cpp
    1> Bulk_Assembly-CSharp_4.cpp
    1> Bulk_mscorlib_3.cpp
    1> Bulk_mscorlib_10.cpp
    1> Bulk_mscorlib_8.cpp
    1> Bulk_mscorlib_11.cpp
    1> Bulk_mscorlib_5.cpp
    1> Bulk_mscorlib_4.cpp
    1> Bulk_Assembly-CSharp_5.cpp
    1> Bulk_System.Xml_5.cpp
    1> Bulk_ProtobufTypeModel_0.cpp
    1> Bulk_System_2.cpp
    1> Bulk_Mono.Security_0.cpp
    1> Bulk_mscorlib_6.cpp
    1> Il2CppComCallableWrappers1.cpp
    1> Bulk_Generics_24.cpp
    1> Bulk_System_3.cpp
    1> Il2CppComCallableWrappers18.cpp
    1> Il2CppComCallableWrappers16.cpp
    1> Il2CppComCallableWrappers3.cpp
    1> Il2CppComCallableWrappers20.cpp
    1> Bulk_Generics_4.cpp
    1> Bulk_Photon3Unity3D_0.cpp
    1> Il2CppComCallableWrappers21.cpp
    1> Bulk_UnityEngine_0.cpp
    1> Bulk_System_1.cpp
    1> Il2CppComCallableWrappers13.cpp
    1> Bulk_Generics_6.cpp
    1> Il2CppComCallableWrappers25.cpp
    1> Il2CppComCallableWrappers26.cpp
    1> Il2CppComCallableWrappers23.cpp
    1> Bulk_System_0.cpp
    1> Il2CppComCallableWrappers22.cpp
    1> Il2CppComCallableWrappers24.cpp
    1> Il2CppComCallableWrappers14.cpp
    1> Bulk_System.Xml_0.cpp
    1> Il2CppComCallableWrappers15.cpp
    1> Il2CppComCallableWrappers27.cpp
    1> Il2CppComCallableWrappers28.cpp
    1> Il2CppComCallableWrappers6.cpp
    1> Il2CppComCallableWrappers17.cpp
    1> Bulk_System_4.cpp
    1> Il2CppComCallableWrappers19.cpp
    1> Il2CppComCallableWrappers12.cpp
    1> Il2CppComCallableWrappers7.cpp
    1> Il2CppComCallableWrappers8.cpp
    1> Bulk_Generics_45.cpp
    1> Il2CppComCallableWrappers5.cpp
    1> Il2CppComCallableWrappers11.cpp
    1> Il2CppComCallableWrappers10.cpp
    1> Bulk_UnityEngine_1.cpp
    1> Bulk_Generics_3.cpp
    1> Bulk_Assembly-CSharp_7.cpp
    1> Il2CppComCallableWrappers9.cpp
    1> Bulk_mscorlib_0.cpp
    1> Il2CppComCallableWrappers0.cpp
    1> Bulk_SharedLib_0.cpp
    1> Bulk_Generics_38.cpp
    1> Bulk_Generics_2.cpp
    1> Bulk_Generics_23.cpp
    1> Bulk_Generics_37.cpp
    1> Il2CppComCallableWrappers4.cpp
    1> Bulk_Generics_30.cpp
    1> Bulk_UnityEngine.UI_1.cpp
    1> Bulk_GameDevWare.Serialization_0.cpp
    1> Il2CppProjectedComCallableWrapperMethods1.cpp
    1> Bulk_System.Core_1.cpp
    1> Il2CppProjectedComCallableWrapperMethods2.cpp
    1> Bulk_Stores_0.cpp
    1> Bulk_Generics_25.cpp
    1> Il2CppProjectedComCallableWrapperMethods0.cpp
    1> Bulk_Generics_1.cpp
    1> Bulk_Generics_31.cpp
    1> Bulk_System.Configuration_0.cpp
    1> Il2CppComCallableWrappers2.cpp
    1> Bulk_UnityEngine_2.cpp
    1> Bulk_Generics_39.cpp
    1> Bulk_Generics_53.cpp
    1> Bulk_UnityEngine_3.cpp
    1> Il2CppGenericInstDefinitions.cpp
    1> Bulk_Generics_32.cpp
    1> Bulk_ICSharpCode.SharpZipLib_0.cpp
    1> Bulk_MHLab.PATCH_0.cpp
    1> Bulk_Mono.Security_1.cpp
    1> Bulk_Generics_29.cpp
    1> Bulk_Generics_28.cpp
    1> Il2CppProjectedComCallableWrapperMethods3.cpp
    1> Il2CppCompilerCalculateTypeValuesTable.cpp
    1> Bulk_Generics_40.cpp
    1> Il2CppComCallableWrappers29.cpp
    1> Bulk_mscorlib_7.cpp
    1> Bulk_Generics_41.cpp
    1> Bulk_SharedLib_1.cpp
    1> Bulk_Generics_0.cpp
    1> Bulk_Ionic.Zip.Unity_0.cpp
    1> Bulk_Generics_36.cpp
    1> Bulk_Generics_35.cpp
    1> Bulk_UnityEngine_4.cpp
    1> Bulk_Generics_44.cpp
    1> Bulk_Entities_0.cpp
    1> UnresolvedVirtualCallStubs.cpp
    1> Bulk_Generics_58.cpp
    1> Bulk_System.Xml.Linq_0.cpp
    1> Bulk_Generics_56.cpp
    1> Bulk_winrt_0.cpp
    1> Bulk_Generics_43.cpp
    1> Il2CppGenericMethodDefinitions.cpp
    1> Bulk_Generics_42.cpp
    1> Bulk_Generics_46.cpp
    1> Bulk_WindowsRuntimeMetadata_0.cpp
    1> Il2CppGenericComDefinitions0.cpp
    1> Il2CppCompilerCalculateTypeValues_29Table.cpp
    1> Il2CppCompilerCalculateTypeValues_53Table.cpp
    1> Bulk_UnityEngine.Purchasing_0.cpp
    1> Il2CppCompilerCalculateTypeValues_11Table.cpp
    1> Il2CppCompilerCalculateTypeValues_52Table.cpp
    1> Il2CppCompilerCalculateTypeValues_30Table.cpp
    1> Il2CppCompilerCalculateTypeValues_51Table.cpp
    1> Il2CppCompilerCalculateTypeValues_36Table.cpp
    1> Bulk_Generics_54.cpp
    1> Bulk_Generics_33.cpp
    1> Il2CppCompilerCalculateTypeValues_55Table.cpp
    1> Il2CppCompilerCalculateTypeValues_10Table.cpp
    1> Bulk_Generics_50.cpp
    1> Bulk_Generics_34.cpp
    1> Il2CppCompilerCalculateTypeValues_15Table.cpp
    1> Il2CppCompilerCalculateTypeValues_26Table.cpp
    1> Bulk_Assembly-CSharp-firstpass_0.cpp
    1> Il2CppCompilerCalculateTypeValues_58Table.cpp
    1> Il2CppCompilerCalculateTypeValues_44Table.cpp
    1> Bulk_Generics_52.cpp
    1> Bulk_Generics_7.cpp
    1> Il2CppCompilerCalculateTypeValues_18Table.cpp
    1> Il2CppCompilerCalculateTypeValues_6Table.cpp
    1> Il2CppCompilerCalculateTypeValues_48Table.cpp
    1> Il2CppCompilerCalculateTypeValues_17Table.cpp
    1> Il2CppCompilerCalculateTypeValues_54Table.cpp
    1> Il2CppCompilerCalculateTypeValues_56Table.cpp
    1> Il2CppCompilerCalculateTypeValues_47Table.cpp
    1> Il2CppCompilerCalculateTypeValues_22Table.cpp
    1> Il2CppCompilerCalculateTypeValues_24Table.cpp
    1> Il2CppCompilerCalculateTypeValues_27Table.cpp
    1> Il2CppCompilerCalculateTypeValues_50Table.cpp
    1> Il2CppCompilerCalculateTypeValues_25Table.cpp
    1> Il2CppCompilerCalculateTypeValues_9Table.cpp
    1> Il2CppCompilerCalculateTypeValues_49Table.cpp
    1> Il2CppCompilerCalculateTypeValues_40Table.cpp
    1> Il2CppCompilerCalculateTypeValues_37Table.cpp
    1> Bulk_Generics_55.cpp
    1> Il2CppCompilerCalculateTypeValues_19Table.cpp
    1> Il2CppCompilerCalculateTypeValues_8Table.cpp
    1> Il2CppCompilerCalculateTypeValues_2Table.cpp
    1> Il2CppCompilerCalculateTypeValues_28Table.cpp
    1> Il2CppCompilerCalculateTypeValues_23Table.cpp
    1> Il2CppCompilerCalculateTypeValues_3Table.cpp
    1> Il2CppCompilerCalculateTypeValues_14Table.cpp
    1> Il2CppCompilerCalculateTypeValues_13Table.cpp
    1> Il2CppCompilerCalculateTypeValues_7Table.cpp
    1> Il2CppCompilerCalculateTypeValues_46Table.cpp
    1> Il2CppCompilerCalculateTypeValues_20Table.cpp
    1> Il2CppCompilerCalculateTypeValues_57Table.cpp
    1> Il2CppCompilerCalculateTypeValues_21Table.cpp
    1> Il2CppCompilerCalculateTypeValues_39Table.cpp
    1> Il2CppCompilerCalculateTypeValues_5Table.cpp
    1> Il2CppCompilerCalculateTypeValues_43Table.cpp
    1> Il2CppCompilerCalculateTypeValues_16Table.cpp
    1> Bulk_Generics_49.cpp
    1> Il2CppCompilerCalculateTypeValues_0Table.cpp
    1> Il2CppCompilerCalculateTypeValues_31Table.cpp
    1> Bulk_Generics_26.cpp
    1> Bulk_Generics_51.cpp
    1> Bulk_System.Runtime.WindowsRuntime_0.cpp
    1> Il2CppCompilerCalculateTypeValues_38Table.cpp
    1> Bulk_mscorlib_14.cpp
    1> Il2CppCompilerCalculateTypeValues_41Table.cpp
    1> Il2CppCompilerCalculateTypeValues_32Table.cpp
    1> Il2CppCompilerCalculateTypeValues_4Table.cpp
    1> Il2CppCompilerCalculateTypeValues_42Table.cpp
    1> Bulk_Generics_27.cpp
    1> Il2CppCompilerCalculateTypeValues_35Table.cpp
    1> Bulk_Purchasing.Common_0.cpp
    1> Il2CppCompilerCalculateTypeValues_12Table.cpp
    1> Bulk_Generics_47.cpp
    1> Bulk_WindowsRuntimeMetadata_1.cpp
    1> Il2CppCompilerCalculateTypeValues_33Table.cpp
    1> Il2CppCompilerCalculateTypeValues_34Table.cpp
    1> Bulk_Generics_57.cpp
    1> Il2CppCompilerCalculateTypeValues_1Table.cpp
    1> Il2CppCompilerCalculateTypeValues_45Table.cpp
    1> Bulk_Generics_21.cpp
    1> Bulk_Apple_0.cpp
    1> Bulk_UnityEngine.Analytics_0.cpp
    1> Bulk_Tizen_0.cpp
    1> Bulk_Generics_48.cpp
    1> Bulk_System.Collections_0.cpp
    1> Bulk_System.Runtime.Serialization_0.cpp
    1> GenericMetadata.cpp
    1> Bulk_System.Diagnostics.Debug_0.cpp
    1> Bulk_System.Globalization_0.cpp
    1> Bulk_System.Linq_0.cpp
    1> Bulk_System.Resources.ResourceManager_0.cpp
    1> Bulk_System.Runtime.Extensions_0.cpp
    1> Bulk_System.Runtime.InteropServices.WindowsRuntime_0.cpp
    1> Bulk_System.Runtime_0.cpp
    1> Bulk_System.Threading.Tasks_0.cpp
    1> Bulk_System.Threading_0.cpp
    1> Bulk_System.Xml.ReaderWriter_0.cpp
    1> Bulk_System.Xml.XDocument_0.cpp
    1> Il2CppCodeRegistration.cpp
    1> Il2CppReversePInvokeWrapperTable.cpp
    1> Bulk_Generics_10.cpp
    1> Bulk_Generics_11.cpp
    1> Bulk_Generics_12.cpp
    1> Bulk_Generics_13.cpp
    1> Bulk_Generics_14.cpp
    1> Bulk_Generics_15.cpp
    1> Bulk_Generics_16.cpp
    1> Bulk_Generics_17.cpp
    1> Bulk_Generics_18.cpp
    1> Bulk_Generics_19.cpp
    1> Bulk_Generics_20.cpp
    1> Bulk_Generics_8.cpp
    1> Bulk_Generics_9.cpp
    1> Il2CppMetadataRegistration.cpp
    1> ObjectFiles: 664 of which compiled: 257
    1> Time Compile: 23826 milliseconds Bulk_mscorlib_3.cpp
    1> Time Compile: 20516 milliseconds Bulk_System_6.cpp
    1> Time Compile: 18870 milliseconds Bulk_System.Xml_3.cpp
    1> Time Compile: 13018 milliseconds GenericMethods2.cpp
    1> Time Compile: 11614 milliseconds Bulk_Assembly-CSharp_2.cpp
    1> Time Compile: 11513 milliseconds Il2CppTypeDefinitions.cpp
    1> Time Compile: 11050 milliseconds Bulk_System.Xml_2.cpp
    1> Time Compile: 10983 milliseconds Bulk_System.Xml_1.cpp
    1> Time Compile: 10459 milliseconds Il2CppComCallableWrappers26.cpp
    1> Time Compile: 10455 milliseconds Bulk_mscorlib_5.cpp
    1> Total compilation time: 248198 milliseconds.
    1> il2cpp.exe didn't catch exception: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\link.exe /out:"D:\IUBin\UWP\build\obj\il2cppOutputProject\Win32\Master\linkresult_DEC822384467BAD34AEF60B8AD18220A\GameAssembly.dll" /DEBUG /INCREMENTAL:NO /MAP /LARGEADDRESSAWARE /NXCOMPAT /DYNAMICBASE /NOLOGO /TLBID:1 /LTCG /OPT:REF /OPT:ICF /DLL /NODEFAULTLIB:uuid.lib "ws2_32.lib" "Shcore.lib" "WindowsApp.lib" /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\store" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10586.0\um\x86" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10586.0\ucrt\x86" /LIBPATH:"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x86" /APPCONTAINER /SUBSYSTEM:WINDOWS /NODEFAULTLIB:eek:le32.lib /NODEFAULTLIB:kernel32.lib @"C:\Users\Вячеслав\AppData\Local\Temp\tmp54BE.tmp"
    1>
    1> Creating library D:\IUBin\UWP\build\obj\il2cppOutputProject\Win32\Master\linkresult_DEC822384467BAD34AEF60B8AD18220A\GameAssembly.lib and object D:\IUBin\UWP\build\obj\il2cppOutputProject\Win32\Master\linkresult_DEC822384467BAD34AEF60B8AD18220A\GameAssembly.exp
    1>FB6B83DACD4B8F498125E965DF1E0C13.obj : error LNK2001: unresolved external symbol "struct Il2CppType const IDictionary_2_t3331096585_0_0_0" (?IDictionary_2_t3331096585_0_0_0@@3UIl2CppType@@B)
    1>D:\IUBin\UWP\build\obj\il2cppOutputProject\Win32\Master\linkresult_DEC822384467BAD34AEF60B8AD18220A\GameAssembly.dll : fatal error LNK1120: 1 unresolved externals
    1>
    1>
    1> в Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable`1 objectFiles, CppToolChainContext toolChainContext)
    1> в Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    1> в Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner(CppProgramBuilder builder, IBuildStatistics& statistics)
    1> в il2cpp.Program.DoRun(String[] args)
    1> в il2cpp.Program.Run(String[] args)
    1> в il2cpp.Program.Main(String[] args)
    1>
    1> Необработанное исключение: Unity.IL2CPP.Building.BuilderFailedException: C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\link.exe /out:"D:\IUBin\UWP\build\obj\il2cppOutputProject\Win32\Master\linkresult_DEC822384467BAD34AEF60B8AD18220A\GameAssembly.dll" /DEBUG /INCREMENTAL:NO /MAP /LARGEADDRESSAWARE /NXCOMPAT /DYNAMICBASE /NOLOGO /TLBID:1 /LTCG /OPT:REF /OPT:ICF /DLL /NODEFAULTLIB:uuid.lib "ws2_32.lib" "Shcore.lib" "WindowsApp.lib" /LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\store" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10586.0\um\x86" /LIBPATH:"C:\Program Files (x86)\Windows Kits\10\Lib\10.0.10586.0\ucrt\x86" /LIBPATH:"C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x86" /APPCONTAINER /SUBSYSTEM:WINDOWS /NODEFAULTLIB:eek:le32.lib /NODEFAULTLIB:kernel32.lib @"C:\Users\Вячеслав\AppData\Local\Temp\tmp54BE.tmp"
    1>
    1> Creating library D:\IUBin\UWP\build\obj\il2cppOutputProject\Win32\Master\linkresult_DEC822384467BAD34AEF60B8AD18220A\GameAssembly.lib and object D:\IUBin\UWP\build\obj\il2cppOutputProject\Win32\Master\linkresult_DEC822384467BAD34AEF60B8AD18220A\GameAssembly.exp
    1>FB6B83DACD4B8F498125E965DF1E0C13.obj : error LNK2001: unresolved external symbol "struct Il2CppType const IDictionary_2_t3331096585_0_0_0" (?IDictionary_2_t3331096585_0_0_0@@3UIl2CppType@@B)
    1>D:\IUBin\UWP\build\obj\il2cppOutputProject\Win32\Master\linkresult_DEC822384467BAD34AEF60B8AD18220A\GameAssembly.dll : fatal error LNK1120: 1 unresolved externals
    1>
    1>
    1> в Unity.IL2CPP.Building.CppProgramBuilder.PostprocessObjectFiles(IEnumerable`1 objectFiles, CppToolChainContext toolChainContext)
    1> в Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
    1> в Unity.IL2CPP.Building.Statistics.BuildingTestRunnerHelper.BuildAndLogStatsForTestRunner(CppProgramBuilder builder, IBuildStatistics& statistics)
    1> в il2cpp.Program.DoRun(String[] args)
    1> в il2cpp.Program.Run(String[] args)
    1> в il2cpp.Program.Main(String[] args)
    1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.MakeFile.Targets(37,5): error MSB3073: The command ""D:\IUBin\UWP\Il2CppOutputProject\\IL2CPP\build\il2cpp.exe" --libil2cpp-static --compile-cpp -architecture=x86 -configuration=ReleasePlus -platform=winrt -outputpath="D:\IUBin\UWP\\build\bin\Win32\Master\GameAssembly.dll" --data-folder="D:\IUBin\UWP\\build\bin\Win32\Master\\" -cachedirectory="D:\IUBin\UWP\\build\obj\il2cppOutputProject\Win32\Master\\" -generatedcppdir="D:\IUBin\UWP\Il2CppOutputProject\\Source" --additional-defines=WINDOWS_UWP --additional-defines=UNITY_UWP --additional-defines=UNITY_WSA_10_0 --additional-defines=UNITY_WSA --additional-defines=UNITY_WINRT --additional-defines=PLATFORM_WINRT -dotnetprofile=Net45 -verbose --map-file-parser="D:\IUBin\UWP\Il2CppOutputProject\\IL2CPP\MapFileParser\MapFileParser.exe"" exited with code -532462766.
    2>------ Build started: Project: IUMobileUnity, Configuration: Master Win32 ------
    2> App.cpp
    2> UnityGenerated.cpp
    2>App.cpp(26): warning C4973: 'Windows::UI::ViewManagement::IApplicationView2::SuppressSystemOverlays::set': marked as deprecated
    2> App.cpp(26): note: Message: 'Use the TryEnterFullScreen method and IsFullScreenMode property instead of SuppressSystemOverlays. For more info, see MSDN.'
    2>LINK : fatal error LNK1181: cannot open input file 'D:\IUBin\UWP\build\bin\Win32\Master\GameAssembly.lib'
    ========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
    ========== Package: 0 succeeded, 3 failed ===========
     
  6. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Looks like you're hitting a bug in IL2CPP :(.

    Could you try a newer beta, and if that has the same error, could you file a bug report with a repro? We'd look into it asap, as this kind of error may block more people easily.
     
  7. GLeBaTi

    GLeBaTi

    Joined:
    Jan 12, 2013
    Posts:
    54
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,680
    Thanks we'll take a look.