onevcat / XUPorter

Add files and frameworks to your Xcode project after it is generated by Unity 3D.
http://onevcat.com/2012/12/xuporter/
MIT License
596 stars 241 forks source link

Can I add files to project root? #55

Open foundway opened 9 years ago

foundway commented 9 years ago

I want to add files to project root but if I try: { "group" : "", ... }

It gives me key not found error. Am I doing something wrong here?

foundway commented 9 years ago

Actually I realized that I got this error from the example mods too:

KeyNotFoundException: The given key was not present in the dictionary. System.Collections.Generic.Dictionary2[TKey,TValue].get_Item (.TKey key) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150) UnityEditor.XCodeEditor.PBXResolver.ResolveName (System.String guid) (at Assets/Editor/XUPorter/PBX Editor/PBXParser.cs:49) UnityEditor.XCodeEditor.PBXResolver.ResolveName (System.String guid) (at Assets/Editor/XUPorter/PBX Editor/PBXParser.cs:53) UnityEditor.XCodeEditor.PBXParser.GUIDComment (System.String guid, System.Text.StringBuilder builder) (at Assets/Editor/XUPorter/PBX Editor/PBXParser.cs:218) UnityEditor.XCodeEditor.PBXParser.SerializeString (System.String aString, System.Text.StringBuilder builder, Boolean useQuotes, Boolean readable) (at Assets/Editor/XUPorter/PBX Editor/PBXParser.cs:546) UnityEditor.XCodeEditor.PBXParser.SerializeDictionary (System.Collections.Generic.Dictionary2 dictionary, System.Text.StringBuilder builder, Boolean readable, Int32 indent) (at Assets/Editor/XUPorter/PBX Editor/PBXParser.cs:481) UnityEditor.XCodeEditor.PBXParser.SerializeValue (System.Object value, System.Text.StringBuilder builder, Boolean readable, Int32 indent) (at Assets/Editor/XUPorter/PBX Editor/PBXParser.cs:439) UnityEditor.XCodeEditor.PBXParser.SerializeDictionary (System.Collections.Generic.Dictionary`2 dictionary, System.Text.StringBuilder builder, Boolean readable, Int32 indent) (at Assets/Editor/XUPorter/PBX Editor/PBXParser.cs:489) UnityEditor.XCodeEditor.PBXParser.SerializeValue (System.Object value, System.Text.StringBuilder builder, Boolean readable, Int32 indent) (at Assets/Editor/XUPorter/PBX Editor/PBXParser.cs:439) UnityEditor.XCodeEditor.PBXParser.Encode (UnityEditor.XCodeEditor.PBXDictionary pbxData, Boolean readable) (at Assets/Editor/XUPorter/PBX Editor/PBXParser.cs:177) UnityEditor.XCodeEditor.XCProject.CreateNewProject (UnityEditor.XCodeEditor.PBXDictionary result, System.String path) (at Assets/Editor/XUPorter/XCProject.cs:608) UnityEditor.XCodeEditor.XCProject.Save () (at Assets/Editor/XUPorter/XCProject.cs:633) XCodePostProcess.OnPostProcessBuild (BuildTarget target, System.String path) (at Assets/Editor/XUPorter/XCodePostProcess.cs:30) UnityEditor.HostView:OnGUI()