如果Xcode Archiving Utility显示错误的应用验证怎么办?

时间:2022-05-04 22:45:58

I have two app projects on my mac. Because I was lazy to configure my project again, I just duplicated the entire project folder of my first app and renamed the project. All files in project are always relative to project itself. So it worked very good.

我的mac上有两个应用程序项目。因为我懒得再次配置我的项目,我只是复制了我的第一个应用程序的整个项目文件夹并重命名了该项目。项目中的所有文件始终与项目本身相关。所以它非常好用。

But today I wanted to Build & Archive an update of my first app. It all works with no complaints. But when the Archiving utility of Xcode is done, and I select my archive and click "Validate", Xcode asks for my iTunes connect credentials. Then I enter them, and in the "Please choose your application record and signing identity" dialogue Xcode offers only one Application for selection. The new (different) App only. But not the app I want to update on the App Store.

但今天我想构建和存档我的第一个应用程序的更新。这一切都没有抱怨。但是当Xcode的Archiving实用程序完成后,我选择了我的存档并单击“Validate”,Xcode会询问我的iTunes连接凭据。然后我输入它们,并在“请选择您的应用程序记录和签名身份”对话框中,Xcode只提供一个应用程序供选择。新的(不同的)应用程序。但不是我想在App Store上更新的应用程序。

In iTunes connect I have my old app still online and clearly there is an App ID for it. But Xcode does not offer selecting this Application.

在iTunes连接中,我的旧应用仍然在线,显然有一个应用程序ID。但Xcode不提供选择此应用程序。

But one strange thing: The new App ID I created for my new app, has the same Bundle Seed ID as my old app which is already on the App Store. Is this a problem? Is this why Xcode offers me the wrong app to choose?

但有一件奇怪的事情:我为我的新应用程序创建的新App ID与我的旧应用程序具有相同的Bundle Seed ID,该应用程序已经在App Store上。这是一个问题吗?这就是Xcode为我提供错误的应用程序选择的原因吗?

What can cause this problem? Why would Xcode archive validator not detect my app that is already on the app store and offer it for selection for archive validation?

什么可能导致这个问题?为什么Xcode存档验证器不会检测已经在应用商店中的应用并提供它以供存档验证选择?

I did not change my app or bundle ID or anything. All I did the last time was add a new app to iTunes connect but it has a different app ID / bundle ID.

我没有更改我的应用程序或捆绑ID或任何东西。我最后一次做的就是在iTunes连接中添加一个新的应用程序,但它有一个不同的应用程序ID /包ID。

Help greatly appreciated. Thank you guys.

非常感谢。感谢你们。

1 个解决方案

#1


27  

I figured out why. When I created my new app, I went to iTunes connect and added a new App ID and Application, and then clicked "Ready to upload binary". The mandatory step so Xcode can recognize the app and submit it.

我想出了原因。当我创建我的新应用程序时,我进入iTunes连接并添加了新的应用程序ID和应用程序,然后单击“准备上传二进制文件”。强制性步骤,以便Xcode可以识别应用程序并提交它。

So this was a long time ago and I totally forgot that I did this. And then I was surprised why Xcode only lists a wrong app to choose in the validator. Of course Xcode only offers what is in iTunes connect marked as "Ready for upload binary" and this was only my new app.

所以这是很久以前的事了,我完全忘记了我这样做了。然后我很惊讶为什么Xcode只列出了在验证器中选择的错误应用程序。当然Xcode只提供iTunes连接标记为“准备上传二进制”的内容,这只是我的新应用程序。

Now I went there and clicked "Ready to upload binary" for my new version of old app, and VOILLA. Xcode offers it.

现在,我去了那里,点击了“准备上传二进制文件”,为我的新版旧应用程序和VOILLA。 Xcode提供它。

So: Simple mistake, big headache. Hope it will be helpful for someone else in same situation.

所以:简单的错误,头痛。希望它对同样情况下的其他人有所帮助。

#1


27  

I figured out why. When I created my new app, I went to iTunes connect and added a new App ID and Application, and then clicked "Ready to upload binary". The mandatory step so Xcode can recognize the app and submit it.

我想出了原因。当我创建我的新应用程序时,我进入iTunes连接并添加了新的应用程序ID和应用程序,然后单击“准备上传二进制文件”。强制性步骤,以便Xcode可以识别应用程序并提交它。

So this was a long time ago and I totally forgot that I did this. And then I was surprised why Xcode only lists a wrong app to choose in the validator. Of course Xcode only offers what is in iTunes connect marked as "Ready for upload binary" and this was only my new app.

所以这是很久以前的事了,我完全忘记了我这样做了。然后我很惊讶为什么Xcode只列出了在验证器中选择的错误应用程序。当然Xcode只提供iTunes连接标记为“准备上传二进制”的内容,这只是我的新应用程序。

Now I went there and clicked "Ready to upload binary" for my new version of old app, and VOILLA. Xcode offers it.

现在,我去了那里,点击了“准备上传二进制文件”,为我的新版旧应用程序和VOILLA。 Xcode提供它。

So: Simple mistake, big headache. Hope it will be helpful for someone else in same situation.

所以:简单的错误,头痛。希望它对同样情况下的其他人有所帮助。