When Migrating 4.26 project to 4.27.2 when using Mobile Preview for IOS the Editor Crashes

Hi, when I migrated project from 4.26 to 4.27.2 when I turn on mobile preview for iOS in the editor and hit play the editor crashes and gives me the following error code:

"LoginId:cadaf1345448a43bb2c52f994c0a45c7
EpicAccountId:1cc7f202fc7c43c49503cfaf328142aa

Fatal error: [File:/Users/build/Build/++UE4/Sync/Engine/Source/Runtime/Apple/MetalRHI/Private/MetalRenderPass.cpp] [Line: 327] Failed to restart render pass with descriptor: <MTLRenderPassDescriptorInternal: 0x60000249ce10> Color Attachment 0 texture = <GFX10_MtlTexture: 0x7fc5146f6f30> label = textureType = MTLTextureType2D pixelFormat = MTLPixelFormatRGB10A2Unorm width = 1909 height = 1264 depth = 1 arrayLength = 1 mipmapLevelCount = 1 sampleCount = 1 cpuCacheMode = MTLCPUCacheModeDefaultCache storageMode = MTLStorageModePrivate hazardTrackingMode = MTLHazardTrackingModeTracked resourceOptions = MTLResourceCPUCacheModeDefaultCache MTLResourceStorageModePrivate MTLResourceHazardTrackingModeTracked usage = MTLTextureUsageShaderRead MTLTextureUsageRenderTarget shareable = 0 framebufferOnly = 0 purgeableState = MTLPurgeableStateNonVolatile swizzle = [MTLTextureSwizzleRed, MTLTextureSwizzleGreen, MTLTextureSwizzleBlue, MTLTextureSwizzleAlpha] isCompressed = 0 parentTexture = parentRelativeLevel = 0 parentRelativeSlice = 0 buffer = bufferOffset = 0 bufferBytesPerRow = 0 iosurface = 0x0 iosurfacePlane = 0 allowGPUOptimizedContents = YES level = 0 slice = 0 depthPlane = 0 resolveTexture = resolveLevel = 0 resolveSlice = 0 resolveDepthPlane = 0 loadAction = MTLLoadActionClear storeAction = MTLStoreActionUnknown storeActionOptions = none clearColor = (0 0 0 0) yInvert = NO Color Attachment 1 texture = level = 0 slice = 0 depthPlane = 0 resolveTexture = resolveLevel = 0 resolveSlice = 0 resolveDepthPlane = 0 loadAction = MTLLoadActionClear storeAction = MTLStoreActionStore storeActionOptions = none clearColor = (0 0 0 0) yInvert = NO Color Attachment 2 texture = level = 0 slice = 0 depthPlane = 0 resolveTexture = resolveLevel = 0 resolveSlice = 0 resolveDepthPlane = 0 loadAction = MTLLoadActionClear storeAction = MTLStoreActionStore storeActionOptions = none clearColor = (0 0 0 0) yInvert = NO Color Attachment 3 texture = level = 0 slice = 0 depthPlane = 0 resolveTexture = resolveLevel = 0 resolveSlice = 0 resolveDepthPlane = 0 loadAction = MTLLoadActionClear storeAction = MTLStoreActionStore storeActionOptions = none clearColor = (0 0 0 0) yInvert = NO Color Attachment 4 texture = level = 0 slice = 0 depthPlane = 0 resolveTexture = resolveLevel = 0 resolveSlice = 0 resolveDepthPlane = 0 loadAction = MTLLoadActionClear storeAction = MTLStoreActionStore storeActionOptions = none clearColor = (0 0 0 0) yInvert = NO Color Attachment 5 texture = level = 0 slice = 0 depthPlane = 0 resolveTexture = resolveLevel = 0 resolveSlice = 0 resolveDepthPlane = 0 loadAction = MTLLoadActionClear storeAction = MTLStoreActionStore storeActionOptions = none clearColor = (0 0 0 0) yInvert = NO Color Attachment 6 texture = level = 0 slice = 0 depthPlane = 0 resolveTexture = resolveLevel = 0 resolveS

FGenericPlatformMisc::RaiseException(unsigned int) Address = 0x1027882b7 (filename not found) [in UE4Editor-Core.dylib]
FMacErrorOutputDevice::Serialize(char16_t const*, ELogVerbosity::Type, FName const&) Address = 0x102941e53 (filename not found) [in UE4Editor-Core.dylib]
FOutputDevice::LogfImpl(char16_t const*, …) Address = 0x102a5b689 (filename not found) [in UE4Editor-Core.dylib]
auto FMetalRenderPass::RestartRenderPass(mtlpp::RenderPassDescriptor)::$_14::operator()<FLogCategoryLogMetal, char16_t [50], char16_t const*>(FLogCategoryLogMetal const&, char16_t const (&) [50], char16_t const* const&) const Address = 0x13d9f6096 (filename not found) [in UE4Editor-MetalRHI.dylib]
FMetalRenderPass::RestartRenderPass(mtlpp::RenderPassDescriptor) Address = 0x13d9f4798 (filename not found) [in UE4Editor-MetalRHI.dylib]
FMetalRenderPass::ConditionalSwitchToRender() Address = 0x13d9f67e6 (filename not found) [in UE4Editor-MetalRHI.dylib]
FMetalRenderPass::DrawIndexedPrimitive(FMetalBuffer const&, unsigned int, unsigned int, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) Address = 0x13d9fcc83 (filename not found) [in UE4Editor-MetalRHI.dylib]
FMetalRHICommandContext::RHIDrawIndexedPrimitive(FRHIIndexBuffer*, int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned int) Address = 0x13d974c80 (filename not found) [in UE4Editor-MetalRHI.dylib]
FRHICommandDrawIndexedPrimitive::Execute(FRHICommandListBase&) Address = 0x1050386e4 (filename not found) [in UE4Editor-RHI.dylib]
FRHICommand<FRHICommandDrawIndexedPrimitive, FRHICommandDrawIndexedPrimitiveString1033>::ExecuteAndDestruct(FRHICommandListBase&, FRHICommandListDebugContext&) Address = 0x11a2176e2 (filename not found) [in UE4Editor-Renderer.dylib]
FRHICommandListExecutor::ExecuteInner_DoExecute(FRHICommandListBase&) Address = 0x10503c4fb (filename not found) [in UE4Editor-RHI.dylib]
FExecuteRHIThreadTask::DoTask(ENamedThreads::Type, TRefCountPtr const&) Address = 0x1050a7827 (filename not found) [in UE4Editor-RHI.dylib]
TGraphTask::ExecuteTask(TArray<FBaseGraphTask*, TSizedDefaultAllocator<32> >&, ENamedThreads::Type) Address = 0x1050a6e6c (filename not found) [in UE4Editor-RHI.dylib]
FNamedTaskThread::ProcessTasksNamedThread(int, bool) Address = 0x102715bf9 (filename not found) [in UE4Editor-Core.dylib]
FNamedTaskThread::ProcessTasksUntilQuit(int) Address = 0x102714040 (filename not found) [in UE4Editor-Core.dylib]
FRHIThread::Run() Address = 0x104af8336 (filename not found) [in UE4Editor-RenderCore.dylib]
FRunnableThreadPThread::Run() Address = 0x102843a18 (filename not found) [in UE4Editor-Core.dylib]
FRunnableThreadPThread::_ThreadProc(void*) Address = 0x1027b4b84 (filename not found) [in UE4Editor-Core.dylib]
_pthread_start Address = 0x7fff2033d8fc (filename not found) [in libsystem_pthread.dylib]
thread_start Address = 0x7fff20339443 (filename not found) [in libsystem_pthread.dylib]"

Steps to reproduce:

  1. Open UE Launcher, Click open 4.27.2

  1. Click on 4.26 project, and click button to copy project and covert to 4.27.2

  1. Click IOS preview button in the editor and click play

  2. The Editor crashes, closes down unreal engine and then you get the following error message:

Any help in the right direction would be greatly appreciated. I tried alot of things online, I recoveted the project, disabled plugins… played around in config settings. still no fix. if someone can help me in the right direction, and also what can help me learn how to read error codes in the future. Thank you.

PS I also want to point out that my project size changes by alot when. moving from 4.26 to 4.27.2, from 40GB in 4.26. to 26GB in 4.27.2. The content folder still stays the same size in both versions about 4GB.