# UE5 ERROR: Code Sign Failed for iOS Mobile Build and Deployment to iOS Device from a MAC

**URL:** <https://forums.unrealengine.com/t/ue5-error-code-sign-failed-for-ios-mobile-build-and-deployment-to-ios-device-from-a-mac/664431>\
**Category:** Mobile\
**Tags:** unreal-engine, UE5-0, iOS, question\
**Created:** [October 7, 2022, 3:43pm UTC](https://forums.unrealengine.com/t/ue5-error-code-sign-failed-for-ios-mobile-build-and-deployment-to-ios-device-from-a-mac/664431 "2022-10-07T15:43:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Super\_Scientist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Super\_Scientist](https://forums.unrealengine.com/u/Super_Scientist)\
**Post date:** [October 7, 2022, 3:43pm UTC](https://forums.unrealengine.com/t/ue5-error-code-sign-failed-for-ios-mobile-build-and-deployment-to-ios-device-from-a-mac/664431/1 "2022-10-07T15:43:56Z")

</div>

So far this project is blueprint only and builds and deploys on iOS devices from a PC. I’m trying to get the same project to build and deploy to an iOS device from a Mac but I get the ERROR below. Previously I was getting the “SDK for iOS is not installed properly error” using UE5 and Xcode 14. I followed a work around to use Xcode 13 instead and now I’m getting the error below. Has anyone else run into the same issues? Any ideas on how to resolve it?

UE5.03  
Mac OS 12.6  
Xcode 13.4.1

Command /usr/bin/codesign failed with exit code 1  
LogPlayLevel: \*\* BUILD FAILED \*\*  
LogPlayLevel: The following build commands failed:  
LogPlayLevel: CodeSign /Users/Shared/Epic\ Games/UE\_5.0/Engine/Binaries/IOS/Payload/UnrealGame.app  
LogPlayLevel: (1 failure)  
LogPlayLevel: Took 5.5072160000000006s to run env, ExitCode=65  
LogPlayLevel: Error: ERROR: CodeSign Failed  
LogPlayLevel: AutomationTool executed for 0h 1m 52s  
LogPlayLevel: AutomationTool exiting with ExitCode=32 (Error\_FailedToCodeSign)  
LogPlayLevel: Completed Launch On Stage: Build Task, Time: 113.227007  
LogPlayLevel: Error: RunUAT ERROR: AutomationTool was unable to run successfully. Exited with code: 32  
PackagingResults: Error: Launch failed! Failed to Code Sign

 ![Screen Shot 2022-10-07 at 12.58.11 PM](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/7/5/a7547564d408ee204a09a8bd3f7eab817d16ec0f.png)

---

<div class="post-metadata">

**Author:** ![Super\_Scientist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Super\_Scientist](https://forums.unrealengine.com/u/Super_Scientist)\
**Post date:** [October 11, 2022, 3:16pm UTC](https://forums.unrealengine.com/t/ue5-error-code-sign-failed-for-ios-mobile-build-and-deployment-to-ios-device-from-a-mac/664431/2 "2022-10-11T15:16:22Z")

</div>

Interesting Update…  
I’m running UE 5.0.3 My provisions and certificate work on PC but code signing fails on the MAC. Interesting enough a copy of the exact same project on the Mac code signs correctly using the UE 5.1 Preview version. When I tested it on the 5.1 I got a pop up from keychain access to allow the code signing and I was able to build and deploy to my iPhone for development testing.

---

<div class="post-metadata">

**Author:** ![tbelgrave](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tbelgrave/32/623009_2.png) [@tbelgrave](https://forums.unrealengine.com/u/tbelgrave)\
**Post date:** [April 18, 2023, 11:35am UTC](https://forums.unrealengine.com/t/ue5-error-code-sign-failed-for-ios-mobile-build-and-deployment-to-ios-device-from-a-mac/664431/3 "2023-04-18T11:35:36Z")

</div>

Any ideas why the Codesign Keychain access popup would stop happening? This has been the crux of the above issue for me. It used to popup and built fine.  
 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/1/f/91f921f34ee47e59ee2b5f638a17fec9b1daaba6.png)

Thx

~t

---

<div class="post-metadata">

**Author:** ![Eduardo\_Parente](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Eduardo\_Parente](https://forums.unrealengine.com/u/Eduardo_Parente)\
**Post date:** [August 29, 2023, 5:31pm UTC](https://forums.unrealengine.com/t/ue5-error-code-sign-failed-for-ios-mobile-build-and-deployment-to-ios-device-from-a-mac/664431/4 "2023-08-29T17:31:42Z")

</div>

I had the same problem and managed to solve it. Always when I go to do a project from time to time I save some backups. However, in the file I was working on, the same CodeSign Error happened. So I took my backup and managed to do Development for my iphone. Maybe you can copy your content folder to another new project. I hope it works.
