xcode 创建要在 iPhone 配置实用程序中使用的构建文件(.app 和 .mobileprovision)

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7838884/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 22:11:17  来源:igfitidea点击:

Create build files (.app & .mobileprovision) to use in iPhone Configuration Utility

iosxcodexcode4xcode4.2

提问by sshevlyagin

My client is using the iPhone Configuration Utility to install builds on their devices. They are asking me for a separate .app and .mobileprovision file. In xCode 4/4.2 whenever I do a build I get a .ipa file. How do I get xCode to spit out the two separately? I tried unzipping the .ipa and sending the included .app file plus the embedded.mobileprovision file from the .app separately. This didn't work.

我的客户正在使用 iPhone 配置实用程序在他们的设备上安装构建。他们要求我提供单独的 .app 和 .mobileprovision 文件。在 xCode 4/4.2 中,每当我进行构建时,我都会得到一个 .ipa 文件。如何让 xCode 分别吐出两者?我尝试解压缩 .ipa 并分别从 .app 发送包含的 .app 文件和 Embedded.mobileprovision 文件。这没有用。

Ideas?

想法?

回答by notyce

The iPhone Configuration Utilityworks great with *.ipafiles.

iPhone配置实用工具的伟大工程与*的.ipa文件。

The *.mobileprovisionfile is used to code-sign your application. You can create & download it in your Apple-Developer Member Center (developer.apple.com) at iOS Provisioning Portal -> Provisioning.

*名为.mobileprovision文件用于代码签名的应用程序。您可以在您的 Apple-Developer Member Center ( developer.apple.com) 的iOS Provisioning Portal -> Provisioning 中创建和下载它。

In XCode4 you can use the ArchiveBuild (Project -> Archive). Make sure you use "iOS Device" as platform. After the archiving is finished, the Xcode Organizer opens and you can select the mobileprovisionfile to sign your app & export your app (via "Share") as an .ipafile.

在 XCode4 中,您可以使用存档构建(Project -> Archive)。确保您使用“iOS 设备”作为平台。存档完成后,Xcode Organizer 将打开,您可以选择mobileprovision文件来签署您的应用程序并将您的应用程序(通过“共享”)导出为.ipa文件。

回答by Durai Amuthan.H

generally speaking

通常来说,一般来说

.app file

. 应用程序文件

Get your app location using [[NSBundle mainbundle]bundlepath]there you may find .app file there

使用[[NSBundle mainbundle]bundlepath]那里获取您的应用程序位置,您可能会在那里找到 .app 文件

provision profile

配置文件

You will have to sign into iOS provisioning portaland download it from provision profileoption

您必须登录iOS 配置门户并从配置文件选项中下载