Mac app has embedded provisioning profile

旧巷老猫 提交于 2019-12-22 05:02:09

问题


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:

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.......


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

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.


回答1:


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.



来源:https://stackoverflow.com/questions/19528803/mac-app-has-embedded-provisioning-profile

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!