简体   繁体   English

使用新目标将IPA上载到TestFlight时出错

[英]Error When Uploading IPA to TestFlight Using New Target

I recently created a new target in my project for the Lite version of my app. 我最近在我的项目中为我的应用程序的Lite版本创建了一个新目标。 Now when I go to upload the .ipa to TestFlight so I can distribute it to my designer, I'm getting: 现在,当我将.ipa上传到TestFlight,以便将其分发给我的设计师时,我得到:

Invalid IPA: The keychain-access-group in the embedded.mobileprovision and your binary don't match. 无效的IPA:embedded.mobileprovision中的keychain-access-group与您的二进制文件不匹配。

Seems clear to me the reason this is happening is because of the new target. 我觉得发生这种情况的原因似乎是因为新的目标。 Does anyone know what exactly do I need to change to get this to work? 有谁知道我需要改变什么才能让它发挥作用?

I had this same problem. 我有同样的问题。 It was caused by having the wrong release code signing identity in the target's build settings. 这是由于在目标的构建设置中使用了错误的发布代码签名标识。 You won't need an entitlements file. 您不需要权利文件。

Check you are code signing with the correct Distribution profile. 检查您是否使用正确的分发配置文件签名。

Under Xcode project select > Build Settings > Code Signing 在Xcode项目下选择>构建设置>代码签名

Code Signing Identity: - Debug > iPhone Developer - Release > iPhone Distribution 代码签名标识: - 调试> iPhone开发人员 - 发布> iPhone分发

Provisioning Profile: - Be sure to select a Distribution profile here! 配置文件: - 务必在此处选择配送文件!

When you created a new bundle you probably didn't change the entitlements and access groups. 创建新捆绑包时,您可能没有更改权利和访问组。 Make sure you change these in the entitlements file. 确保在权利文件中更改这些内容。 Have a look at http://www.karlmonaghan.com/2012/08/09/invalid-ipa-the-keychain-access-group-in-the-embedded-mobileprovision-and-your-binary-dont-match/ on how to do this. 看看http://www.karlmonaghan.com/2012/08/09/invalid-ipa-the-keychain-access-group-in-the-embedded-mobileprovision-and-your-binary-dont-match/关于如何做到这一点。

Should look like this 应该是这样的

在此输入图像描述

If you don't use an entitlements file... 如果您不使用权利文件......

Double check that your developer certificate and provisioning profile used are up-to-date (even if you have the confidence inspiring green tick in the organiser.) Refresh the profile by visiting the Apple Provisioning Portal and edit / modify the provisioning profile, you're using to sign the app. 仔细检查您使用的开发人员证书和配置文件是否是最新的(即使您在组织者中有信心激发绿色标记。)通过访问Apple Provisioning Portal并编辑/修改配置文件刷新配置文件,您'重新用来签署应用程序。

Un-click and click the signing identity, so that you can submit the form, and the profile will be regenerated. 取消单击并单击签名标识,以便您可以提交表单,并重新生成配置文件。

Wait a minute (really), Go back to XCode and remove the profile from the organiser, next refresh the profiles, and it should re-appear, as the regenerated version. 等一下(真的),回到XCode并从组织者中删除配置文件,然后刷新配置文件,它应该重新显示,作为重新生成的版本。

Once that's done, try archiving / signing the ipa, and upload to TestFlight. 完成后,尝试存档/签署ipa,然后上传到TestFlight。

(use the TestFlight app, to speed up this process.) (使用TestFlight应用程序,以加快此过程。)

Here's what worked for me: 这对我有用:

  1. Using Automatic (Enterprise Distribution) Profile Selection for all Code Signing Identities I've Established. 使用自动(企业分发)配置文件选择我已建立的所有代码签名标识。
  2. Selecting "Refresh Certificates" when going through the Enterprise/Ad Hoc distribution workflow 在完成Enterprise / Ad Hoc分发工作流程时选择“刷新证书”

I have such kind of problem, I am not sure you have the same one or not. 我有这样的问题,我不确定你是否有同一个问题。

If I have a installed app with the same app id that I am going to install but with a different target, it creates problem. 如果我安装的应用程序具有相同的应用程序ID,我将安装但具有不同的目标,则会产生问题。 Seems apps are unique with app id and target. 似乎应用程序与app id和target是唯一的。 So I had to delete the app to install another app with the same app id but different target. 所以我不得不删除应用程序以安装具有相同应用程序ID但目标不同的另一个应用程序。

You have good other answers here, but just to stress something out. 你在这里有其他很好的答案,但只是为了强调一些东西。

If you worked for more than 1 client, and you actually used more than 1 developer account, then the automatic selection of Code Signing Identity on Archive wizard could be different than the one you need, and you might need to select it each time you create the AdHoc version. 如果您为多个客户工作,并且您实际使用了多个开发人员帐户,则自动选择存档上的代码签名身份向导可能与您需要的不同,并且您可能需要在每次创建时选择它AdHoc版本。

Here is a picture, to show you where your error might be (thats where mine was): 这是一张图片,告诉你你的错误可能在哪里(那就是我的错误):

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 发生当机时,TestFlight TFLog无法上传 - TestFlight TFLog not uploading when there is a crash 无效的IPA testflight - Invalid IPA testflight Testflight 上的 IPA 错误无效:您的 embedded.mobileprovision 中的 APS 环境与您的二进制文件不匹配 - Invalid IPA error on Testflight: The APS environment in your embedded.mobileprovision and your binary don't match 使用Jenkins和altool进行自动IPA上传失败,并显示“未找到Transporter”错误 - Automatic IPA uploading with Jenkins and altool fails with 'Transporter not found' error 无法在Xcode 4.5.1和ios 5.1中使用testflight或diwali安装ipa文件 - Unable to install ipa file using testflight or diwali in xcode 4.5.1 and ios 5.1 Testflight应用程序/ IPA安装要求输入密码 - Testflight application/IPA installation asking for passcode 将ipa辞职并上传到app store - Resigning and uploading ipa to app store 我们可以使用开发人员配置文件上传(.ipa)到testflight吗? - can we use developer provisioning profile to upload (.ipa) to testflight? TestFlight集成期间出现Testflight应用下载错误 - Testflight app download error during TestFlight integration 通过TestFlight发送演示时,每当获得新的测试仪时是否都必须创建一个新的存档? - When sending a demo through TestFlight, do I have to create a new archive whenever I get a new tester?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM