- Home /
Question by
eventropy · Mar 04, 2016 at 05:50 PM ·
ioswindows 10
Unable to make iOS build on Windows 10 machine
I'm finding that building any iOS apps while using a Windows 10 machine produces these errors:
AssemblyResolutionException: Failed to resolve assembly: 'System.Data.SqlXml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
With stack trace:
Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name, Mono.Cecil.ReaderParameters parameters)
Mono.Cecil.BaseAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name)
Mono.Cecil.DefaultAssemblyResolver.Resolve (Mono.Cecil.AssemblyNameReference name)
UnityEditor.MonoAssemblyStripping+<CollectAssembliesRecursive>c__AnonStorey6C.<>m__EA (Mono.Cecil.AssemblyNameReference a) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/MonoAssemblyStripping.cs:274)
System.Linq.Enumerable+<CreateSelectIterator>c__Iterator10`2[Mono.Cecil.AssemblyNameReference,Mono.Cecil.AssemblyDefinition].MoveNext ()
System.Linq.Enumerable+<CreateSelectManyIterator>c__Iterator12`2[Mono.Cecil.AssemblyDefinition,Mono.Cecil.AssemblyDefinition].MoveNext ()
System.Collections.Generic.HashSet`1[Mono.Cecil.AssemblyDefinition].UnionWith (IEnumerable`1 other)
UnityEditor.MonoAssemblyStripping.CollectAssembliesRecursive (IEnumerable`1 assemblies) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/MonoAssemblyStripping.cs:273)
UnityEditor.MonoAssemblyStripping.GenerateLinkXmlToPreserveDerivedTypes (System.String stagingArea, System.String librariesFolder, UnityEditor.RuntimeClassRegistry usedClasses) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/MonoAssemblyStripping.cs:241)
UnityEditorInternal.AssemblyStripper.RunAssemblyStripper (System.String stagingAreaData, IEnumerable assemblies, System.String managedAssemblyFolderPath, System.String[] assembliesToStrip, System.String[] searchDirs, System.String monoLinkerPath, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:182)
UnityEditorInternal.AssemblyStripper.StripAssemblies (System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, UnityEditor.RuntimeClassRegistry rcr, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:131)
UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:201)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, IIl2CppPlatformProvider platformProvider, System.Action`1 modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry, Boolean developmentBuild) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:128)
UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String stagingAreaDataManaged, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:429)
UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:27)
UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
UnityEditor.HostView:OnGUI()
While the same apps, when built with Windows 7, succeed. Which makes me think it's an issue with Windows 10. Anyone have any ideas or do I have to downgrade to Windows 7?
[Edit]
I actually found that building an empty iOS project worked on Windows 10. So I narrowed it down to the following:
public static class RegexTest
{
static System.Text.RegularExpressions.Regex _regex;
}
If you include this in an iOS project and attempt to build on Windows 10, you get the errors. If you comment out the line that declares a regex, it builds fine.
[Edit2]
I'm also getting the same error when trying to make webgl builds on windows 10. So likely related to IL2CPP
Comment