找不到与应用程序的标识符''匹配的有效配置文件 [英] A valid provisioning profile matching the application's Identifier '' could not be found

查看:285
本文介绍了找不到与应用程序的标识符''匹配的有效配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我是Xcode等新手...我现在开了一个应用程序我正在尝试分发它我为企业许可证付款,我觉得这是一个问题,其他人我只是太新了找出要改变的地方。有效的供应曲线相匹配的应用程序的标识符4R7B8RY6Z1.com.LaneBob找不到是我建立了一个供应配置文件错误4R7B8RY6Z1.com.LaneBob。*我的代码或Xcode中改变什么,所以我解决这个问题可以建立吗?我正在构建存档而不是设备,所以我不知道该怎么做。

Hello all I am new to the Xcode etc... I made a app now I am trying to distribute it ad-hoc I paid for the enterprise license, I see this is a problem with other people I just am too new to find out what to change. A valid provisioning profile matching the application's Identifier '4R7B8RY6Z1.com.LaneBob' could not be found is the error I created a provisioning profile '4R7B8RY6Z1.com.LaneBob.*' what do I change in the code or Xcode to fix this so I can build it? I am building to archive not to a device so I am not sure what to do.

感谢您的帮助!

编辑
我检查过这些地方:

EDIT I have checked these places:

1)info.plist
确保您的Bundle标识符与Provisioning门户网站中的标识符匹配。它应该具有您在线输入的内容,而不是您的公司名称。

1) info.plist Make sure that your Bundle identifier matches what you have in your Provisioning portal. It should have what you entered online, not the yourcompanyname stuff.

2)您的目标
右键单击您的构建目标并选择获取信息。然后在Build选项卡下,找到Code Signing部分。应该有一个项目表示代码签名身份。您可以在此处选择要签署的签名身份,并确保其与预期的配置文件匹配。如果未列出您的配置文件,则表明您未正确安装。您的配置文件需要安装在设备上才能运行,并且在Xcode中,因此它可以使用配置文件对应用程序进行签名。

2) Your target Right click on your build target and select "get info". And then under the Build tab, find the Code Signing section. There should be one item that says Code Signing Identity. This is where you pick which signing identity to sign with and you want to make sure it matches the intended provisioning profile. If you don't see your provisioning profile listed, you didn't install it correctly. Your provisioning profile needs to be installed on the device for it to run, and in Xcode so it can sign the app with the provisioning profile.

仍然无法正常工作

推荐答案

对于你的两点:

1)你应该有com.LaneBob info.plist文件中的.youppppName。对于Ad-hoc分发,您不能使用带有通配符的通用名称。您不需要开头的HASH部分(在您的情况下为4R7B8RY6Z1。)

1) You should have com.LaneBob.yourappName in the info.plist file. For Ad-hoc distribution you can't have 'generic' names with wildcard characters. You don't need the beginning HASH part (4R7B8RY6Z1. in your case)

2)您在XCode目标首选项中选择代码签名身份。 'LEFT'点击项目,然后转到你的应用目标。在那里,有不同配置的代码签名身份。在构建和存档时,您通常会构建发布模式并使用分发证书。

2)You pick code signing identity in XCode target preferences. 'LEFT' click on project, then go to the target of your app. Inside there, there are 'code signing identity' for different configurations. When you build and archive you typically build release mode and use distribution certificate.

如果您的mac中没有安装配置文件,则所有这些都无法解决您的问题。只需从门户网站下载并双击它即可安装它。此外,对于较新的XCode,您可以通过在那里输入用户/密码从组织者下载所有配置门户。

All this can not solve your problem if you don't have provisioning profile installed in your mac. Just download it from the portal and double click on it to install it. Also with newer XCode you can just download all provisioning portals from organizer, by entering the user/password there.

顺便说一下,我发现你需要重启xcode有时候'得到' '钥匙串更新。

Incidentally, I found you need to restart xcode sometimes to 'get' the keychain updates.

希望它有所帮助!

这篇关于找不到与应用程序的标识符''匹配的有效配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆