Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Error Building Player when Appending

Discussion in 'iOS and tvOS' started by KamiKaze425, Feb 24, 2015.

  1. KamiKaze425

    KamiKaze425

    Joined:
    Nov 20, 2012
    Posts:
    207
    For some reason, after the second time appending an iOS project when building, I get this error:
    "Error building Player: ArgumentException: An element with the same key already exists in the dictionary"

    No more information is provided, and I can't double click it to make it open anything.
    This started when I switched to 4.6.2. It builds fine if I do a replace instead.
     
  2. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    Hi, could you please create a bug report with your project attached? The issue is most likely related to the plugins you use.
     
  3. KamiKaze425

    KamiKaze425

    Joined:
    Nov 20, 2012
    Posts:
    207
    Sorry for the delay. I switched projects for a little bit and didn't have the chance to go back and report the bug. Just submitted the bug report. Didn't really get a chance to shrink the project. Case 676108
    I am using:
    Prime31 Google Play Games
    Prime31 Game Center
    Google Mobile Ads
    Everyplay
    Unibill
    CryptoPlayerPrefs
    Pathological Games Pool Manager
    NGUI
     
  4. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
  5. KamiKaze425

    KamiKaze425

    Joined:
    Nov 20, 2012
    Posts:
    207
    I was using 4.6.3f1... is that not the same?
     
  6. KamiKaze425

    KamiKaze425

    Joined:
    Nov 20, 2012
    Posts:
    207
    downloaded 4.6.3p1. problem still persists.
    Edit: seems less frequent though. not sure
     
    Last edited: Mar 2, 2015
  7. Quantum-Mechanic

    Quantum-Mechanic

    Joined:
    Mar 14, 2013
    Posts:
    7
    We had a problem like this when our Automated BuildPipeline programmatically added Scripting Define Symbols without testing if they were already present.. If the same scripting define was set twice it would cause this error. For example, DEBUG;USE_DEV_SERVER;USE_DEV_SERVER

    This was specifically with:
    PlayerSettings.SetScriptingDefineSymbolsForGroup
     
  8. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
    Please give more details or we must assume what you've tried.

    Did you do a 'replace' build first? I would not assume that an 'append' build will work without first doing a replace since there are likely errors still persisting in the Xcode project from 4.3.6f1. (it's actually good practice to always to a replace build for every new release including patch releases).

    If you did already try a replace build and the issue persists then you'll need to submit a bug report with a project that reproduces the issue as Unity have marked this bug as fixed and are not looking at it now. They'll need a project that reproduces the issue to be able to address this though.
     
  9. KamiKaze425

    KamiKaze425

    Joined:
    Nov 20, 2012
    Posts:
    207
    @Quantum Mechanic: I'll take a look

    @larku: I was required to do a replace. You can't append if your Unity version changes. It's the exact same project I sent them when it failed on 4.6.3f1. All I did was upgrade it to 4.6.3p1. My plugins are the same. My instructions on the previous bug are the same. All I did was upgrade my Unity. Relaunch the project to update it. Replace the XCode project. Added the requirements for Google Mobile Ads. Worked fine (those instructions were listed in my original bug). The first append seemed fine. Then the next failed.

    I was able to test and submit within the first append. So it's not an issue at the moment. If it's not an issue for other people, I can leave it at that. I'm onto the next project already.
     
  10. larku

    larku

    Joined:
    Mar 14, 2013
    Posts:
    1,422
    Hi, right, sounds like your original bug is still an issue. Hopefully Unity continue to address your original bug report!
     
  11. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    Hi, could you create a bug report and attach the following to it?
    * the "Unity-iPhone.xcodeproj" directory after the replace build
    * the "Unity-iPhone.xcodeproj" directory after the append build

    The problem is appears because of some kind of weird interaction of the plugins you use.

    Please post the bug number here so that I can find it.
     
  12. Sam-Bauwens

    Sam-Bauwens

    Joined:
    Aug 20, 2009
    Posts:
    21
    Maybe could you consider improving on the error message so that it could point us somewhere? I tried the editor log but doesn't say anything either.
     
    Last edited: Aug 20, 2015
  13. Sam-Bauwens

    Sam-Bauwens

    Joined:
    Aug 20, 2009
    Posts:
    21
    I feel stuck here... Don't know what I can do about this, now I have a list of things to do manually on the xCode project everytime I make a build, and the list is growing.
     
  14. JonnyHilly

    JonnyHilly

    Joined:
    Sep 4, 2009
    Posts:
    742
    Same issue, first build to new folder or replace works. Append fails.
    We have custom defines in build settings.
     
  15. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    I found this asset which allows you to automate some manual tasks.