Compile error with XCode exit code 6

Hello,
When I try and build my AirSim project with XCode I get the Shell Script Invocation Error XCodeBuild.sh failed with exit code 6.

I am running:
Xcode 13.4.1
Mac OS 12.4
Unreal Engine 4.27.2

I need to use Unreal 4 because AirSim is only compatible with this version of Unreal.
I have tried verifying using the dropdown on the Unreal launch button but still no luck with building the project.

Make sure you are not using the legacy build system in the xcode project settings. I had a similar issue and that fixed it.

1 Like

That got me past this error. Unfortunately for me there are more errors to debug :cry:

Glad I could help hopefully you don’t have the utf-16 character issues I had moving code from windows to mac. Good luck with the remainder of your errors, hopefully they won’t be too hard to fix.

One possibility is just to regenerate your project files via GenerateProjectFiles.sh. This worked for me several times. However, I do find the re-occurrence of the error mysterious.