Mac应用程序具有嵌入式配置文件 [英] Mac app has embedded provisioning profile

查看:122
本文介绍了Mac应用程序具有嵌入式配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我为AppStore构建Mac应用程序时,它还会嵌入配置文件,该配置文件是基于Apple电子邮件的可选配置.但是,由于我的主应用程序内部有一个辅助应用程序,并且该应用程序也嵌入了相同的配置文件,因此我收到了无效的二进制文件",Apple发出的电子邮件中说:

When I build my Mac app for the AppStore, it also embeds the provisioning profile, which is optional based on Apple's email. But, since I have a helper application inside my main app, which also embeds the same profile, I get an "Invalid Binary", and the email from Apple says:

无效的配置文件位置-的配置文件 您的Mac OS X应用必须位于 主应用程序捆绑包.供应配置文件是可选的,但您不能 提交多个.

Invalid Provisioning Profile Location - The provisioning profile for your Mac OS X app must be located in the Contents directory of the main app bundle. A provisioning profile is optional, but you cannot submit more than one.

因此,它具有多个配置文件...如何禁用帮助程序应用程序项目将配置文件嵌入其包中?

So, it has more than one provisioning profile... How can I disable the helper app project from embedding the provisioning profile in its bundle??

尽管我不喜欢此解决方案,但您必须玩侦探游戏才能找到所有供应配置文件并将其删除.构建完应用程序后,我从应用程序中删除了嵌入式配置文件,并将它们全部删除(我有一个资源束,并且配置文件甚至嵌入其中!),然后提交......让您想知道为什么配置文件首先被嵌入…….

As much as I despise this solution, but you have to play a detective game to find all the provisioning profile and delete them. I deleted the embedded profiles from the app after it was built, all of them (I had a resource bundle, and the provisioning profile was even embedded there!), and submitted........ Works. Makes you wonder why the hell was the profile embedded in the first place.......

当我尝试删除助手应用程序设置的配置文件时,我是从Apple那里获得的:

When I tried to remove the provisioning profile for the helper app settings, I get this from Apple:

无效的配置文件-包含在其中的配置文件 捆绑包KPTHelper (.../KPTHelper.app)是 无效的. (缺少代码签名证书.)有关更多信息, 访问Mac OS开发人员门户.

Invalid Provisioning Profile - The provisioning profile included in the bundle KPTHelper (.../KPTHelper.app) is invalid. (Missing code-signing certificate.) For more information, visit the Mac OS Developer Portal.

推荐答案

您可以与主应用程序输入相同的捆绑包标识符,但只需在帮助程序应用程序的签名选项中不选择选项.

You can enter the same Bundle Identifier with your main application but you just pick the option none in signing option for the helper application.

它在您的项目设置的常规标签中.

It's in the general tab of your project settings.

这篇关于Mac应用程序具有嵌入式配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆