简体   繁体   English

Xcode Bundle标识符问题

[英]Xcode Bundle identifier issue

I am trying to install 2 apps that i made in Xcode onto a device and have only been able to successfully build one. 我正在尝试将我在Xcode中制作的2个应用程序安装到设备上,并且只能成功构建一个。

on the one that successfully built the bundle identifier was 123456789A.com.company.appnameProject where "Project" is the project name in grey un-editable text. 在成功构建软件包标识符的那个是123456789A.com.company.appnameProject ,其中“Project”是灰色不可编辑文本中的项目名称。

for the one that failed the bundle identifier does not have any non-editable text in it and I don't understand why one has un-editable grey text and the other doesn't. 对于捆绑标识符失败的那个没有任何不可编辑的文本,我不明白为什么一个人有不可编辑的灰色文本而另一个没有。

This is the error description The identity '...' does not match any valiad non-expired certificate/private key pair in your keychains 这是错误描述The identity '...' does not match any valiad non-expired certificate/private key pair in your keychains

I tried the following bundle identifiers to no success. 我尝试了以下捆绑标识符,但没有成功。

123456789A.*

123456789A.com.company.appname

123456789A.com.company.appnameProject (project is in editable text)

Note: I tried deleting and reinstall provisioning profiles and key-chains. 注意:我尝试删除并重新安装配置文件和密钥链。 I would be surprised if anything is wrong with my keychain or provisioning profiles since one app built successfully. 如果一个app成功构建,我的钥匙串或配置文件有任何问题,我会感到惊讶。

the gray text is uneditable because it uses a rfc1034identifier version of your bundle's project name 灰色文本是不可编辑的,因为它使用了包的项目名称的rfc1034identifier版本

if you look at the target info you will see bundle identifier looks like this. 如果查看目标信息,您会看到包标识符如下所示。

com.company.${PRODUCT_NAME:rfc1034identifier}

project name is the value next to the icon in the "Targets" section of your Project Property editor. 项目名称是Project Property编辑器“Targets”部分中图标旁边的值。

you can change the name of the target by clicking on the name once while it is already selected. 您可以通过在名称已被选中时单击一次来更改目标的名称。 or selecting it and pressing enter. 或选择它并按Enter键。

Changing the name of the target will change the grayed out value in your Bundle identifier. 更改目标名称将更改Bundle标识符中的灰色值。

Sometimes your provision file does not include all of the UDID's that it is supposed to. 有时您的配置文件不包含它应该包含的所有UDID。

You may try making sure they are selected in the itunes connect portal. 您可以尝试确保在itunes connect门户中选择它们。 then downloading a new copy. 然后下载新副本。

You may also try connecting the ios device to xcode and setting it up for development in the "Organizer" 您也可以尝试将ios设备连接到xcode并在“管理器”中进行设置以进行开发

if that does not work. 如果这不起作用。 you may want to remove all the provision files from your xcode and from the hard disk where they are stored and re download them from xcode. 您可能希望从xcode和存储它们的硬盘中删除所有配置文件,然后从xcode重新下载它们。

Occasionally it is temperamental 偶尔会有气质

Try completing this way your Bundle identifier: 尝试以这种方式完成您的Bundle标识符:

In your organizer/Provisioning profiles you can find the App identifier 在您的管理器/配置文件中,您可以找到应用程序标识符

12344545.com.name.* 12344545.com.name。*

In your Bundle identifier use only after the numbers(dot) and instead (*) your app name, should be this way: 在您的Bundle标识符中,只能在数字(点)之后使用,而不是(*)您的应用名称,应该是这样的:

com.name.AppName com.name.AppName

This way the The identity '...' does not match any valiad non-expired certificate/private key pair in your keychains error should be gone, at least it was for me. 这样,身份'...'与你的钥匙串错误中的任何valiad非过期证书/私钥对都不匹配应该消失,至少对我而言。 Good luck. 祝好运。

I found out what was wrong. 我发现了什么是错的。 My Code signing identity for the debug phase was for the wrong certificate. 我的调试阶段的代码签名标识是针对错误的证书。 It was a pretty simple and embarrassing mistake. 这是一个非常简单和令人尴尬的错误。

Also thanks to those who answered! 还要感谢那些回答的人!

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM