Unreal engine 4 remote build fail

I have used ios remote build on 4.16, it works perfect,
after I upgrade my mac to xcode 9, and upgrade unreal engine to 4.18.

the remote build will fail, the error message:
Code Signing Error: Signing certificate is invalid. Signing certificate “iPhone Developer: xufei Wu (LNK5H65BHN)”, serial number “65156021F8E07D3F”, is not valid for code signing. It may have been revoked or expired.

but, when I run the command direct on mac, it will success, the command is :

/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project UE4_FromPC.xcodeproj -configuration “Development” -target ‘UEBuildTest’ -destination generic/platform=iOS -sdk iphoneos CODE_SIGN_IDENTITY=“iPhone Developer” IPHONEOS_DEPLOYMENT_TARGET=“6.0” PROVISIONING_PROFILE=ed1c3569-9954-4e45-b9f6-3bd07ee35ae2

finaly, I fixed this problem. I found 4.18 is not work as 4.16,
4.18 will copy the System.keychain to UE4TempKeychain.keychain, and then use this temp keychain.
so I drag all the apple certification in login to the system keychain.
then remote build success!!
I struggle this problem 3 days, hope will help other people.

Can you explain how to get system.keychain to copy over? I think I am having this problem as well and it has taken 2 days of time from development.