Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Build app unity for windows phone 8 or windows store app fail

Discussion in 'Windows' started by loidd, Jul 8, 2014.

  1. loidd

    loidd

    Joined:
    Jul 8, 2014
    Posts:
    3
    Please help me!, I just build app for windows phone 8 by unity 4.5.1 and error occurs;

    Error building Player: Exception: Failed to run reference rewriter with command "--target="Temp/StagingArea\Assembly-CSharp.dll" --framework="C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\WindowsPhone\v8.0,C:\Program Files (x86)\Microsoft SDKs\Windows Phone\v8.0\Libraries" --platform="C:\Program Files (x86)\Windows Phone Kits\8.0\Windows MetaData\Windows.winmd" --support="Temp/StagingArea/WinRTLegacy.dll" --winmdrefs="" --system=System --dbg=pdb --alt=System.Net;System.Net.Sockets,System.Net;System.Xml.Serialization;System.ComponentModel,System.Windows;System.Threading,mscorlib". [Temp/StagingArea\Assembly-CSharp.dll] Catastrophic failure while running rrw: System.MissingMethodException: Method not found: 'Void Mono.Cecil.TypeReference.set_Scope(Mono.Cecil.IMetadataScope)'. at Unity.ReferenceRewriter.RewriteTypeReferences.TryToResolveInSupport(TypeReference type) at Unity.ReferenceRewriter.RewriteTypeReferences.Visit(TypeReference type, String referencingEntityName) at Unity.ReferenceRewriter.ReferenceDispatcher.Dispatch(TypeDefinition type) at Unity.ReferenceRewriter.ReferenceDispatcher.Dispatch() at Unity.ReferenceRewriter.RewriteOperation.Execute(RewriteContext context) at Unity.ReferenceRewriter.Program.Main(String[] args)
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Hi, this sounds like a bug. Did you by any chance mess with any files in Unity directory? I'll try to repro the same issue locally.
     
    loidd likes this.
  3. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Hi again,

    I am unable to reproduce it - that code path works just fine on my machine. Which exact unity version are you on? 4.5.1f3? What's the exact size of "Unity\Editor\Data\PlaybackEngines\wp8support\Tools\rrw\Mono.Cecil.dll" in bytes?
     
  4. loidd

    loidd

    Joined:
    Jul 8, 2014
    Posts:
    3
    Hi Tautvydas Zilys,
    I use unity 4.5.1f3 (x86) and try issue on unity 4.3.4 still so.
    exact size of "Unity\Editor\Data\PlaybackEngines\wp8support\Tools\rrw\Mono.Cecil.dll" version 4.5.1f3 is 277,504 bytes
     
  5. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Could you report a bug with a repro attached? We'd look into it asap.
     
  6. loidd

    loidd

    Joined:
    Jul 8, 2014
    Posts:
    3
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Thanks. For the future: you can report a bug in UnityEditor, by pressing help -> report a bug.

    Unfortunately, the project builds for me successfully - I've tried 4.3.4, 4.5 and 4.5.1. Did you try reinstalling Unity cleanly? Did you check whether it happens on any other PC? Could you search the files of your PC to check whether there are no Mono.Cecil.dll files in your system folder?
     
    loidd likes this.