Description

After switching from Xcode 11.0 Beta 3 (11M362v) to Xcode 10 (10A255) and then back to Xcode 11, the editor no longer recognized that Xcode was installed on my machine when trying to use Xcode 11 as my selected Xcode:

PackagingResults: Error: Errors compiling global shader TSlateElementPSFonttruetrueA  :
PackagingResults: Error:     /tmp/4264_946102938.metal(0): Xcode's metal shader compiler was not found, verify Xcode has been installed on this Mac and that it has been selected in Xcode > Preferences > Locations > Command-line Tools.
PackagingResults: Error: appError called: Assertion failed:  [File:/Users/build/Build/++UE4/Sync/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 4576]
PackagingResults: Error: [File:/Users/build/Build/++UE4/Sync/Engine/Source/Runtime/Engine/Private/ShaderCompiler/ShaderCompiler.cpp] [Line: 4576]
  • I had previously switched between Xcode 11.0 Beta 3 (11M362v) and Xcode 10.2.1 (10E1001) without issues
  • Xcode 10 (10A255) was only temporarily needed and has been removed from the machine
  • Switching back to Xcode 10.2.1 (10E1001) allows me to bypass this error and everything works as normal
  • Xcode 11 has been uninstalled and reinstalled with machine restarts in between but the error still occurs
  • The error occurs regardless of engine version, so this also reproduces in 4.22
  • All Xcode versions are with the Applications folder and renamed as Xcode-10.app and Xcode-11-beta.app
  • After deleting all Xcode versions off the machine and reinstalling only Xcode 11 with the default Xcode-beta.app name, this issue still occurs
Steps to Reproduce
  1. Have Xcode 10 (10A255) installed
  2. Have Xcode 11 Beta 3 (11M362v) installed
  3. Open a new Terminal window and run:
    • sudo xcode-select --switch
  1. Drag in the Xcode 10 app
  2. Enter Mac password when prompted
  3. In Terminal, run the same command again:
    • sudo xcode-select --switch
  1. Drag in the Xcode 11 beta app
  2. Enter Mac password when prompted
  3. Launch UE4Editor
  4. Create a new blank template project
  5. File > Package Project > IOS

Result: The cook encounters an assertion due to not being able to find Xcode

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-77407 in the post.

0
Login to Vote

Fixed
ComponentUE - Platform - Apple
Affects Versions4.224.23
Target Fix4.23
Fix Commit7951880
Main Commit7952002
Release Commit7951880
CreatedJul 16, 2019
ResolvedAug 12, 2019
UpdatedFeb 25, 2020