Search Unity

  1. Are you interested in providing feedback directly to Unity teams? Sign up to become a member of Unity Pulse, our new product feedback and research community.
    Dismiss Notice

UnityException: Launching iOS project via Xcode failed. Check editor log for details.

Discussion in 'iOS and tvOS' started by Kirkules_, Mar 11, 2015.

  1. Kirkules_

    Kirkules_

    Joined:
    Aug 5, 2014
    Posts:
    55
    Unity 5.0.0f4
    Mac OS X 10.10.2
    Xcode 6.2

    UnityException: Launching iOS project via Xcode failed. Check editor log for details.
    UnityEditor.iOS.PostProcessiPhonePlayer.LaunchInXcode (BuildTarget target, System.String path)
    UnityEditor.iOS.PostProcessiPhonePlayer.Launch (BuildTarget target, System.String path)
    UnityEditor.iOS.iOSBuildPostprocessor.LaunchPlayer (BuildLaunchPlayerArgs args)
    UnityEditor.PostprocessBuildPlayer.Launch (BuildTarget target, System.String path, System.String productName, BuildOptions options) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:282)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()


    I've seen this issue over the years. I just updated to Xcode 6.2 and I get this message. I attempt to apply the fix but there is no iOS section in Unity.app.Contents/BuildTargetTools.

    What to do?
     
  2. martonekler

    martonekler

    Unity Technologies

    Joined:
    Feb 5, 2015
    Posts:
    31
    Hi,

    Thanks for the detailed report, I was able to reproduce it.

    As a workaround, could you try Build and then running the project from Xcode?
     
  3. CristianKhalil

    CristianKhalil

    Joined:
    Feb 19, 2013
    Posts:
    9
    Hi, I`m having the same problem.
    After the error, i have to open the project on xcode again and hit play direct on xcode, then the project runs ok on mobile.
     
  4. u0204909

    u0204909

    Joined:
    Jun 25, 2012
    Posts:
    21
    Hi I am having the same problem. Also, compiling using IL2CPP and (with or without) its precompiled header is significantly slower than before Unity 5. And I cant even compile with the Mono 2.x option.
     
  5. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    18,261
    I'm having this annoyance as well. Is this Apple breaking stuff or is this Unity breaking stuff? I have a sneaky feeling it is Apple, because on Xcode 6.1.1 it worked, and now on Xcode 6.2 it does not work.

    YES, there is the available workaround as martonekler suggested (confirmed it works), but part of the reason I licensed Unity was to avoid touching XCode. :)
     
  6. Griffo

    Griffo

    Joined:
    Jul 5, 2011
    Posts:
    683
    I had the same problem, Unity 5.0.0f4 and Xcode 6.2 and THIS worked for me ..
     
  7. ceteri

    ceteri

    Joined:
    Mar 12, 2015
    Posts:
    11
    This fix worked for me too (Thanks Griffo!) i had exactly the same problem after updating to xcode 6.2
     
    TheMax2015, Griffo and benjaminoutram like this.
  8. benjaminoutram

    benjaminoutram

    Joined:
    Nov 10, 2014
    Posts:
    20
    Had same problem but Griffo's post above also solved it for me! Nice one peeps!!!
     
    Griffo likes this.
  9. plasticYoda

    plasticYoda

    Joined:
    Aug 20, 2013
    Posts:
    62
    Good info - thanks for the video on what to do.
     
    Griffo likes this.
  10. Kurt-Dekker

    Kurt-Dekker

    Joined:
    Mar 16, 2013
    Posts:
    18,261
    Yes this is gold. Worked perfectly for me.

    <my snarky remarks elided>
     
    Last edited: Mar 24, 2015
  11. fluiddot

    fluiddot

    Joined:
    Aug 27, 2013
    Posts:
    2
    Thanks Griffo for the fix, it worked perfectly !
     
    Griffo likes this.
  12. jacknorrisuk

    jacknorrisuk

    Joined:
    Jun 17, 2014
    Posts:
    38
    Had the same issue - but video guide worked!
     
    Griffo likes this.
  13. TheMax2015

    TheMax2015

    Joined:
    Mar 6, 2015
    Posts:
    12
    That worked a treat, thanks
     
  14. Wenamun

    Wenamun

    Joined:
    Jan 9, 2015
    Posts:
    14
    Works like a charm! Thank you!
     
    Griffo likes this.
  15. flyingaudio

    flyingaudio

    Joined:
    Dec 3, 2010
    Posts:
    97
    Thanks Griffo!
     
    Griffo likes this.
  16. Grant-Christie

    Grant-Christie

    Joined:
    May 10, 2015
    Posts:
    1
    Worked for me. Thanks!!!!
     
  17. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,780
    This worked!

    Thanks,
    jrDev
     
  18. rsfuller

    rsfuller

    Joined:
    May 26, 2015
    Posts:
    4
    This worked for me with Unity 5.1.1 and Xcode 6.4
     
  19. crafTDev

    crafTDev

    Joined:
    Nov 5, 2008
    Posts:
    1,780
    Now it doesn't work in 5.1.2? Come on Unity...

    Thanks,
    jrDev
     
    Last edited: Aug 7, 2015
  20. codeage

    codeage

    Joined:
    Feb 7, 2015
    Posts:
    14
    I've written an editor extension to solve this problem. Now you can fix this error by a simple click. ;););)





    Download link: Dropbox

    :D:D:D
     
    suzenako likes this.
  21. habitoti

    habitoti

    Joined:
    Feb 28, 2013
    Posts:
    141
    You are a hero...!
    I knew the manual fix for long and did it a million times -- and always wondered how the Unity guys can simply ignore it forever...
     
  22. hawken

    hawken

    Joined:
    Aug 22, 2013
    Posts:
    610
    even with the above fixes, it still errors for me:

    Unity 5.1.3f1
    Xcode 6.4
     
  23. Threepwood

    Threepwood

    Joined:
    Jul 23, 2009
    Posts:
    92
    >>Now it doesn't work in 5.1.2? Come on Unity...

    Getting this on a fresh project, with one script, in Unity 5.1.2 and XCode 6.4

    Can't remember the last time Unity actually built and deployed to XCode without manual intervention or hack arounds. Seems ridiculous.
     
  24. codeage

    codeage

    Joined:
    Feb 7, 2015
    Posts:
    14
    Have you tried my plugin? I've just tested it in Unity 5.1.3f1 and it works fine.
     
    Last edited: Sep 19, 2015
  25. Erikoinen

    Erikoinen

    Joined:
    Nov 10, 2014
    Posts:
    67
    I still keep getting the same error, even if doing it with the video instructions or with codeage's plugin. :/

    Unity 5.2.0f3
    Xcode 6.4
     
  26. Erikoinen

    Erikoinen

    Joined:
    Nov 10, 2014
    Posts:
    67
    I downgraded to Xcode 6.3.2 and it worked without the fixes FYI.
     
  27. suzenako

    suzenako

    Joined:
    Feb 26, 2013
    Posts:
    1
    Thanks codeage for this Fix Xcode Plugin!! It worked for me, with the Xcode 7 and Unity 5.2.0
     
  28. Kirkules_

    Kirkules_

    Joined:
    Aug 5, 2014
    Posts:
    55
    Having the same problem now in Unity 5.3.4f1 and Xcode 7.3 but I can't find a fix. Help!
     
  29. sandygk

    sandygk

    Joined:
    Feb 3, 2014
    Posts:
    2
    same here 5.3.5f1 Xcode 7.3.1, the fix is not working for me. :(
     
  30. codeage

    codeage

    Joined:
    Feb 7, 2015
    Posts:
    14
    Did you see any error information?
     
  31. josephrur

    josephrur

    Joined:
    Jun 13, 2016
    Posts:
    1
    still the same for me ---- 5.3.5f1 Xcode 7.3.1-----, any solution found?

    UnityException: Launching iOS project via Xcode failed. Check editor log for details.
    UnityEditor.iOS.PostProcessiPhonePlayer.LaunchInXcode (BuildTarget target, System.String path) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:1740)
    UnityEditor.iOS.PostProcessiPhonePlayer.Launch (BuildTarget target, System.String path) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/BuildPostProcessor.cs:1714)
    UnityEditor.iOS.iOSBuildPostprocessor.LaunchPlayer (BuildLaunchPlayerArgs args) (at /Users/builduser/buildslave/unity/build/PlatformDependent/iPhonePlayer/Extensions/Common/ExtensionModule.cs:22)
    UnityEditor.PostprocessBuildPlayer.Launch (BuildTarget target, System.String path, System.String productName, BuildOptions options) (at /Users/builduser/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:282)
    UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
     
  32. unity_developer

    unity_developer

    Joined:
    Apr 16, 2015
    Posts:
    1
    Giving error of could not find the path
     
unityunity