Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation problem #3

Open
kimsama opened this issue Feb 27, 2013 · 5 comments
Open

Installation problem #3

kimsama opened this issue Feb 27, 2013 · 5 comments

Comments

@kimsama
Copy link

kimsama commented Feb 27, 2013

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
Copy link
Owner

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
Copy link
Owner

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

@kimsama
Copy link
Author

kimsama commented Feb 27, 2013

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 [email protected]

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


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

@dcariola
Copy link
Owner

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
Copy link
Author

kimsama commented Feb 27, 2013

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 [email protected]

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//issues/3#issuecomment-14162346
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants