Search Unity

Recommended Xcode versions

Discussion in 'iOS and tvOS' started by Mantas-Puida, Sep 12, 2012.

Thread Status:
Not open for further replies.
  1. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    For the most up to date information on Xcode, go here.

    General rule - you should always use latest minor (.x) release of Unity.

    Unity 3.4.x - was tested with Xcode 3.2.6 and Xcode 4.2. Unity 3.4.x won't receive any updates.
    Unity 3.5.x - should work fine with Xcode 4.2 / 4.3 / 4.4 / 4.5 / 4.5.2 / 4.6 / 5.0 (except Build&Run). We strongly recommend upgrading to Unity 3.5.7.
    Unity 4.5.x - should work fine with Xcode 5.0. Xcode 5.1
    Unity 4.5.4p1 - adds support for Xcode 6 and iPhone6/6+. Build can be downloaded at (http://forum.unity3d.com/threads/unity-patch-releases.246198/#post-1778651)
    Unity 5.3.x - Xcode 7.2 / 7.3 / 8.0
    Unity 5.4.x - Xcode 7.2 / 7.3 / 8.0
    Unity 5.5.x - Xcode 7.3 / 8.3 / 9.0
    Unity 5.6.x - Xcode 7.3 / 8.3 / 9.0
    Unity 2017.x - Xcode 7.3 / 8.3 / 9.0
     
    Last edited by a moderator: Sep 25, 2018
    John3D and cybergoogle like this.
  2. Issam-Khalil

    Issam-Khalil

    Joined:
    Mar 19, 2012
    Posts:
    8
    Nice thanks for that list, I was wondering if it was safe for me to update xcode.

    It would be really useful if the release note contained the version of xcode that the release was tested on.
     
  3. goat

    goat

    Joined:
    Aug 24, 2009
    Posts:
    5,182
    These kind of 'don't update' posts need a seperate forum section and to be stickied.
     
  4. FiveFingers

    FiveFingers

    Joined:
    Oct 15, 2009
    Posts:
    541


    I agree
     
  5. capyvara

    capyvara

    Joined:
    Mar 11, 2010
    Posts:
    80
    Hello Mantas,

    This basic license issue with Xcode 4.5 is a technical or legal problem? Can you give any additional details?

    Thanks
     
  6. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    It's a technical problem. Unity runtime will falsely detect standard splashscreen modification. You can work around it by setting Xcode project option "Compress PNG files" to "NO".
     
  7. capyvara

    capyvara

    Joined:
    Mar 11, 2010
    Posts:
    80
    Thanks! Just to confirm, this problem doesn't happens when using the Pro license?
     
  8. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    Pro should work fine.
     
  9. Crazy Robot

    Crazy Robot

    Joined:
    Apr 18, 2009
    Posts:
    921
    So, its safe to run all versions of Unity Pro with Xcode 4.5?
     
  10. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    .
    It is safe to use Unity 3.5.5 with iOS Pro with Xcode 4.5. Older versions might not work (like might need to change compiler version to LLVM GCC).
     
  11. lcellentani74

    lcellentani74

    Joined:
    Dec 4, 2011
    Posts:
    31
    I hope to don't be offtopic, but with XCode4.5 I've weird orientation issues when the application requires to work on landscape mode.
    Anyone else is experiment the same issue?
    Any quick-fix for that?
     
  12. cubbox

    cubbox

    Joined:
    Jul 9, 2012
    Posts:
    4
    I'm also having this problem. The application wont actually build through xcode as it complains about an error relating to the "ConvertToUnityScreenOrientation" method.
     
  13. jordilinares

    jordilinares

    Joined:
    Jul 14, 2012
    Posts:
    3
    After upgrading to xcode 4.5 with unity 3.5, all my GUI.Button have disappeared ! Any clue ?
     
  14. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    Why wasn't this thread locked? It should be for information only, and not a free for all.
     
  15. J_P_

    J_P_

    Joined:
    Jan 9, 2010
    Posts:
    1,027
    There's some useful information being discussed, so no thanks.
     
  16. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    I agree too.
     
  17. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    Hi Everyone,
    Unity 3.5.6f4 was just released. It fixes most of the known problems with Xcode 4.5 / iOS 6.0 / iPhone 5. Of course it also adds iPhone 5 resolution support. First post was updated accordingly.
     
  18. helios

    helios

    Joined:
    Oct 5, 2009
    Posts:
    308
    Unity 4 hasn't been updated though, right?
     
  19. rextr09

    rextr09

    Joined:
    Dec 22, 2011
    Posts:
    416
    Do I have to install Xcode 4.5 to use Unity 3.5.6 just for native iPhone 5 support? (I don't need any other iOS 6 features). Will Xcode 4.3 be enough for that? thanks.
     
  20. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    iOS6 requires XCode 4.5 or at least 4.4 + http://www.jonathanhogervorst.com/p...6-device-for-testing-with-xcode-4-4-and-ios-5
    but then you can no longer send in your applications. building against iOS6 sdk for store is only possible with xcode 4.5
     
  21. TonyAce

    TonyAce

    Joined:
    Oct 4, 2012
    Posts:
    3
    My game use armv6 build to xcode 4.4 can be normal use iphone to test, but joined the armv7 after that, only a small number of model can see, and other models are black, I want to know that this should be how to solve?
    ...unity 3.56
     
  22. jmpp

    jmpp

    Joined:
    Jun 1, 2010
    Posts:
    93
    I'm sorry, but I did not understand one bit of what you tried to say. What problem exactly are you having?
     
  23. RolfBertram_dot_me

    RolfBertram_dot_me

    Joined:
    Mar 1, 2011
    Posts:
    128
    Is there a problem with Unity4 basic + iOS basic + XCode4.5.2 = Splash Screen Error?
    Setting png to not compress in XCode did not help.
     
  24. RolfBertram_dot_me

    RolfBertram_dot_me

    Joined:
    Mar 1, 2011
    Posts:
    128
    Solution: Delete App from iPad (compiled with old Unity). Install newly compiled App.
     
  25. sonicviz

    sonicviz

    Joined:
    May 19, 2009
    Posts:
    1,051
    This does not work..at least for me. I've tried all variations.

    Is there a solution for this?
     
  26. RolfBertram_dot_me

    RolfBertram_dot_me

    Joined:
    Mar 1, 2011
    Posts:
    128
    This is what I did additionally:
    1) Use newest Version of Xcode
    2) Clear cash in Xcode
    3) Delete Unity project output folder
     
  27. sonicviz

    sonicviz

    Joined:
    May 19, 2009
    Posts:
    1,051
    Hi Rolf,
    I'm on XCode 4.5.2, and I deleted the original project output.
    By cash (cache?) do you mean Clean Project?

    Edit: Success! That seems to work doing a clean project. Thanks Rolf!
     
    Last edited: Nov 22, 2012
  28. Abza1989

    Abza1989

    Joined:
    Jul 17, 2012
    Posts:
    47
    Hi I am currently using Unity 3.5.6f4 as you recommended but when i build for iOS (Xcode 4.3), it creates the Xcode project but then when i try to build for Device i get this error. and i never used to get this before and cannot find anything about this error anywhere.

    /Users/standardaccount/Desktop/Project Urenco/Urenco/Build/iOS/Richie1.3.8/Libraries/Assembly-CSharp.dll.s:unknown:FATAL:Section too large, can't encode r_address (0x1031118) into 24-bits of scattered relocation entry
    clang: error: assembler command failed with exit code 1 (use -v to see invocation)
    Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1


    Can someone please help me out i have been on forums and google for 3 days and haven't found a solution for this.

    Thanks
    Abz
     
  29. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    You are hitting Xcode linker bug, which typically is hit when too much code is being linked as single module. You might try updating Xcode to newer one or split your script code into multiple .NET assemblies. One of easy ways to split code into multiple assemblies - move some to Plugins folder.
     
  30. BenAtWeld

    BenAtWeld

    Joined:
    Dec 18, 2012
    Posts:
    2

    I'm using Unity 4.0.0f7 and using Xcode 4.5.2 and am getting the following 3 errors when I try to build in Xcode:

    These are all contained in the "AppController.mm" file

    1. "No member named 'w' in 'EAGLSurfaceDesc'
    2. Use of undeclared identifier '_curOrientation'; did you mean 'orientation'?
    3. Cannot initialize a parameter of type 'int' with an lvalue of type 'NSString *'

    Any thoughts?
     
  31. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
    Most likely you are using 3rd party native plugin, which is not compatible with Unity 4.0.
     
  32. BenAtWeld

    BenAtWeld

    Joined:
    Dec 18, 2012
    Posts:
    2
    Thanks! Turns out I was using an older version of Vuforia
     
  33. whydoidoit

    whydoidoit

    Joined:
    Mar 12, 2012
    Posts:
    365
    I'm suddenly having a problem with not being able to script debug (posted as a question here: http://forum.unity3d.com/threads/16...land-when-trying-to-activate-Script-Debugging)

    The error is "Unable to insert branch island"

    I'm using:

    * Mountain Lion 10.8.2
    * XCode 4.5.2
    * Unity 4.0.0f7
    * Scaleform IOS
    * Vuforia 2.0
    * Run target: iPhone 5 IOS 6.0.2

    I've tried:

    * Fiddling with OS settings
    * Rebuilding to a completely blank project
    * Reinstalling XCode
    * Re provisioning the iPhone
     
  34. JJC1138

    JJC1138

    Joined:
    Feb 23, 2012
    Posts:
    89
    I've just upgraded to Xcode 4.6 with the iOS 6.1 SDK and it seems to be fine with Unity 4.0.1f2 (w/ non-Pro iOS license).
     
  35. vedana

    vedana

    Joined:
    Jan 7, 2013
    Posts:
    8
    Has anyone used Xcode 4.6 specifically with Unity 4.0.0f7? I made the mistake of upgrading my iOS to 6.1 which requires Xcode 4.6, but am in the middle of a unity project and don't want to upgrade unity.
     
  36. SongU

    SongU

    Joined:
    Nov 1, 2012
    Posts:
    1
    thanks for your update..
     
  37. Tapgames

    Tapgames

    Joined:
    Dec 1, 2009
    Posts:
    242
    Does Unity 3.5.7f6 work with Xcode 4.6 and iOS 6.1?

    --Roy
     
  38. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    I'm waiting for the first post to be updated with this info too.
     
  39. Mantas-Puida

    Mantas-Puida

    Joined:
    Nov 13, 2008
    Posts:
    1,864
  40. Velvety

    Velvety

    Joined:
    May 4, 2009
    Posts:
    153
    I just updated to XCode 4.6 (which is required if you updated your iOS device to 6.1) and it works great with iOS 6.1 with a Unity v3.5.6f4 build.
     
  41. quoxel

    quoxel

    Joined:
    Nov 28, 2008
    Posts:
    65
    Hi, I need to upgrade XCode to 4.6 in order to deploy to my iOS6 iPhone, but I understand XCode 4.6 requires Lion.
    Lion is no longer available and Mountain Lion system requirements is beyond my machine! (I'm on a late 2006 MBP)
    Does anyone know if I have any options here? (Beside buying a new mac, which I can't afford)
     
  42. JJC1138

    JJC1138

    Joined:
    Feb 23, 2012
    Posts:
    89
  43. quoxel

    quoxel

    Joined:
    Nov 28, 2008
    Posts:
    65
    I did just that and I've purchased Lion. I got round the fact that my phone tech support has expired by telling them I'm a paid member of the iOS Development Program. I believe I'll make a Dual Boot Snow Leopard/Lion system at least to start, just in case Lion breaks anything important.

    Thank you very much JJC1138! Sterling advice!
     
  44. I am da bawss

    I am da bawss

    Joined:
    Jun 2, 2011
    Posts:
    2,574
    I second that. This kind of information is critical to most developers.
     
  45. Noisecrime

    Noisecrime

    Joined:
    Apr 7, 2010
    Posts:
    2,054
    Hi,

    I see xcode has been updated to 4.6.1 on the 14th March, anyone tried it yet?

    What are the dangers of upgrading? Is it easy to roll back?

    I need to update from xcode 4.5.2 as I need to support 6.1. I guess I could find xcode 4.6.0 and install that, but it would be much easier to just let OSX update straight to 4.6.1.
     
  46. hippocoder

    hippocoder

    Digital Ape

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    On 4.6.1 at the moment and there appears to be no problems for me.
     
  47. Noisecrime

    Noisecrime

    Joined:
    Apr 7, 2010
    Posts:
    2,054
    Thanks for replying, i'll update xcode a bit later.

    Wish the forum had a simple thanks button though, so I didn't have to waste space with an actual reply.
     
  48. Foxxis

    Foxxis

    Joined:
    Jun 27, 2006
    Posts:
    1,108
    We have had serious problems after upgrading to Unity 4.1 and Xcode 4.6.1. We get crashes on iPads that are intermittent and occurring in varied places. Also, after working most of the night to track down the problem, this morning Unity 4.6.1 would crash on startup reading the project that was fine last night.

    We are currently going back to 4.0.1 and Xcode 4.5.2. :-(
     
  49. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    Can someone please explain the issues we'll have with using Unity 3.5.7 once iOS 7 and Xcode 5 are released? Will there be another 3.5 release to cover iOS 7?

    Thank you.
     
  50. refract

    refract

    Joined:
    Aug 18, 2013
    Posts:
    4
    "We strongly recommend upgrading to Unity 3.5.7" Can upgrade to just 3.5.7? From what I can see my license is only an upgrade to 4.0 ... which will cost me $2400 US.
    I currently have an older version of unity ios 1.7
    Is it possible to upgrade at a lesser cost to 3.5.7?

    Thanks
     
Thread Status:
Not open for further replies.