macos 提交到iTunes connect错误解决方案

    xiaoxiao2022-06-24  31

    没有配置category

    很多人一发现这个错误,直接埋头就去看api文档,

    Launch Services Keys

    包括我自己 其实这是最傻的 自问看英文不慢,但是我看了一天,没看出怎么解决 一堆uti, key, ls前缀等等,查字典能不查晕你么? 最后踩了一天坑后发现超简单 只要在info.plist加上一个category string 怎么加?等你去查查api? 加就加吧,还要问还要查?你是猪么 1.单击info.plist 2.点加号,选category 3.选你的类别,游戏,应用还是工具, 就这么简单3步搞定,去tmd的api

    sanbox缺失

    ERROR ITMS-90296: "App sandbox not enabled. The following executables must include the "com.apple.security.app-sandbox" entitlement with a Boolean value of true in the entitlements property list: [( "com.stone.AliImage.pkg/Payload/AliImage.app/Contents/MacOS/AliImage" )] Refer to App Sandbox page at https://developer.apple.com/devcenter/mac/app-sandbox/ for more information on sandboxing your app."

    最近我在弄一个Mac的项目,所以在打包上传appstore的时候遇到一些问题!事情的经过是这样的,我的mac程序内嵌入了几个命令行文件(exec文件),然后上传appstore时提示:app sandbox not enabled - the following executables must include the com.apple.security.app-sandbox。费了半天功夫,改了工程的app sandbox为开启状态,也详细查询了app sandbox苹果官方文档还是不行,最后终于找到了解决方式,原来需要对工程内第三方可执行文件签名,在这里再跟大家分享一下!

    打开终端,cd到要签名文件的目录,在同目录下 创建一个 entitlements.plist:内容如下

    创建成功后,命令输入:codesign --entitlements ./entitlements.plist -s "你的证书名字(发布证书名字格式如:3rd Party Mac Developer Application: #####)" ./ 待签名 文件名字 如果此文件已被别人签过名,那么可能会提示:is already signed字样 下面再教大家一个终极签名方式,这种方式无论次文件是否被签过名,都能重签名成功,如下: codesign --force --entitlements ./entitlements.plist -s " 你的证书名字(发布证书名字格式如:3rd Party Mac Developer Application: #####)" ./待签名 文件名字 ---完整的解法应该是

    • Create a file named entitlements.plist in your corona directory with

    <?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.security.app-sandbox</key> <true/> </dict> </plist>

    • Build your app with corona

    • Open Terminal and execute these commands :

     

    cd /yourcoronadirectory

     

    codesign --entitlements entitlements.plist -v -f -s "3rd Party Mac Developer Application: xxx xxx (XXXXXXXXXX)" yourappname.app

     

    productbuild --component yourappname.app /Applications --sign "3rd Party Mac Developer Installer: xxx xxx (XXXXXXXXXX)" yourappname.pkg

     

     

    You can now use Application Loader 

    ---codesign macos详解释,比官网网速快很多很多 http://www.xuebuyuan.com/2146455.html 好了,希望对大家有帮助! 以上是暴力方法,太难反正我不会,以下附上sandbox傻瓜方法 在被坑了一上午之后发现,youtmd的特别简单,sandbox not enabled?你就给它enabled吧,查什么api https://developer.apple.com/library/content/documentation/Security/Conceptual/AppSandboxDesignGuide/AppSandboxQuickStart/AppSandboxQuickStart.html#//apple_ref/doc/uid/TP40011183-CH2 就这么简单,看图还不明白的童鞋,自个面壁思过去
    转载请注明原文地址: https://ju.6miu.com/read-1123810.html

    最新回复(0)