Xcode 配置文件苹果 ID 与包标识符不匹配

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

Xcode Provisioning profile apple id not matching bundle identifier

iosxcode

提问by Nelson Matias

I'm getting an error

我收到一个错误

"No matching provisioning profiles"

“没有匹配的配置文件”

where it says the AppleID has to be the same as the bundle identifier.

它说 AppleID 必须与捆绑标识符相同。

The problem is that it IS the same, but when I create my project, it adds "Tests" to the end of the bundle identifier.

问题是它是一样的,但是当我创建我的项目时,它会在包标识符的末尾添加“测试”。

For example, AppID is "com.company.app". I create a project with the Product Name "app" and the Organization Identifier "com.company". The Bundle Identifier is then set to "com.company.app".

例如,AppID 是“com.company.app”。我使用产品名称“app”和组织标识符“com.company”创建了一个项目。然后将捆绑标识符设置为“com.company.app”。

When I try to run it on my device it says that the AppID is ""com.company.app" but the bundle identifier is "com.company.appTests"

当我尝试在我的设备上运行它时,它说 AppID 是“”com.company.app”但包标识符是“com.company.appTests”

回答by u.gen

make sure your code signing identity is correct for the appTests target.

确保您的代码签名身份对于 appTests 目标是正确的。

I usually get that when code signing is set to the wrong profile in Tests target. Try to set it to correct profile or try Dont Code Sign

当代码签名在测试目标中设置为错误的配置文件时,我通常会得到这个。尝试将其设置为正确的配置文件或尝试Dont Code Sign

enter image description here

在此处输入图片说明

enter image description here

在此处输入图片说明

回答by Awais Nasir

Go to Build section of xcode, search for bundle identifier and change that to what your app id is and error will be gone

转到 xcode 的构建部分,搜索包标识符并将其更改为您的应用程序 ID,错误将消失