Search Issue Tracker

Fixed

Votes

2

Found in

4.6.2f1

Issue ID

669467

Regression

No

Error when trying to append a project after removing 'Unity-iPhone Tests' target in xcode

iOS

-

To Reproduce:

1. Open the attached project.
2. Build to iOS, make sure to Append to the existing project in the "XCode-iOS" folder.
3. "Error building Player: ArgumentException: An element with the same key already exists in the dictionary." is thrown in console.

Or simply create a new project, build , remove 'Unity-iPhone Tests' in xcode, build with append
Error building Player: NullReferenceException: Object reference not set to an instance of an object" is thrown.

Comments (27)

  1. ducklmg

    Jan 04, 2016 06:57

    Still happening in 4.7.0

  2. Trungdv

    Nov 17, 2015 07:36

    Have this issue again in 4.6.9p2

  3. Bedbug

    Oct 22, 2015 10:52

    Still happening in 4.6.9.

  4. JonnyHilly

    Oct 20, 2015 19:15

    Still happenning. 4.6.8
    Would be nice if the error message gave some information about What 'key' is the duplicate. Could then track it down in the project file.

  5. endlesspeed

    Aug 23, 2015 08:01

    Just delete xcode project file that is placed in your game project file. and regenerate xcode project file again by unity compiling

  6. anirudha_vfx

    Aug 11, 2015 20:30

    Try closing the project in xCode before building and appending the project folder. It has worked quite a few times for me.

  7. zalogic

    Jul 29, 2015 12:56

    Can confirm it's still happening on 4.6.7p2! I'm trying to build with "Append". (using XCode 6.4 on OSX 10.10.4)

  8. Voxel-Busters

    Jul 02, 2015 19:09

    Confirming that this issue still happens in 4.6.7f2 . If I execute build and run this happens. And sadly no proper log even from where its happening.

    Glad that i found thats a known issue. Else would have screwed my recently added dictionary just before this error :P.

  9. capyvara

    Jul 01, 2015 16:42

    Still getting this error in 4.6.6p4, looks like a regression

  10. Bay

    Jun 20, 2015 10:36

    ERROR WHEN TRYING TO APPEND A PROJECT AFTER REMOVING 'UNITY-IPHONE TESTS' TARGET IN XCODE

    DO NOT DELETE

    'UNITY-IPHONE TESTS'

    When you replace first, you should not delete 'UNITY-IPHONE TESTS'.

    That's all.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.