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

nityException: Launching iOS project via Xcode4 failed

Discussion in 'iOS and tvOS' started by Moonjump, Mar 16, 2014.

  1. Mishaps

    Mishaps

    Joined:
    Nov 28, 2011
    Posts:
    181
    you need to do the DVTPlugin thing again. And when it says your device is ineligible go to the menu product>Destination and select your device from there.
    Follow Prime31's twitter feed, he often posts very useful info for this sort of thing ;)
     
  2. cryptoforge

    cryptoforge

    Joined:
    Jan 21, 2015
    Posts:
    60
    Thanks!
     
  3. Morgan

    Morgan

    Joined:
    May 21, 2006
    Posts:
    1,223
    Just updated to today's latest Unity Pro 4.6.5f1, and have the latest XCode release (6.3.1) in Yosemite, but it still logs "Launching iOS project via Xcode4 failed."

    Of course I can still build and run from within Xcode after the error, but it would be great to avoid the extra steps (and watching the progress bars to know when you can proceed with them).

    Is this always the case for all users who don't apply their own manual hacks? Or is it project-specific. If the latter, I can file a bug.
     
  4. povilas

    povilas

    Unity Technologies

    Joined:
    Jan 28, 2014
    Posts:
    427
    This error was fixed in 4.6.5p1. Note, that this is caused by the way apple handles Build&Run plugin authentication - new versions of Xcode will always have such error until we update Unity.
     
  5. sanjodev

    sanjodev

    Joined:
    May 29, 2012
    Posts:
    63
    Where do you find the latest UUID to fill in? I just updated to XCode 6.3.2, and I guess I need the latest one to update the Unity file with.

    Edit: Nevermind found solution. Just have to enter this in the Terminal:

    defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID

    More info here:
    http://stackoverflow.com/questions/22324303/the-plugin-didnt-work-on-xcode-5-1
     
    Last edited: Jun 22, 2015
  6. luvcraft

    luvcraft

    Joined:
    Aug 22, 2011
    Posts:
    60
    Aww, and now with XCode 6.4 this solution no longer works. :(
     
  7. Moonjump

    Moonjump

    Joined:
    Apr 15, 2010
    Posts:
    2,572
    I have just upgraded to Xcode 6.4 and have also got the return of "Launching iOS project via Xcode4 failed". At least the solution I listed earlier in the thread works (a response I got from Unity QA): Navigate to the Xcode project in your build folder and manually open it.

    It is quite a faff though. Hopefully there will be a longer term solution than Unity responding in their next update after each Xcode update.
     
    Last edited: Jul 10, 2015
  8. martinell

    martinell

    Joined:
    Jul 1, 2015
    Posts:
    1
    It is working for me on xCode 6.4. Here is what I did:
    • Read the DVTPlugInCompatibilityUUID as commented before (this value changes between xCode versions):
    $ defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID
    7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90​
    • Locate the Info.plist to modify:
    $ find /Applications/Unity/Unity.app/ -name "Unity4XC.xcplugin"
    /Applications/Unity/Unity.app//Contents/PlaybackEngines/iossupport/Tools/OSX/Unity4XC.xcplugin​
    • Finally, add the UUID:
    <key>DVTPlugInCompatibilityUUIDs</key>
    <array>
    <string>...</string>
    ...
    <string>NEW_UUID</string>
    </array>
    After this, I ran my project from Unity and it launched on xCode and it alerted me that the plugin is not provided by Apple. I clicked on "Load Bundle" and it works now.

     
  9. 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
     
  10. cryptoforge

    cryptoforge

    Joined:
    Jan 21, 2015
    Posts:
    60
    Interesting!