ios Xcode 6 Save for Enterprise Deployment 不再为 ipa 创建 plist?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25910387/
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-08-31 02:34:05  来源:igfitidea点击:

Xcode 6 Save for Enterprise Deployment does not create plist for ipa anymore?

iosiphonexcode6enterprise

提问by Lukasz

Xcode 5 helped in creating plist descriptor for enterprise ipa. Xcode 6 (6A313) creates ipa only. Is this a bug or intentional change? If so - what would be the reason for taking a step back?

Xcode 5 帮助为企业 ipa 创建 plist 描述符。Xcode 6 (6A313) 仅创建 ipa。这是错误还是有意更改?如果是这样 - 退后一步的原因是什么?

If I did not have previously generated plist using Xcode 5, I would need to crete it manually myself. Do you know of any automatic tool which would help in the process?

如果我之前没有使用 Xcode 5 生成 plist,我需要自己手动生成它。您知道任何有助于此过程的自动工具吗?

采纳答案by pir800

I'm having the same problem. Needed to put a build out last night. I ended up just reusing an old plist and updating it. Here's a template:

我有同样的问题。昨晚需要建立一个。我最终只是重用了一个旧的 plist 并更新了它。这是一个模板:

<?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>items</key>
        <array>
                <dict>
                        <key>assets</key>
                        <array>
                                <dict>
                                        <key>kind</key>
                                        <string>software-package</string>
                                        <key>url</key>
                                        <string>[INSERT URL HERE]</string>
                                </dict>
                        </array>
                        <key>metadata</key>
                        <dict>
                                <key>bundle-identifier</key>
                                <string>[INSERT BUNDLE ID HERE]</string>
                                <key>bundle-version</key>
                                <string>[INSERT VERSION HERE]</string>
                                <key>kind</key>
                                <string>software</string>
                                <key>title</key>
                                <string>[INSERT APP TITLE HERE]</string>
                        </dict>
                </dict>
        </array>
</dict>
</plist>

回答by Jonas

Couldn't find other solution than reusing an old .plist-file --- worked perfectly.

除了重用旧.plist文件之外,找不到其他解决方案--- 完美运行。

回答by Deepak

I fixed this issue in following manner(As @pir800 mentioned)-

我通过以下方式解决了这个问题(如@pir800 提到的)-

1) Take plist file of an old project and rename it name should be same as ipa file.

1) 取旧项目的 plist 文件并重命名它的名称应与 ipa 文件相同。

2) Changed values of following keys in plist file - a) url. b) bundle-identifier. c) title.

2) 更改了 plist 文件中以下键的值 - a) url。b) 捆绑标识符。c) 标题。

And then put ipa and plist on server. Remaining things are same like Xcode5.

然后将ipa和plist放在服务器上。剩下的东西和Xcode5一样。

But it is very bad, apple should inform to developer and mention such type changes in document.

但是很糟糕,苹果应该通知开发人员并在文档中提及此类类型的更改。

I do not my way is correct or wrong but my Enterprise In-house Distribution build properly downloaded and working. ....:)

我不知道我的方式是对还是错,但我的企业内部分发版本已正确下载并正常工作。....:)

I replied same on apple developer also. You can check this thread https://devforums.apple.com/message/1076995#1076995also If any one find better solution then please reply.

我也在苹果开发者上回答了同样的问题。您也可以查看此线程https://devforums.apple.com/message/1076995#1076995如果有人找到更好的解决方案,请回复。

Thank you...

谢谢...

回答by Deepak Thakur

To extend the accepted answer, you need to be a team member of the 299$ enterprise account. Go to Project Navigator (ProjectName) -> Targets -> General tab and select the account that is assoicated with 299$ enterprise developer account. If you cannot find the account you are looking for, go to XCode -> Preferences -> accounts and check if you are the admin / agent / team member of the said account and then proceed to make the ipa and plist file.

要扩展接受的答案,您需要成为 299 美元企业帐户的团队成员。转到 Project Navigator (ProjectName) -> Targets -> General 选项卡并选择与 299$ 企业开发者帐户相关联的帐户。如果找不到您要找的帐户,请转到 XCode -> 首选项 -> 帐户并检查您是否是该帐户的管理员/代理/团队成员,然后继续制作 ipa 和 plist 文件。

回答by mpwhitt

I'm not sure about enterprise deployment, but in XCode 7.0, you can create a manifest.plist while exporting an archive for Ad Hoc deployment...

我不确定企业部署,但在 XCode 7.0 中,您可以在为 Ad Hoc 部署导出存档时创建 manifest.plist...

  1. Select Product > Archive
  2. When the build finishes, select the archive you wish to export and choose "Export..."
  3. Choose "Save for Ad Hoc Deployment"
  4. Select your dev team
  5. Choose the desired option for "Device Support"
  6. On the "Summary" page, check the box beside "Include manifest for over-the-air installation." This will add a manifest.plist to the folder where the .ipa file was saved.- Click "Next"
  7. Insert the correct paths to the .ipa, display image, and full size image and click "Export"
  1. 选择产品 > 存档
  2. 构建完成后,选择要导出的存档并选择“导出...”
  3. 选择“保存用于临时部署”
  4. 选择您的开发团队
  5. 为“设备支持”选择所需的选项
  6. 在“摘要”页面上,选中“包括无线安装清单”旁边的框。这会将 manifest.plist 添加到保存 .ipa 文件的文件夹中。- 点击下一步”
  7. 插入 .ipa 的正确路径、显示图像和全尺寸图像,然后单击“导出”

Hope this helps.

希望这可以帮助。

回答by Carl Hine

I'm experiencing exactly the same thing, having to re-use a plist file generated from Xcode5. Just one other thing to add: The validate button, that we're presented with after archiving, does not validate my App correctly. It gets past "Preparing Archive" but then throws up an error, "No matching provisioning profiles found for Applications/plumbsApp.app" - None of the valid provisioning profiles allowed the specified entitlements: application identifier, beta-reports-active, keychain-access-groups.

我遇到了完全相同的事情,不得不重新使用从 Xcode5 生成的 plist 文件。要添加的另一件事是:存档后显示的验证按钮无法正确验证我的应用程序。它通过了“准备存档”,但随后抛出了一个错误,“没有为 Applications/plumbsApp.app 找到匹配的配置文件” - 没有一个有效的配置文件允许指定的权利:应用程序标识符、beta-reports-active、keychain-访问组。

Now, dismissing this and continuing with the "Export", creates my .ipa file and my users are able to install correctly, with the correct url, of course. So, not totally sure why this is happening. I had the beta release of Xcode running but used the final release of Xcode6. Perhaps the beta, comment, in red-herring. Has anyone else experienced this, where the validation of the archive fails in this way but the App installs ok?

现在,取消这个并继续“导出”,创建我的 .ipa 文件,我的用户当然可以使用正确的 url 正确安装。所以,不完全确定为什么会发生这种情况。我运行了 Xcode 的 beta 版本,但使用了 Xcode6 的最终版本。也许测试版,评论,红鲱鱼。有没有其他人遇到过这种情况,存档的验证以这种方式失败,但应用程序安装正常?