Issues cooking for distribution (development succeeds)

Hi all,

I’m getting an error when trying to package my project for distribution. It works absolutely fine on development packaging mode but when I switch to shipping it fails. These are the error messages that show up:

UATHelper: Packaging (iOS):   LogShaders: Error: Archiving failed: Copy object file to remote failed for file:"../../../../Users/aless/Documents/Unreal Projects/NEurocub3R/Saved/Shaders/SF_METAL/ShaderDebug-Global-SF_METAL/NativeLibrary/SF_METAL/Main_00001f64_f5d9c2d2.o"
UATHelper: Packaging (iOS):   LogShaders: Error: Archiving failed: no valid input for metallib.
PackagingResults: Error: Archiving failed: Copy object file to remote failed for file:"../../../../Users/aless/Documents/Unreal Projects/NEurocub3R/Saved/Shaders/SF_METAL/ShaderDebug-Global-SF_METAL/NativeLibrary/SF_METAL/Main_00001f64_f5d9c2d2.o"
PackagingResults: Error: Archiving failed: no valid input for metallib.
UATHelper: Packaging (iOS):   CookResults: Error: Package Native Shader Library failed for IOS.
PackagingResults: Error: Package Native Shader Library failed for IOS.

Has anyone received this shady error related to the native shader library / metallib before? Any ideas of how to solve it?

Background: I’m running version 4.20.2 of the engine compiled from source on a PC, and using a remote mac for compiling to IOS.

Thanks in advance

Resolved: The issue was that I was using a development provision with a distribution certificate. You need to remember to have the distribution version of both the certificate and the provision in the Apple developer portal.