3

I'm implementing APNS (iOS5, Xcode4) into an application and I'm getting the error:

"The executable was signed with invalid entitlements."  

Research on SO and google is telling me to use Entitlements.plist but I already have Appname.Entitlements, the keys seem to be pretty much identical, and unless I'm missing something adding an Entitlements file is gone from the new file templates.

So What is the difference between these two? Do I need to just add a plist name "Entitlements"?

Also to verify:

-- My provisioning profile supports APNS. -- I am using the correct Distribution profile. -- I'll be doing an Enterprise distribution.

4

1 回答 1

1

根据技术说明 TN2250,您应该只删除权利文件。

如果您在 Target > Build Settings 中定义自定义代码签名权利文件,您可以尝试完全删除该配置并重新构建/重新提交。通常情况下,代码签名权利的定义是不必要的。如果您的应用程序使用自定义钥匙串访问共享或 iCloud,您只需指定自定义代码签名权利文件。否则,请从 Xcode 项目的 Target > Build Settings 上的所有构建配置中删除 Code Signing Entitlements 配置,重新构建并重新尝试提交/验证。

于 2012-08-17T16:45:30.210 回答