gpt4 book ai didi

macos - MonoMac 使用 "codesign"为 Mac Store 签名。 (无效的二进制文件)

转载 作者:行者123 更新时间:2023-12-02 00:19:34 28 4
gpt4 key购买 nike

您好,我正在尝试通过“Application Loader”为 Mac Store 的 MonoMac 二进制文件进行代码签名。我可以提交应用程序,但“Itunes Connect”中的状态总是显示“无效二进制文件”!?我必须手动执行此操作的原因是 MonoMac 签名中存在错误。但我现在开始担心了,因为已经过去了一天半。

我还收到一封电子邮件说:

Invalid Signature - the main app bundle Paper Tanks at path Paper Tanks.app is signed but the signature is invalid.

如果我尝试用这个对二进制文件进行签名,“Application Loader”会报错:

codesign -v --force --sign "A72F25F56B7D6C43332AE795288EA092009BE737" "--resource-rules=/Users/Andrew/Reign/Games/papertanks/PaperTanks_OSX/PaperTanks_OSX/bin/AppStore/Paper Tanks.app/Contents/Resources/ResourceRules.plist" --entitlements "/Users/Andrew/Reign/Games/papertanks/PaperTanks_OSX/PaperTanks_OSX/bin/AppStore/Paper Tanks.xcent" "/Users/Andrew/Reign/Games/papertanks/PaperTanks_OSX/PaperTanks_OSX/bin/AppStore/Paper Tanks.app"

Application Loader error = "Invalid Code Signing Entitlements. The entitlements in your app bundle signature do not match the ones that are contained in the provisioning profile. The bundle contains a key that is not included in the provisioning profile: 'com.apple.application-indetifier' in Paper Tanks.app/Contents/macOS/Paper Tanks'."

因为上面的步骤失败了,所以我像这样对应用程序进行代码签名:

codesign -v --force --sign "3rd Party Mac Developer Application: Andrew Witte" "--resource-rules=.../AppStore/Paper Tanks.app/Contents/Resources/ResourceRules.plist" "..../AppStore/Paper Tanks.app"

然后我对内部单声道 posix 库进行代码签名,因为最后一步似乎没有。

codesign -v --force --sign "3rd Party Mac Developer Application: Andrew Witte" .../AppStore/Paper\ Tanks.app/Contents/Resources/libMonoPosixHelper.dylib

然后我构建并签署 pkg:

productbuild --component ".../AppStore/Paper Tanks.app" /Applications --sign "3rd Party Mac Developer Installer: Andrew Witte" ".../AppStore/PaperTanks_OSX-0.1.pkg"

最佳答案

我升级到 Xcode 4.4 解决了这个问题

关于macos - MonoMac 使用 "codesign"为 Mac Store 签名。 (无效的二进制文件),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11535427/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com