Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 ababab5 · Sep 05, 2014 at 09:14 PM · iosxcodeunity everyplay

Everyplay for Unity3D - Error for building on iOS

Hi,

I can't open my project because of this two errors (saw it in mu Unity console):

KeyNotFoundException: The given key was not present in the dictionary. System.Collections.Generic.Dictionary`2[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.XCProject..ctor (System.String filePath) (at Assets/Facebook/Editor/iOS/third_party/XCodeEditor-for-Unity/XCProject.cs:95) UnityEditor.FacebookEditor.XCodePostProcess.OnPostProcessBuild (BuildTarget target, System.String path) (at Assets/Facebook/Editor/FacebookPostprocess.cs:25) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

AND

KeyNotFoundException: The given key was not present in the dictionary. System.Collections.Generic.Dictionary`2[TKey,TValue].get_Item (.TKey key) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150) Everyplay.XCodeEditor.XCProject..ctor (System.String filePath) (at Assets/Editor/Everyplay/XCodeEditor/XCProject.cs:93) EveryplayPostprocessor.ProcessXCodeProject (System.String path) (at Assets/Editor/Everyplay/Scripts/EveryplayPostprocessor.cs:124) EveryplayPostprocessor.PostProcessBuild_iOS (System.String path, System.String clientId) (at Assets/Editor/Everyplay/Scripts/EveryplayPostprocessor.cs:76) EveryplayPostprocessor.OnPostProcessBuild (BuildTarget target, System.String path) (at Assets/Editor/Everyplay/Scripts/EveryplayPostprocessor.cs:24) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

Any idea? It worked ... yesterday ! :(

I don't understand, and the Everyplay's support is ... very very slow.

Thank you in advance for your help.

Best regards,

AB

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by pmjo · Sep 08, 2014 at 05:22 AM

Do you mean you cannot open the xCode project or the Unity project? Facebook and Everyplay uses the same xCode editor tool and it looks both are failing for some reason. Have you added or updated any other plugins after it stopped working? Sometimes some plugins may corrupt the xCode project. If you are talking about the xCode project, have you tried to build a fresh project in a new folder instead of appending?

If you are using the Adcolony plugin, I have confirmed that Everyplay will generate a similar error with it because Adcolony makes xCode project unreadable for the xCode editor. I have posted a fix for that here: http://answers.unity3d.com/questions/779017/everyplay-ios-integration-issue.html#answer-786929

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 ababab5 · Sep 08, 2014 at 07:13 AM 0
Share

Hi,

Thank you for your answer.

I just updated chartboost for unity to 5.0.

I don't use ad colony.

I already tried to build a fresh new xcode project, it doesn't change anything.

avatar image pmjo · Sep 08, 2014 at 11:38 AM 0
Share

Chartboost is also using the xCode editor so the problem is not caused by it. $$anonymous$$ay I ask what other plugins you are using?

You could also try to change Everyplay postprocessor to run earlier than other plugins: Edit the EveryplayPostprocessor.cs file (line 15, folder Editor/Everyplay/Scripts) and change [PostProcessBuild(1080)] to [PostProcessBuild(-5)]. But since you are facing the problem also with Facebook, you must edit the Facebook postprocessor too.

avatar image ababab5 · Sep 09, 2014 at 01:25 PM 0
Share

Thanks,

in fact my issue was away : I change my App name in Unity3D without space, I build, and it works.

Afetr that I put again my game name and I rebuild, and it's ok.

Strange ...

avatar image
0

Answer by mfosati · Sep 08, 2014 at 08:15 PM

Go to the CBPostProcessor.cs and change line 10 to [PostProcessBuild(1081)]

Comment
Add comment · Show 4 · 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 ababab5 · Sep 11, 2014 at 05:55 PM 0
Share

Hi,

I still have this issue :

$$anonymous$$eyNotFoundException: The given key was not present in the dictionary. System.Collections.Generic.Dictionary`2[T$$anonymous$$ey,TValue].get_Item (.T$$anonymous$$ey key) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150) UnityEditor.XCodeEditor.XCProject..ctor (System.String filePath) (at Assets/Facebook/Editor/iOS/third_party/XCodeEditor-for-Unity/XCProject.cs:95) UnityEditor.FacebookEditor.XCodePostProcess.OnPostProcessBuild (BuildTarget target, System.String path) (at Assets/Facebook/Editor/FacebookPostprocess.cs:25) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

AND

$$anonymous$$eyNotFoundException: The given key was not present in the dictionary. System.Collections.Generic.Dictionary`2[T$$anonymous$$ey,TValue].get_Item (.T$$anonymous$$ey key) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Collections.Generic/Dictionary.cs:150) Everyplay.XCodeEditor.XCProject..ctor (System.String filePath) (at Assets/Editor/Everyplay/XCodeEditor/XCProject.cs:93) EveryplayPostprocessor.ProcessXCodeProject (System.String path) (at Assets/Editor/Everyplay/Scripts/EveryplayPostprocessor.cs:124) EveryplayPostprocessor.PostProcessBuild_iOS (System.String path, System.String clientId) (at Assets/Editor/Everyplay/Scripts/EveryplayPostprocessor.cs:76) EveryplayPostprocessor.OnPostProcessBuild (BuildTarget target, System.String path) (at Assets/Editor/Everyplay/Scripts/EveryplayPostprocessor.cs:24) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()

I'm losing my $$anonymous$$d .... 1 week on it :'(

Thanks a lot for your help !!

(I'm using Chartboost 5.0, Facebook 6.0 and Everyplay)

Thanks !

avatar image pmjo · Sep 12, 2014 at 04:30 AM 0
Share

Upgrading to Chartboost 5.0.2 seems to solve the problem.

https://answers.chartboost.com/hc/en-us/articles/201219745-Unity-SD$$anonymous$$-Download

avatar image ababab5 · Sep 21, 2014 at 05:07 PM 0
Share

Hi,

It doesn't work with the iPhone 6. Do you have the same issue ?

Thanks !

avatar image pmjo · Sep 22, 2014 at 10:12 AM 0
Share

What does not work with iPhone 6? Chartboost?

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Xcode hook up with Unity 1 Answer

Apple Mach-O Linker Error 4 Answers

resubmit older ios app with old unity? 0 Answers

Runs fine in editor, crash on switch platform to iOS. 0 Answers

UnityAppController's didRotateFromInterfaceOrientation not getting called on rotating device 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