Search Issue Tracker

Fixed in 5.6.0

Votes

7

Found in

5.3.3p2

Issue ID

778581

Regression

Yes

Referencing UnityEditor.iOS.Extensions.Xcode throws exception after reimporting assets

--

-

To reproduce
1. Open attached project
2. In the main menu click Assets -> Reimport all

Actual behavior: error in the Console:
"FileNotFoundException: Could not load file or assembly 'UnityEditor.iOS.Extensions.Xcode, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies.
System.Reflection.MonoMethodInfo.GetMethodInfo (IntPtr handle) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:59)
System.Reflection.MonoMethod.GetPseudoCustomAttributes () (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:293)
System.MonoCustomAttrs.GetPseudoCustomAttributes (ICustomAttributeProvider obj, System.Type attributeType) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MonoCustomAttrs.cs:78)
System.MonoCustomAttrs.IsDefined (ICustomAttributeProvider obj, System.Type attributeType, Boolean inherit) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/MonoCustomAttrs.cs:301)
System.Reflection.MonoMethod.IsDefined (System.Type attributeType, Boolean inherit) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:274)
System.Attribute.IsDefined (System.Reflection.MemberInfo element, System.Type attributeType, Boolean inherit) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Attribute.cs:326)
System.Attribute.IsDefined (System.Reflection.MemberInfo element, System.Type attributeType) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/Attribute.cs:299)
UnityEditor.EditorAssemblies.ProcessStaticMethodAttributes (System.Type type) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:97)
UnityEditor.EditorAssemblies.ProcessInitializeOnLoadAttributes () (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:141)
UnityEditor.EditorAssemblies.SetLoadedEditorAssemblies (System.Reflection.Assembly[] assemblies) (at /Users/builduser/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:63)"

Note: you will not receive this exception if you remove the `SetUrlSchemes` method referencing PlistElementDict in its arguments from 'PostProcessXcodeProject.cs' script

Comments (2)

  1. SweatyChair

    May 30, 2017 03:04

    Great, going to upgrade to 5.6.0 because of this.

  2. jp_topps

    Nov 03, 2016 16:30

    What version(s) is this fixed for? I have scoured release notes for a hint of a fix, and don't see one. I believe that my problem stems from accessing the xcode api in more than 1 method, as per this thread:

    http://answers.unity3d.com/questions/1016975/filenotfoundexception-when-using-xcode-api.html

    However, I have noticed that we have several packages which utilize the xcode api for postbuild steps and the like, so "moving everything to one method" doesn't seem especially viable.

    Thanks!

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.