UE4 iOS打包报错:UATHelper: Packaging (iOS): error: Entitlements file “Game.entitlements” was modified during the build, which is not supported

报错信息如下:
UATHelper: Packaging (iOS): error: Entitlements file "Game.entitlements" was modified during the build, which is not supported. You can disable this error by setting 'CODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION' to 'YES', however this may cause the built product's code signature or provisioning profile to contain incorrect entitlements. (in target 'Game' fro
m project 'Game')

需要修改UBT源码,位置在XCodeProject.cs中AppendProjectBuildConfiguration方法内,大概在第956行

Content.Append("\t\t\t\tCODE_SIGN_ALLOW_ENTITLEMENTS_MODIFICATION = YES;" + ProjectFileGenerator.NewLine);

然后重新编译UBT,重新用UE4打包ipa。

修改UBT可参考这篇文章:
魔改UE4引擎UBT使其支持Swift和Objective-C混编

发表评论

[/0o0] [..^v^..] [0_0] [T.T] [=3-❤] [❤.❤] [^v^] [-.0] [!- -] [=x=] [→_→] [><] 更多 »
昵称

抢沙发~