Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by UniqueXDream94 · Aug 11, 2015 at 08:16 PM · xcodeexceptionkeynotfound

[SOLVED] Key Not Found Exception - XCODE

Hello,

I am having a rather frustrating problem, and I can't seem to find an answer to this anywhere, as it may be a case specific to me.

The problem is that whenever I try to append a project, it will throw the following exception at the post processing stage.

 KeyNotFoundException: The given key was not present in the dictionary.
 System.Collections.Generic.Dictionary`2[System.String,UnityEditor.iOS.Xcode.PBX.PBXGroup].get_Item (System.String key) 
 (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150)
 
 UnityEditor.iOS.Xcode.PBXProject.GroupsGetByChild (System.String childGuid)
 UnityEditor.iOS.Xcode.PBXProject.RemoveGroupIfEmpty (UnityEditor.iOS.Xcode.PBX.PBXGroup gr)
 UnityEditor.iOS.Xcode.PBXProject.RemoveFilesByProjectPathRecursive (System.String projectPath)
 UnityEditor.iOS.PostProcessiPhonePlayer.BuildXCodeProject (UnityEditor.iOS.ProjectPaths paths, UnityEditor.iOS.IncludedFileList includedFiles, System.Collections.Generic.List`1 frameworks, System.String sdkVersion, System.String targetOS, System.String productName, Boolean useIl2Cpp, Boolean installInBuildFolder, Boolean useSymlinks, Boolean isGameCenterUsed)
 
 UnityEditor.iOS.PostProcessiPhonePlayer.PostProcess (UnityEditor.iOS.iOSBuildPostprocessor pp, BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String stagingAreaDataManaged, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry)
 
 UnityEditor.iOS.iOSBuildPostprocessor.PostProcess (BuildPostProcessArgs args)
 
 UnityEditor.PostprocessBuildPlayer.Postprocess (BuildTarget target, System.String installPath, System.String companyName, System.String productName, Int32 width, Int32 height, System.String downloadWebplayerUrl, System.String manualDownloadWebplayerUrl, BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry) 
 
 (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:316)
 UnityEditor.HostView:OnGUI()


I can replace the project file and it seems to work fine if i do, but this can only be a temporary solution. I am absolutely sure that the problem does not lie in any of my scripts, as I tried appending a much older backup that had no problems before. Just from a quick glance, it seems xcode may be the problem? It doesn't seem many others had the same problem as I haven't found any solutions online.

Can anyone tell me what seems to be the problem here?

If there is any additional information required to solve the problem, please let me know.

Thank you so much! - UNIQ

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ThePunisher · Aug 11, 2015 at 10:56 PM 0
Share

This is when you try to make a mac build? What about making a Windows Standalone build? It might be something you are using that doesn't translate into XCode.

avatar image UniqueXDream94 · Aug 11, 2015 at 11:40 PM 0
Share

@ThePunisher It seems i've found the solution, but thank you for posting a comment.

avatar image ThePunisher · Aug 11, 2015 at 11:43 PM 0
Share

@UniqueXDream94 Glad you figured it out.

1 Reply

· Add your reply
  • Sort: 
avatar image
2

Answer by UniqueXDream94 · Aug 11, 2015 at 11:26 PM

I've Found the answer. It seems to have been a unity bug, and has since been fixed as of Unity version 5.1.2. I am currently using 5.1.1f1, and will upgrade to the latest update.

Hope this helps anyone with a similar problem.

Answer Found here: http://forum.unity3d.com/threads/unity-5-0-2p2-keynotfoundexception-the-given-key-was-not-present-in-the-dictionary.327930/page-2

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image illustir · Aug 14, 2015 at 01:14 PM 0
Share

Oh, thanks for this answer! (And also telling me that there's a new version out because Check for Updates does not seem to work either.)

avatar image UniqueXDream94 · Aug 17, 2015 at 07:23 PM 0
Share

No problem! i'm glad i could help.

avatar image Wartornplace · Oct 13, 2015 at 12:11 AM 0
Share

I am fully updated But I am still having the error. Any suggestions?

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

26 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Method not found: 'UnityEngine.AudioSource.PlayOneShoot'. 1 Answer

can't run game through xcode; works when launched from iphone 1 Answer

Crash in xCode, no errors in editor. 0 Answers

Escape key or button set to escape not working 1 Answer

Strange Xcode Error for iOS? YS Bundle Null Exception 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges