打包之坑

上传包时提示如下错误“Unable to upload package” 未能解开软件包,因为出现了以下错误:Unable to extract archive. Please make sure XXXX.ipa is a valid zip or ipa archive.

遇到这个提示,包没有正确签名。打开工程将target以及Project的code sign 签名设置为相应的。debug使用developer证书,adhoc以及app store使用distribution证书。然后再打包。就可以提交上去了。

工程中打开Capabilities功能,工程目录中会自动生成一个entitiment文件。通过修改Capabilities里面的功能,entilement文件会自动修改。 capabilities里面的功能,如果你不是使用的管理者账号并且自动管理证书功能的话。换句话说就是如果你使用的是手动管理证书,那么你itunes connect后台的apple id所具备的功能必须要enable.否则在Xcode工程里打开该功能的话有可能会报错。

在打包审核时,工程里有enntilement文件是不会影响打包的。这点要注意。

关于通用链接,通用链接的域名配置是有特定格式的,如果格式不对,审核时则会报错。

Dear developer,We have discovered one or more issues with your recent delivery for "XXXXX". To process your delivery, the following issues must be corrected:Invalid Code Signing Entitlements - Your application bundle's signature contains code signing entitlements that are not supported. Please check your Xcode project's code signing entitlements configuration, and remove any unneeded entitlements.Specifically, value "app.adjust.com" for key "com.apple.developer.associated-domains" is not supported.Though you are not required to fix the following issues, we wanted to make you aware of them:Invalid App Store Icon - The App Store Icon in the asset catalog in 'nss.app' can't be transparent nor contain an alpha channel.Once the required corrections have been made, you can then redeliver the corrected binary.Regards,The App Store team

解决方案:将Associated domains 功能off掉。xcode中未使用相应的的功能,但是app id有这一项功能,这是可以的。不过一般的还是使用了某项功能再打开该项功能较好。

原文地址:https://www.cnblogs.com/shycie/p/7976002.html