-
Notifications
You must be signed in to change notification settings - Fork 99
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
An element with the same key already exists in the Dictionary<TKey, TValue> #1
Comments
It looks like there's a duplicate element somewhere. Give me some more info to reproduce. |
Cannot reproduce it right now cause I'm getting violation exceptions all the time. Reproduce steps: Do a fresh build (no CMD+B, no Build & Run, create the Xcode project in a new folder). It says:
Then, I do an append, to try again, over the same folder. It doesn't work of couse cause the project is broken. The post build script I'm using is:
|
Any progress on this? |
For anyone who finds this after all this time. this case by default simply adds to the dictionary regardless of the key's use. In our use we have simply modified this to do a standard "If exists then set value , else add value" pattern. However for your own uses you may want to flag this up to the user with the values or whatever to have a more hands on resolution of the conflict. |
I am facing exactly the same issue here. This helped a bit http://stackoverflow.com/questions/23836364/ioexception-sharing-violation-on-path-on-building-a-unity-project-on-mac-os-x It would be nice that XcodeEditor-for-Unity checks the existance of an object associated to a key. If the object is the same, then just skip. Otherwise print a debug log warning of throw an exception |
After a standard build using XCodeEditor, it keeps throwing me messages like this:
An element with the same key already exists in the Dictionary<TKey, TValue>
This happens on the parser. It seems it's reading the same key twice or more.
The text was updated successfully, but these errors were encountered: