您好我试图通过“应用程序加载器”为 Mac Store 存储 MonoMac 二进制代码。我可以提交应用程序,但“Itunes Connect”中的状态将始终显示“Invalid Binary”!我必须手动执行此操作的原因是因为 MonoMac 签名中存在错误。但是我已经开始拉头了,因为它已经过了一天半。
我还收到一封电子邮件说:
无效签名 - 主要应用程序包路径纸张 Tanks.app 处的纸箱已签名但签名无效。
如果我尝试用这个签署二进制文件,“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“第三方 Mac 开发者应用程序:Andrew Witte”“--resource-rules=.../AppStore/Paper Tanks.app/Contents/Resources/ResourceRules.plist”“..../AppStore/Paper Tanks.app”
然后我编码签署内部单声道 posix lib,因为最后一步似乎没有。
codesign -v --force --sign“第三方 Mac 开发者应用程序:Andrew Witte”.../AppStore/Paper\Tanks.app/Contents/Resources/libMonoPosixHelper.dylib
然后我建立并签署 pkg:
productbuild --component“.../AppStore/Paper Tanks.app”/Applications --sign“第三方 Mac 开发者安装程序:Andrew Witte”“.../AppStore/PaperTanks_OSX-0.1.pkg”