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

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. :stuck_out_tongue: