# Issue getting TestFlight build to not crash right away (but local Xcode build works fine)

**URL:** <https://forums.unrealengine.com/t/issue-getting-testflight-build-to-not-crash-right-away-but-local-xcode-build-works-fine/2531633>\
**Category:** Mobile\
**Tags:** xcode, unreal-engine, iOS, question\
**Created:** [May 28, 2025, 3:56pm UTC](https://forums.unrealengine.com/t/issue-getting-testflight-build-to-not-crash-right-away-but-local-xcode-build-works-fine/2531633 "2025-05-28T15:56:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![xtbromasterx](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@xtbromasterx](https://forums.unrealengine.com/u/xtbromasterx)\
**Post date:** [May 28, 2025, 3:56pm UTC](https://forums.unrealengine.com/t/issue-getting-testflight-build-to-not-crash-right-away-but-local-xcode-build-works-fine/2531633/1 "2025-05-28T15:56:28Z")

</div>

So I recently updated my project to Unreal 5.4 and am attempting to package my project to send to the Apple App Store but I am running into an issue. When I use cmd+r to run the game on a locally connected device it works totally fine. I am able to disconnect the phone and the game works great, connects to the database that I have set up and everything. When I then select “archive” inn Xcode, distribute the app to TestFlight, and then download the app from TestFlight, it crashes immediately after the Unreal Splash Screen. I grabbed the console log that it looks like it is getting stuck on from Xcode, but I am having trouble figuring out exactly how to fix the TestFlight build. Any suggestions would be appreciated. Thanks

This is the console log message that is getting sent several times before it crashes:

Modifying properties of a view’s layer off the main thread is not allowed: view \<FIOSView: 0x157238000\> with nearest ancestor view controller \<IOSViewController: 0x157040000\>; backtrace:  
(  
0 UIKitCore 0x000000019b126a8c 96636F64-106F-30C8-A780-82DCEBB0F443 + 6154892  
1 UIKitCore 0x000000019ab61048 96636F64-106F-30C8-A780-82DCEBB0F443 + 102472  
2 QuartzCore 0x0000000199de1db8 109010DA-3C35-3E22-B001-939786412EE2 + 69048  
3 QuartzCore 0x0000000199de19d4 109010DA-3C35-3E22-B001-939786412EE2 + 68052  
4 QuartzCore 0x0000000199e7cfa0 109010DA-3C35-3E22-B001-939786412EE2 + 704416  
5 UIKitCore 0x000000019ab66cc8 96636F64-106F-30C8-A780-82DCEBB0F443 + 126152  
6 CosmosChallenge-IOS-Shipping 0x00000001050b5378 \_ZN3Aws8Endpoint23DefaultEndpointProviderINS\_6Client26GenericClientConfigurationILb0EEENS0\_17BuiltInParametersENS0\_23ClientContextParametersEE16OverrideEndpointERKNSt3\_\_112basic\_stringIcNS8\_11char\_traitsIcEENS8\_9allocatorIcEEEE + 6382816  
7 CosmosChallenge-IOS-Shipping 0x00000001050a6b80 \_ZN3Aws8Endpoint23DefaultEndpointProviderINS\_6Client26GenericClientConfigurationILb0EEENS0\_17BuiltInParametersENS0\_23ClientContextParametersEE16OverrideEndpointERKNSt3\_\_112basic\_stringIcNS8\_11char\_traitsIcEENS8\_9allocatorIcEEEE + 6323432  
8 CosmosChallenge-IOS-Shipping 0x00000001050d4924 \_ZN3Aws8Endpoint23DefaultEndpointProviderINS\_6Client26GenericClientConfigurationILb0EEENS0\_17BuiltInParametersENS0\_23ClientContextParametersEE16OverrideEndpointERKNSt3\_\_112basic\_stringIcNS8\_11char\_traitsIcEENS8\_9allocatorIcEEEE + 6511244  
9 CosmosChallenge-IOS-Shipping 0x0000000107fbff88 \_ZN3Aws8Endpoint23DefaultEndpointProviderINS\_6Client26GenericClientConfigurationILb0EEENS0\_17BuiltInParametersENS0\_23ClientContextParametersEE16OverrideEndpointERKNSt3\_\_112basic\_stringIcNS8\_11char\_traitsIcEENS8\_9allocatorIcEEEE + 55709936  
10 CosmosChallenge-IOS-Shipping 0x0000000107fbfdac \_ZN3Aws8Endpoint23DefaultEndpointProviderINS\_6Client26GenericClientConfigurationILb0EEENS0\_17BuiltInParametersENS0\_23ClientContextParametersEE16OverrideEndpointERKNSt3\_\_112basic\_stringIcNS8\_11char\_traitsIcEENS8\_9allocatorIcEEEE + 55709460  
11 CosmosChallenge-IOS-Shipping 0x0000000104ea6eb4 \_ZN3Aws8Endpoint23DefaultEndpointProviderINS\_6Client26GenericClientConfigurationILb0EEENS0\_17BuiltInParametersENS0\_23ClientContextParametersEE16OverrideEndpointERKNSt3\_\_112basic\_stringIcNS8\_11char\_traitsIcEENS8\_9allocatorIcEEEE + 4227100  
12 CosmosChallenge-IOS-Shipping 0x0000000105039774 \_ZN3Aws8Endpoint23DefaultEndpointProviderINS\_6Client26GenericClientConfigurationILb0EEENS0\_17BuiltInParametersENS0\_23ClientContextParametersEE16OverrideEndpointERKNSt3\_\_112basic\_stringIcNS8\_11char\_traitsIcEENS8\_9allocatorIcEEEE + 5875932  
13 CosmosChallenge-IOS-Shipping 0x00000001081f33c8 \_ZN3Aws8Endpoint23DefaultEndpointProviderINS\_6Client26GenericClientConfigurationILb0EEENS0\_17BuiltInParametersENS0\_23ClientContextParametersEE16OverrideEndpointERKNSt3\_\_112basic\_stringIcNS8\_11char\_traitsIcEENS8\_9allocatorIcEEEE + 58017072  
14 CosmosChallenge-IOS-Shipping 0x00000001081ea7d4 \_ZN3Aws8Endpoint23DefaultEndpointProviderINS\_6Client26GenericClientConfigurationILb0EEENS0\_17BuiltInParametersENS0\_23ClientContextParametersEE16OverrideEndpointERKNSt3\_\_112basic\_stringIcNS8\_11char\_traitsIcEENS8\_9allocatorIcEEEE + 57981244  
15 CosmosChallenge-IOS-Shipping 0x00000001081ea640 \_ZN3Aws8Endpoint23DefaultEndpointProviderINS\_6Client26GenericClientConfigurationILb0EEENS0\_17BuiltInParametersENS0\_23ClientContextParametersEE16OverrideEndpointERKNSt3\_\_112basic\_stringIcNS8\_11char\_traitsIcEENS8\_9allocatorIcEEEE + 57980840  
16 CosmosChallenge-IOS-Shipping 0x00000001050a965c \_ZN3Aws8Endpoint23DefaultEndpointProviderINS\_6Client26GenericClientConfigurationILb0EEENS0\_17BuiltInParametersENS0\_23ClientContextParametersEE16OverrideEndpointERKNSt3\_\_112basic\_stringIcNS8\_11char\_traitsIcEENS8\_9allocatorIcEEEE + 6334404  
17 Foundation 0x0000000196f48804 34DE055D-8683-380A-9198-C3347211D13D + 481284  
18 libsystem\_pthread.dylib 0x000000022297b344 \_pthread\_start + 136  
19 libsystem\_pthread.dylib 0x0000000222978ab8 thread\_start + 8  
)
