Unity version 5.0.0f4 and XCode 6.2 Build and Run error

If I build and run my Unity iOS project, I get the error:

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 did not see this error before.

What could be causing this?

For anyone stumbling onto this question first before anyother of a similar nature, the workaround can be found here: UnityException: Launching iOS project via Xcode failed - YouTube

Gist: Find Xcode in applications → (ctrl-click > show package contents) → Contents ->double click on infoPlist → look for DVTPluginCompatibilityUUID entry and copy the string. then:

Find Unity → (ctrl-click > show package contents) → Contents ->playbackengines → iOS support → tools → osx ->Unity4XC.xcplugin → (ctrl-click > show package contents) → Contents ->infoPlist, Find the DVTPluginCompatibilityUUID array, create a new entry and paste the xcode UUID there. save and now you should be able to build and run.

DVTPluginCompatibilityUUID