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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Help updating iphone app

Discussion in 'Editor & General Support' started by Aaron_M, Jun 7, 2014.

  1. Aaron_M

    Aaron_M

    Joined:
    Apr 14, 2014
    Posts:
    18
    I recently submitted my iphone app created with unity to the app store, but it was recently rejected. I made some changes and I am now ready to reupload my project. When I go to the build tab in unity, I am presented with the with a warning popup that reads: "Build folder already exists and was created with other Unity iPhone version or for different target device setting. Would you like to replace it?" There are three buttons: "replace", "append", and "cancel." The append button is disabled.

    I worry about replacing my project as I had to make setting changes within the xcode project to link my app to the app store for submission. I have never submitted an app before so could anyone please advise me as to what I should do?

    Thanks,

    Aaron McClure
     
  2. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Hit Cancel. The rename the folder that you are writing the Xcode project to. Then back in Unity make the build. You'll get a new folder, but now you can compare the old working folder with the new one.
     
  3. Aaron_M

    Aaron_M

    Joined:
    Apr 14, 2014
    Posts:
    18
    Thank you for the reply. To clarify, you are suggesting building the project to a different folder and then manually copy and pasting the files I need to my other folder? Is there no way to have unity do this as I am a little unsure which files I need to copy and which ones I need to keep the same.
     
  4. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    Well, Unity can replace the built folder for you, but I understood you didn't want Unity to do this. What Unity is saying is that it cannot append because the project was built with a different version of Unity. Since the iOS runtime code has changed between 4.3 and 4.5, it's just not safe to append. So Unity says it'll only replace. If the old Xcode project is important to you, keep it safe and create a new Xcode project folder. And yes, as you encounter problems in the new Xcode project, look and see how they were solved in the old project.
     
  5. Aaron_M

    Aaron_M

    Joined:
    Apr 14, 2014
    Posts:
    18
    I see. The main issue occurring is that I updated unity, otherwise I could have clicked append and everything would have worked fine.

    One last question, I understand you are an expert on unity and not necessarily with iPhone related questions, but would you be able to suggest or point me toward an article that might explain how I can maintain a link between my xcode project and the app I submitted on their website? I fear that be either clicking replace or making a separate copy, I will royally mess up the keys linking my project with the app store.

    Thanks for your help.
     
  6. Graham-Dunnett

    Graham-Dunnett

    Unity Technologies

    Joined:
    Jun 2, 2009
    Posts:
    4,287
    I'm not an expert, but assume if you keep the same bundle identifier, and simply bump the Version in Xcode (General Tab), you'll get a new app version. You should match this version number to the one you set in iTunes Connect. So, if in Xcode you set 1.1, use 1.1 in iTunes Connect.
     
  7. Aaron_M

    Aaron_M

    Joined:
    Apr 14, 2014
    Posts:
    18
    Thanks for your help. I may just keep this thread open in case anyone who has had to update unity and submit an update to the app store comes across this thread. I'll begin to experiment. Thanks again for the help.
     
  8. Aaron_M

    Aaron_M

    Joined:
    Apr 14, 2014
    Posts:
    18
    Now any time I try and build a new project (even one under a different name), I get the following error:

    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.PBXResolver.ResolveName (System.String guid) (at Assets/Editor/iOS/PBX Editor/PBXParser.cs:49)
    UnityEditor.XCodeEditor.PBXResolver.ResolveName (System.String guid) (at Assets/Editor/iOS/PBX Editor/PBXParser.cs:53)
     
  9. Aaron_M

    Aaron_M

    Joined:
    Apr 14, 2014
    Posts:
    18
    I'm thinking of reinstalling and if that doesn't work, reverting my build back to 4.3
     
  10. madfatcat

    madfatcat

    Joined:
    Jul 3, 2014
    Posts:
    14
    I have the same problem as topicstarter - I can't append the xCode project, the append button is unavailable. This happened after I updated to Unity 5. The problem is that I can't update even new xCode projects created with Unity 5. When building to iOS, I replace the old xCode project or even chose a new folder for it. It's assumed that now it has been created with new version of Unity. However, after that I still can't append the xCode project. My question is: how to make append button active? Thank you!
     
  11. hexagonius

    hexagonius

    Joined:
    Mar 26, 2013
    Posts:
    98
    I would like to know the same thing.

    How can one append to a freshly created Unity Project folder? Using Unity 5.1.1f1