dcariola / XCodeEditor-for-Unity

XCode 4 project editor for Unity3D postprocess.
MIT License
217 stars 101 forks source link

Installation problem #3

Open kimsama opened 11 years ago

kimsama commented 11 years ago

Just copied all stuff to Editor folder then got the following error:

Assets/Editor/XCodeEditor-for-Unity/XCMod.cs(4,14): error CS0246: The type or namespace name `MiniJSON' could not be found. Are you missing a using directive or an assembly reference?

What's wrong? Did I miss something?

The version of Unity is 4.0.1 on OS X.

dcariola commented 11 years ago

In that file I used the MiniJSON library to decode a .prjmods file contenents. It's used to automate the process patching the newly created xcode project. If you don't have the MiniJSON class in your project, you can simply change it to every json decoder you like. Simply change XCMod.cs on line 89.

Maybe I'll change this, as you're not the first that points this out. Does it make sense?

dcariola commented 11 years ago

This is the link to MiniJSON ( http://gist.github.com/darktable/1411710 )

kimsama commented 11 years ago

Yes, I already tried that MiniJSON at the link.

But MiniJSON at the link http://gist.github.com/darktable/1411710 does not have jsonDecode() function.

-Kim

2013/2/27 Daniele Cariola notifications@github.com

This is the link to MiniJSON ( http://gist.github.com/darktable/1411710 )

— Reply to this email directly or view it on GitHubhttps://github.com/dcariola/XCodeEditor-for-Unity/issues/3#issuecomment-14160041 .

dcariola commented 11 years ago

Just noticed i'm using a different (older, I presume) version. Can't check for any sintax error right now, but I will definitely fix it in the main branch soon. Meanwhile, to make it work with the version at the previous link, try to edit line 4 to:

using MiniJSON;

and line 89:

_datastore = Json.Deserialize( contents ) as Hashtable;
kimsama commented 11 years ago

Thank you for the reply.

There is another error:

line 19 in XCodeEditorMenu.cs

The XCProject.ApplyMod method is not a static one but it is called it is like a static.

By the way that's just a test purpose code, I quickly fixed that.

Thank you again.

-Kim

2013/2/27 Daniele Cariola notifications@github.com

Just noticed i'm using a different (older, I presume) version. Can't check for any sintax error right now, but I will definitely fix it in the main branch soon. Meanwhile, to make it work with the version at the previous link, try to edit line 4 to:

using MiniJSON;

and line 89:

_datastore = Json.Deserialize( contents ) as Hashtable;

— Reply to this email directly or view it on GitHubhttps://github.com/dcariola/XCodeEditor-for-Unity/issues/3#issuecomment-14162346 .