Search Issue Tracker
Fixed in 4.5.5
Votes
0
Found in
4.5.4f1
Issue ID
636062
Regression
No
Using a generic method that is unavailable in the .NET for Windows Phone 8 causes the build to fail
To reproduce:
1. Open repro.unitypackage
2. It contains a scene and a script that calls System.Array.ConvertAll
3. Build the scene for wp8
4. Build fails with: 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,C:\Program Files (x86)\Unity4.5.4p2\Editor\Data\PlaybackEngines\WP8Support\Players\ARM\master" --platform="C:\Program Files (x86)\Windows Phone Kits\8.0\Windows MetaData\Windows.winmd" --support="Temp\StagingArea\WinRTLegacy.dll" --supportpartialns=Unity.Partial --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]
Error: method `!!1[] System.Array::ConvertAll<UnityEngine.Vector3,UnityEngine.Vector2>(!!0[],System.Converter`2<!!0,!!1>)` doesn't exist in target framework. It is referenced from Assembly-CSharp.dll at System.Void NewBehaviourScript::Start().
Catastrophic failure while running rrw: System.NullReferenceException: Object reference not set to an instance of an object.
at Unity.ReferenceRewriter.RewriteMethodSpecMemberRefs.Visit(MethodDefinition method)
at Unity.ReferenceRewriter.MethodDefinitionDispatcher.Dispatch(TypeDefinition type)
at Unity.ReferenceRewriter.MethodDefinitionDispatcher.Dispatch()
at Unity.ReferenceRewriter.RewriteOperation.Execute(RewriteContext context)
at Unity.ReferenceRewriter.Program.Main(String[] args)
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
- The layout system is failing to correctly calculate or apply the height of the Japanese fallback font when the primary English font's metrics are used
Add comment