大佬教程收集整理的这篇文章主要介绍了Xcode 4.1代码签名问题,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
基本上,当我归档我的Mac应用程序时,它会遍历所有正常的进程.构建成功.但是,当我提交给应用商店时,我会收到以下消息:
Invalid Code Signing Entitlements - Your application bundle's signature contains code signing entitlements that are not supported on @R_874_4558@; this may happen if your @R_874_4558@ project was ported from iOs. Please check your Xcode project's code signing entitlements configuration,and remove any unneeded entitlements. Specifically,key "application-identifier" in "My App" is not supported.
我的应用程序没有从iOS移植,我从来没有设置权限.经过许多小时的挖掘,我发现代码符号阶段正在以下列格式生成@L_675_0@.xcent文件:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <Dict> <key>application-identifier</key> <String>My.App.Identifier</String> <key>com.apple.application-identifier</key> <String>My.App.Identifier</String> </Dict> </plist>
第@L_675_0@关键是导致问题的关键.当我删除它,并通过命令行强制使用相同的.xcent文件重命名该应用程序,然后该应用程序通过.
我已经删除并重新安装了xcode,看看是否有帮助…它没有.
我知道这个文件创建与配置配置文件有关.它似乎正在获取正确的数据,但@L_197_15@现有的标签.我已经检查了项目和构建设置,并且根本没有代码签名授权.任何想法如何可以让Xcode停止生成这个密钥?每次我想提交到应用商店时,我都不太喜欢这样做.
看起来像在构建过程中,.xcent文件是从位于/Developer/Platforms/MacOSX.platform/Entitlements.plist的文件生成的(它也可能位于/Applications/Xcode.app/Contents/Developer/Platforms/ MacOSX.platform / Entitlements.plist).
我编辑了这个文件,并用“com.apple.application-identifier”替换了“application-identifier”.
所以现在.xcent文件只包含:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <Dict> <key>com.apple.application-identifier</key> <String>33R9UFHX3C.com.mycompany.myapp</String> </Dict> </plist>
以上是大佬教程为你收集整理的Xcode 4.1代码签名问题全部内容,希望文章能够帮你解决Xcode 4.1代码签名问题所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。