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



没有配置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:内容如下

Mac应用程序内对某些第三方可执行文件签名(codesign)

创建成功后,命令输入: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

就这么简单,看图还不明白的童鞋,自个面壁思过去
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 6
    评论
评论 6
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

avi9111

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值