1. ERROR:Remote compiling requires a server name. Use the editor (Project Settings > IOS) to set up your remote compilation settings.
解决方法:
找到引擎的Engine/Config/BaseEngine.ini做如下配置:
[/Script/IOSRuntimeSetting.IOSRuntimeSetttings]
RemoteServerName=
RSyncUserName=
2.ERROR: Unable to find mobile provision for UE4Game.
解决方法:
找到引擎的Engine/Config/BaseEngine.ini做如下配置:
[/Script/IOSRuntimeSetting.IOSRuntimeSetttings]
MobileProvision="这里填写.mobileprovision文件的路径" // 其中.mobileprovision文件一般存放位置为:C:Users<you>AppDataLocalApple ComputerMobileDeviceProvisioning Profiles
3.Check dependencies :Code Signing Error: Provisioning profile "dev-com.xxxx.*" has app ID "com.xxxx.*", which does not match the bundle ID "com.YourCompany.UE4Game".
Code Signing Error: Provisioning profile "dev-com.xxxx.*" doesn't match the entitlements file's value for the application-identifier entitlement.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 12.1'
解决方法:
找到引擎的Engine/Config/BaseEngine.ini做如下配置:
[/Script/IOSRuntimeSetting.IOSRuntimeSetttings]
BundleIdentifier=com.xxxx.[PROJECT_NAME]
4.在使用BuildGraph命令来打包含iOS平台的安装版引擎时,需显式指定参数-set:WithIOS=true否则打包出来的引擎不会包含iOS平台
5.[MT] DVTPlugInLoading: Failed to load code for plug-in com.apple.dt.IDE.IDEInterfaceBuilderAppleTVIntegration (/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/Library/Xcode/PrivatePlugIns/IDEInterfaceBuilderAppleTVIntegration.ideplugin), error = Error Domain=NSCocoaErrorDomain Code=3587 "dlopen_preflight(/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform/Developer/Library/Xcode/PrivatePlugIns/IDEInterfaceBuilderAppleTVIntegration.ideplugin/Contents/MacOS/IDEInterfaceBuilderAppleTVIntegration): Library not loaded: /Library/Developer/PrivateFrameworks/CoreSimulator.framework/Versions/A/CoreSimulator
解决方法:
由于mac机器是新申请的,在安装了xcode之后并未启动,所以需要去应用程序中找到Xcode,双击安装,然后会提示安装所需的一些组件,点击安装即可。
6.Code Signing. It may have been revoked or expired. Code Signing is required for product type 'Application' in SDK 'iOS 12.1'
解决方法:
使用源码版引擎新建一个项目,然后在Project Settings > iOS 中配置远程连接mac相关设置,点击生成ssh key
7.Code Signing. It may have been revoked or expired. Code Signing is required for product type 'Application' in SDK 'iOS 12.1'
解决方法:
经查发现新mac机器上并未安装WDRC( Apple Worldwide Developer Relations Certification Authority)证书,该证书是苹果颁发给 iOS 开发者的证书的根证书。 AppleWWDRCA.cer 就是开发者证书的根证书。它在安装 Xcode 的时候自动安装了。 如果发现它失效了,您需要自己到苹果公司官网下载,并进行安装。很奇怪的是在新mac机器上安装Xcode时并未自动安装或者提示安装,所以只能去手动下载和安装,下载地址为https://developer.apple.com/certificationauthority/AppleWWDRCA.cer
参考资料:
iOS证书: http://blog.fpliu.com/it/os/ios/certificate
WDRC 证书一定要在系统钥匙串:https://juejin.im/post/5c00f593f265da616301caf8
提示"此证书的签发者无效",原因系统认证证书(AppleWWDRCA.cer)过期:https://my.oschina.net/sfandy/blog/617139
8.The following build commands failed: CodeSign /Users/a4399/UE4/Builds/7050-PC/D/UESource/CustomEngine/Engine/Binaries/IOS/Payload/UE4Game.app
解决方法:
删掉Engine/Intermediate/Remote/UE4Game/IOS目录之后重新打包引擎
9.Warning: unable to build chain to self-signed root for signer”
解决方法:
将WDRC 证书的信任设置更改为【使用系统默认】
参考资料:
https://www.thinbug.com/q/47307416
https://www.jianshu.com/p/ea4a80c0afbb
https://stackoverflow.com/questions/48911289/warning-unable-to-build-chain-to-self-signed-root-for-signer-warning-in-xcode