PUN 1.75 don't export to Windows Phone 8.1

Options
Hello.
PUN+ 1.75 don't export to Windows Phone 8.1 or universal 8.1.
Previous PUN+ 1.74 was working fine.
I did followed the instructions on the Unity Export to Windows 8.1 and Windows 10 Universal thread.
I have Unity 5.4.0f3 x64

Is there a way to fix it?

It gives the following error:

UnityException: Failed to run serialization weaver with command "Temp\StagingArea\Data\Managed\Photon3Unity3D.dll" -pdb -verbose -unity-engine="Temp\StagingArea\Data\Managed\UnityEngine.dll" "Temp\StagingArea\TempSerializationWeaver" -additionalAssemblyPath="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhoneApp\v8.1" -additionalAssemblyPath="Temp\StagingArea\Data\Managed". Symbols will be read from Temp\StagingArea\Data\Managed\UnityEngine.pdb Symbols will be read from Temp\StagingArea\Data\Managed\Photon3Unity3D.pdb Weaving assembly D:\WorkD\UnityProjects\PATWO\PATWO\Temp\StagingArea\Data\Managed\Photon3Unity3D.dll System.InvalidOperationException: Operaci n no v lida dado el estado actual del objeto. en Mono.Cecil.ModuleDefinition.ProcessDebugHeader() en Mono.Cecil.ModuleReader.ReadSymbols(ModuleDefinition module, ReaderParameters parameters) en Mono.Cecil.ModuleReader.CreateModuleFrom(Image image, ReaderParameters parameters) en Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters) en usw.Weaver.WeaveAssembly(String assemblyPath, AssemblyDefinition unityEngineAssemblyDefinition, ReaderParameters readerParameters) en usw.Weaver.Weave() en usw.Program.RunProgram(ConversionOptions options) en usw.Program.Main(String[] args) PostProcessWinRT.RunSerializationWeaver () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:438) PostProcessWinRT.Process () (at C:/buildslave/unity/build/PlatformDependent/WinRT/SharedSources/CSharp/PostProcessWinRT.cs:123) UnityEditor.Metro.BuildPostprocessor.PostProcess (BuildPostProcessArgs args) (at C:/buildslave/unity/build/PlatformDependent/MetroPlayer/Extensions/Managed/ExtensionModule.cs:130) 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, UnityEditor.BuildReporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:176) UnityEditor.HostView:OnGUI()


Thanks.

Comments

  • Hello.

    Any news on that?

    UWP Windows phone only have API Compatibility Level WSA Subset.
    Right now Unity don't compile to windows phone with PUN 1.75.

    Is there a way to fix it?
  • Tobias
    Options
    This is interesting. We tested several builds and unless Unity was unable to export, things worked.

    You might want to get rid of any .pdb and .mdb files in the subfolders of Plugins and export to a new, empty folder. There might be old/outdated files when you updated PUN.

    SDK Universal 8.1 and Universal 10 should work with some export-settings modifications. The Plugins Metro folder is only for 8.1 and the UWP folder is for Windows 10 Universal.
  • Tobias
    Options
    Also, get the patch release for Unity 5.4. Afaik, there are a lot of fixes in those patches.
    http://unity3d.com/unity/qa/patch-releases
  • It works!
    I Updated unity to 5.4.0p4, deleted PUN, then installed it again and now it seems to be working OK.

    Thanks.
  • Tobias
    Options
    Thanks for the input. Good to know this finally works. Sorry for the hassle.