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

每次Xcode升级后,使用Unity的Build & Run发布iOS项目时经常会出现无法自动打开Xcode并编译的问题。Unity的Console错误提示为UnityException:Launching iOS project via Xcode failed. Check editor log for details.

研究发现,是因为Xcode升级后某个UUID发生了变化,导致UnityXcode插件无法正常工作。可使用以下方法修复

  1. 打开/Applications/Xcode.app/Contents/Info.plist,找到DVTPlugInCompatibilityUUID的值并复制到剪贴板UnityException: Launching iOS project via Xcode failed. Check editor log for details_第1张图片
  2. 开/Applications/Unity/Unity.app/Contents/PlaybackEngines/iOSSupport/Tools/OSX/Unity4XC.xcplugin/Contents/Info.plist,在DVTPlugInCompatibilityUUID下面添加一个新Key,然后把复制的值粘贴进去,保存。
    UnityException: Launching iOS project via Xcode failed. Check editor log for details_第2张图片
  3. 重启Unity

你可能感兴趣的:(UnityException: Launching iOS project via Xcode failed. Check editor log for details)