[ISSUE] Can't export for IOS platform

Discussion and help for Easy Save 3
Post Reply
tunied
Posts: 11
Joined: Wed Sep 06, 2017 7:27 am

[ISSUE] Can't export for IOS platform

Post by tunied »

Hi

when i try to export IOS build found error:

Code: Select all

Failed running /Applications/Unity/Unity.app/Contents/il2cpp/build/UnityLinker.exe --api=NET_2_0_Subset -out="/Users/eran/WorkGround/Unity/Dummy1/Temp/StagingArea/Data/Managed/tempStrip" -l=none -c=link --link-symbols -x="/Applications/Unity/PlaybackEngines/iOSSupport/Whitelists/Core.xml" -f="/Applications/Unity/Unity.app/Contents/il2cpp/LinkerDescriptors" -x "/Users/eran/WorkGround/Unity/Dummy1/Temp/StagingArea/Data/Managed/../platform_native_link.xml" -x "/Users/eran/WorkGround/Unity/Dummy1/Temp/StagingArea/Data/methods_pointedto_by_uievents.xml" -x "/Users/eran/WorkGround/Unity/Dummy1/Temp/StagingArea/Data/preserved_derived_types.xml" -x "/Users/eran/WorkGround/Unity/Dummy1/Assets/link.xml" -x "/Users/eran/WorkGround/Unity/Dummy1/Assets/Plugins/Easy Save 3/link.xml" -d "/Users/eran/WorkGround/Unity/Dummy1/Temp/StagingArea/Data/Managed" -a  "/Users/eran/WorkGround/Unity/Dummy1/Temp/StagingArea/Data/Managed/Assembly-CSharp-firstpass.dll" -a  "/Users/eran/WorkGround/Unity/Dummy1/Temp/StagingArea/Data/Managed/Assembly-CSharp.dll" -a  "/Users/eran/WorkGround/Unity/Dummy1/Temp/StagingArea/Data/Managed/UnityEngine.UI.dll" -a  "/Users/eran/WorkGround/Unity/Dummy1/Temp/StagingArea/Data/Managed/ES2.dll"

stdout:
Fatal error in Unity CIL Linker
System.ArgumentException: Unable to find the file for the assembly named 'ES3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'. Should this assembly be in the project? Use the 'ignoreIfMissing="1"' attribute if this assembly may not always exist. ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'ES3, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null'
  at Mono.Linker.LinkContext.Resolve (Mono.Cecil.IMetadataScope scope) [0x00047] in <114d8887b0b545308ed79d49a500b4cd>:0 
  at UnityLinker.Steps.UnityResolveFromXmlStep.GetAssembly (Mono.Linker.LinkContext context, Mono.Cecil.AssemblyNameReference assemblyName) [0x00001] in <8faa3831367147a5b4f1efc161d11bdf>:0 
  at UnityLinker.Steps.UnityResolveFromXmlStep.ProcessAssemblies (Mono.Linker.LinkContext context, System.Xml.XPath.XPathNodeIterator iterator) [0x00014] in <8faa3831367147a5b4f1efc161d11bdf>:0 
   --- End of inner exception stack trace ---
  at UnityLinker.Steps.UnityResolveFromXmlStep.ProcessAssemblies (Mono.Linker.LinkContext context, System.Xml.XPath.XPathNodeIterator iterator) [0x00104] in <8faa3831367147a5b4f1efc161d11bdf>:0 
  at UnityLinker.Steps.UnityResolveFromXmlStep.Process () [0x0002b] in <8faa3831367147a5b4f1efc161d11bdf>:0 
  at Mono.Linker.Steps.BaseStep.Process (Mono.Linker.LinkContext context) [0x00018] in <114d8887b0b545308ed79d49a500b4cd>:0 
  at Mono.Linker.Pipeline.Process (Mono.Linker.LinkContext context) [0x00025] in <114d8887b0b545308ed79d49a500b4cd>:0 
  at UnityLinker.UnityDriver.Run () [0x00087] in <8faa3831367147a5b4f1efc161d11bdf>:0 
  at UnityLinker.UnityDriver.RunDriverWithoutErrorHandling () [0x00001] in <8faa3831367147a5b4f1efc161d11bdf>:0 
  at UnityLinker.UnityDriver.RunDriver () [0x00002] in <8faa3831367147a5b4f1efc161d11bdf>:0 
stderr:

UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
UnityEditorInternal.AssemblyStripper:RunAssemblyLinker(IEnumerable`1, String&, String&, String, String) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:89)
UnityEditorInternal.AssemblyStripper:StripAssembliesTo(String[], String[], String, String, String&, String&, String, IIl2CppPlatformProvider, IEnumerable`1) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:82)
UnityEditorInternal.AssemblyStripper:RunAssemblyStripper(String, IEnumerable, String, String[], String[], String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:200)
UnityEditorInternal.AssemblyStripper:StripAssemblies(String, IIl2CppPlatformProvider, RuntimeClassRegistry) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/AssemblyStripper.cs:114)
UnityEditorInternal.IL2CPPBuilder:Run() (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:143)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry, Boolean) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:34)
UnityEditor.HostView:OnGUI()

the reproduce step:

- download the last version EasySave2 from Asset Store . and import to an empty project.
- use menu Assets/Install or Update Easy Save 3 Beta to download EasySave3
- put a button on scene, and wrote some code to reference EasySave3.( like use ES3 to save an int or float)
- Build for IOS target.

then i got this error.

is there some step i did wrong?

Thanks

Eran.
User avatar
Joel
Moodkie Staff
Posts: 4848
Joined: Wed Nov 07, 2012 10:32 pm

Re: [ISSUE] Can't export for IOS platform

Post by Joel »

Hi there,

For some reason the version available on the Asset Store has reverted back to the old version of the link.xml file.

Replacing the link.xml file in Assets/Plugins/Easy Save 3/ with the one attached below should fix your error.

All the best,
Joel
Attachments
link.xml
(199 Bytes) Downloaded 487 times
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
tunied
Posts: 11
Joined: Wed Sep 06, 2017 7:27 am

Re: [ISSUE] Can't export for IOS platform

Post by tunied »

:lol: :lol: :lol:

cool. thanks for the fast reply :D :D :D :D
Post Reply