# Remote Connection to Mac doesn't work on 4.13 and iOS 10

**URL:** <https://forums.unrealengine.com/t/remote-connection-to-mac-doesnt-work-on-4-13-and-ios-10/370480>\
**Category:** Mobile\
**Tags:** unreal-engine, packaging-projects, question\
**Created:** [September 14, 2016, 11:06pm UTC](https://forums.unrealengine.com/t/remote-connection-to-mac-doesnt-work-on-4-13-and-ios-10/370480 "2016-09-14T23:06:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![gameDNA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamedna/32/1209504_2.png) [@gameDNA](https://forums.unrealengine.com/u/gameDNA)\
**Post date:** [September 14, 2016, 11:06pm UTC](https://forums.unrealengine.com/t/remote-connection-to-mac-doesnt-work-on-4-13-and-ios-10/370480/1 "2016-09-14T23:06:28Z")

</div>

UE 4.13,  
iOS 10 (for iOS 9.3 it worked),  
Source code project (for Blueprint-only project it works!)

On blank C++ project with remote connection to Mac while packaging project I receive error:

```
UATHelper: Packaging (iOS): UnrealBuildTool: Running SSH on MacMini ... 
UATHelper: Packaging (iOS): UnrealBuildTool: Build settings from command line:
UATHelper: Packaging (iOS): UnrealBuildTool: CODE_SIGN_IDENTITY = iPhone Developer
UATHelper: Packaging (iOS): UnrealBuildTool: IPHONEOS_DEPLOYMENT_TARGET = 6.0
UATHelper: Packaging (iOS): UnrealBuildTool: SDKROOT = iphoneos10.0
UATHelper: Packaging (iOS): UnrealBuildTool: === BUILD TARGET NewSampleProject OF PROJECT UE4_FromPC WITH CONFIGURATION Development ===
UATHelper: Packaging (iOS): UnrealBuildTool: Check dependencies
UATHelper: Packaging (iOS): UnrealBuildTool: NewSampleProject requires a provisioning profile. Select a provisioning profile for the "Development" build configuration in the project editor.
UATHelper: Packaging (iOS): UnrealBuildTool: Code signing is required for product type 'Application' in SDK 'iOS 10.0'
UATHelper: Packaging (iOS): UnrealBuildTool: **BUILD FAILED**
UATHelper: Packaging (iOS): UnrealBuildTool: The following build commands failed:
UATHelper: Packaging (iOS): UnrealBuildTool: Check dependencies
UATHelper: Packaging (iOS): UnrealBuildTool: (1 failure)
UATHelper: Packaging (iOS): UnrealBuildTool: Execute took 00:00:08.3870359
UATHelper: Packaging (iOS): UnrealBuildTool: IPP ERROR: RPCCommand MakeApp failed with return code Error_RemoteCertificatesNotFound

```

but provision and certificate are valid!

And directly on Mac it works so the only problem is with Rsync.

---

<div class="post-metadata">

**Author:** ![FacePalm.exe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/facepalm.exe/32/943016_2.png) [@FacePalm.exe](https://forums.unrealengine.com/u/FacePalm.exe)\
**Post date:** [September 15, 2016, 1:14am UTC](https://forums.unrealengine.com/t/remote-connection-to-mac-doesnt-work-on-4-13-and-ios-10/370480/2 "2016-09-15T01:14:02Z")

</div>

So I also had this issue, and found a temporary solution.

Note that this is not a final solution, as this change breaks distro signing, but it got me up and running again.

TEAM\_ID should be replaced with the identifier you can find in the provisioning profile. (E.G. if the full ID in the profile is ‘ABCDEFGHIJK.com.CompanyName.GameName’ then it will be ABCDEFGHIJK)

Have a massive code block:

```
// Engine\Source\Programs\UnrealBuildTool\System\XcodeProject.cs

private void AppendProjectSection(StringBuilder Content, string TargetName, string TargetGuid, string BuildTargetName, string BuildTargetGuid, string IndexTargetName, string IndexTargetGuid, string MainGroupGuid, string ProductRefGroupGuid, string ProjectGuid, string ProjectBuildConfigGuid)
		{
			Content.Append("/* Begin PBXProject section */" + ProjectFileGenerator.NewLine);

			Content.Append("\t\t" + ProjectGuid + " /* Project object */ = {" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\tisa = PBXProject;" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\tattributes = {" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\t\tLastUpgradeCheck = 0700;" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\t\tORGANIZATIONNAME = \"Epic Games, Inc.\";" + ProjectFileGenerator.NewLine);
#if true // UG_CHANGE
			Content.Append("\t\t\t\tTargetAttributes = {" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\t\t\t" + TargetGuid + " = {" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\t\t\t\tCreatedOnToolsVersion = 8.0;" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\t\t\t\tDevelopmentTeam = TEAM_ID;" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\t\t\t\tProvisioningStyle = Automatic;" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\t\t\t};" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\t\t};" + ProjectFileGenerator.NewLine);
#endif // END UG_CHANGE
            Content.Append("\t\t\t};" + ProjectFileGenerator.NewLine);

...........
 					Content.Append("\t\t\t\t\"TARGETED_DEVICE_FAMILY[sdk=iphoneos*]\" = \"" + IOSRunTimeDevices + "\";" + ProjectFileGenerator.NewLine);
 					Content.Append("\t\t\t\t\"CODE_SIGN_IDENTITY[sdk=iphoneos*]\" = \"iPhone Developer\";" + ProjectFileGenerator.NewLine);
 					Content.Append("\t\t\t\t\"SDKROOT[sdk=iphoneos]\" = iphoneos;" + ProjectFileGenerator.NewLine);
#if true // UG_CHANGE
					//Content.Append("\t\t\t\t\"PROVISIONING_PROFILE[sdk=iphoneos*]\" = \"\";" + ProjectFileGenerator.NewLine);

#endif // END UG_CHANGE
                 }
                 if (TVOSRunTimeVersion != null)

........

			Content.Append("\t\t\t\tMACOSX_DEPLOYMENT_TARGET = " + MacToolChain.MacOSVersion + ";" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\t\tSDKROOT = macosx;" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\t\tGCC_PRECOMPILE_PREFIX_HEADER = YES;" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\t\tGCC_PREFIX_HEADER = \"" + UE4Dir + "/Engine/Source/Editor/UnrealEd/Public/UnrealEd.h\";" + ProjectFileGenerator.NewLine);
#if true // UG_CHANGE
			Content.Append("\t\t\t\tDEVELOPMENT_TEAM = TEAM_ID;" + ProjectFileGenerator.NewLine);
#endif // END UG_CHANGE
            Content.Append("\t\t\t};" + ProjectFileGenerator.NewLine);

..........

			Content.Append("\t\t\t\tUE_BUILD_TARGET_NAME = \"" + Config.BuildTarget + "\";" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\t\tUE_BUILD_TARGET_CONFIG = \"" + Config.BuildConfig + "\";" + ProjectFileGenerator.NewLine);
#if true // UG_CHANGE
			Content.Append("\t\t\t\tDEVELOPMENT_TEAM = TEAM_ID;" + ProjectFileGenerator.NewLine);
#endif // END UG_CHANGE
			Content.Append("\t\t\t};" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t\tname = \"" + Config.DisplayName + "\";" + ProjectFileGenerator.NewLine);
			Content.Append("\t\t};" + ProjectFileGenerator.NewLine);

```

This relies on automatic signing to sign the IPA, which isn’t ideal. (As it doesn’t let you sign specifically with the Distro certificate)  
We’re currently working on a better solution which uses manual signing, however this should get you up and working again.

Hope that helps. 🙂

EDIT: As @gameDNA studio mentions in his answer if this doesn’t work at first, use the TEAM\_ID from your Distro profile.

---

<div class="post-metadata">

**Author:** ![gameDNA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamedna/32/1209504_2.png) [@gameDNA](https://forums.unrealengine.com/u/gameDNA)\
**Post date:** [September 15, 2016, 2:38pm UTC](https://forums.unrealengine.com/t/remote-connection-to-mac-doesnt-work-on-4-13-and-ios-10/370480/3 "2016-09-15T14:38:36Z")

</div>

Unfortunately it doesn’t helped me ☹

---

<div class="post-metadata">

**Author:** ![FacePalm.exe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/facepalm.exe/32/943016_2.png) [@FacePalm.exe](https://forums.unrealengine.com/u/FacePalm.exe)\
**Post date:** [September 16, 2016, 3:58am UTC](https://forums.unrealengine.com/t/remote-connection-to-mac-doesnt-work-on-4-13-and-ios-10/370480/4 "2016-09-16T03:58:00Z")

</div>

This continues on from a PM convo, as @gameDNA studio no longer has space in their PM box. (And I have no idea how to contact them outside of that.)

I guess an explanation is required:

The part that is failing is the signing of the binary on the mac using the xcode project that UE4 generates.

specifically this command:

```
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project UE4_FromPC.xcodeproj -configuration "Development" -target 'GAMENAME' -destination generic/platform=iOS -sdk iphoneos CODE_SIGN_IDENTITY="iPhone Developer" IPHONEOS_DEPLOYMENT_TARGET="6.0"

```

Unreal signs the stub ipa before sending it back to your PC, which because Apple changed the signing process in XCode 8.0, now fails.  
Remote building is the only time this project gets used.

Have a look at: /Users/USERNAME/UE4/Builds/PATH/TO/GAME/GAMENAME/Binaries/IOS/UE4\_FromPC.xcodeproj

This is the project that gets generated.

What you’ll have to do next is show the UE4\_FromPC.xcodeproj package contents, create a copy of project.pbxproj somewhere, then open UE4\_FromPC.xcodeproj, go to the general settings of the target and turn on managed signing and make sure it’s automatic.

Then diff the old and new versions of the project.pbxproj file and replicate the differences in the Engine\Source\Programs\UnrealBuildTool\System\XcodeProject.cs file

Make sure you use the correct UID’s if you add a section.

the tl;dr is it’s not the certificates that are the issue, but the generated project.

Have fun figuring it out. 😛

---

<div class="post-metadata">

**Author:** ![gameDNA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamedna/32/1209504_2.png) [@gameDNA](https://forums.unrealengine.com/u/gameDNA)\
**Post date:** [September 16, 2016, 2:58pm UTC](https://forums.unrealengine.com/t/remote-connection-to-mac-doesnt-work-on-4-13-and-ios-10/370480/5 "2016-09-16T14:58:34Z")

</div>

Still doesn’t work ☹ But interesting is that UE4\_FromPC.xcodeproj directly on Mac also doesn’t package… But if I create new Xcode sample project with the same identifier and provision profile it works… So it’s definitely a problem with generating Xcode project by UE4.

---

<div class="post-metadata">

**Author:** ![gameDNA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamedna/32/1209504_2.png) [@gameDNA](https://forums.unrealengine.com/u/gameDNA)\
**Post date:** [September 16, 2016, 7:09pm UTC](https://forums.unrealengine.com/t/remote-connection-to-mac-doesnt-work-on-4-13-and-ios-10/370480/6 "2016-09-16T19:09:57Z")

</div>

OK, I investigated issue.

Indeed changes by FacePalm.exe (thank you!) to XcodeProject.cs works… I previously provided development TEAMID because I was doing dev build… but it looks like it should be always production TEAMID even if you are packaging build for dev…

Still this is only workaround because it requires modyfiying code (problem exists also in Launcher engine version) and moreover TEAMID is hardcoded…

So Epic please fix this ASAP because this issue is critical for iOS devs with Rsync enabled.

Thank you.

---

<div class="post-metadata">

**Author:** ![Kunani\_Gaming](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Kunani\_Gaming](https://forums.unrealengine.com/u/Kunani_Gaming)\
**Post date:** [September 17, 2016, 3:28am UTC](https://forums.unrealengine.com/t/remote-connection-to-mac-doesnt-work-on-4-13-and-ios-10/370480/7 "2016-09-17T03:28:19Z")

</div>

Same here. Xcode 8 has broken remote build.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_61b4a355](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_61b4a355](https://forums.unrealengine.com/u/anonymous_user_61b4a355)\
**Post date:** [September 19, 2016, 5:28pm UTC](https://forums.unrealengine.com/t/remote-connection-to-mac-doesnt-work-on-4-13-and-ios-10/370480/8 "2016-09-19T17:28:18Z")

</div>

Hey everybody,

I was able to recreate the issue and submitted a issue report for it. You can follow it here:

[https://issues.unrealengine.com/issue/UE-36149](https://issues.unrealengine.com/issue/UE-36149)

There is also a couple more issues related to improving the remote building system as a whole.

---

<div class="post-metadata">

**Author:** ![Ravlek](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ravlek](https://forums.unrealengine.com/u/Ravlek)\
**Post date:** [September 26, 2016, 9:15pm UTC](https://forums.unrealengine.com/t/remote-connection-to-mac-doesnt-work-on-4-13-and-ios-10/370480/9 "2016-09-26T21:15:45Z")

</div>

This is fixed in 4.13.1 which is due out this week. Including distribution signing issues.

-Pete

---

<div class="post-metadata">

**Author:** ![FacePalm.exe](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/facepalm.exe/32/943016_2.png) [@FacePalm.exe](https://forums.unrealengine.com/u/FacePalm.exe)\
**Post date:** [September 27, 2016, 12:10am UTC](https://forums.unrealengine.com/t/remote-connection-to-mac-doesnt-work-on-4-13-and-ios-10/370480/10 "2016-09-27T00:10:38Z")

</div>

For those merging individual fixes, here is the specific change list:

[https://github.com/EpicGames/UnrealEngine/commit/ffddf955a4f9771e2c33e933902321a54276b2c4](https://github.com/EpicGames/UnrealEngine/commit/ffddf955a4f9771e2c33e933902321a54276b2c4)

---

<div class="post-metadata">

**Author:** ![Shaikh\_Mujahid](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shaikh\_Mujahid](https://forums.unrealengine.com/u/Shaikh_Mujahid)\
**Post date:** [August 4, 2017, 6:10am UTC](https://forums.unrealengine.com/t/remote-connection-to-mac-doesnt-work-on-4-13-and-ios-10/370480/11 "2017-08-04T06:10:18Z")

</div>

which difference are you talking about FacePalm.exe in project.pbxproj file.
