xcode 代码签名错误:配置文件与包标识符不匹配

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

Code Sign error: Provisioning profile does not match bundle identifier

iosxcodejenkins

提问by kirthan shetty

i'm getting below error while building, Can you please help me on this.

我在构建时遇到以下错误,你能帮我解决这个问题吗?

Check dependencies Code Sign error: Provisioning profile does not match bundle identifier: The provisioning profile specified in your build settings (“EXAMPLE test - Open”) has an AppID of “com.test.example” which does not match your bundle identifier “com.test.exampleTests”. CodeSign error: code signing is required for product type 'Unit Test Bundle' in SDK 'iOS 8.3'

检查依赖项代码签名错误:配置文件与包标识符不匹配:在您的构建设置(“示例测试 - 打开”)中指定的配置文件的 AppID 为“com.test.example”,与您的包标识符“com”不匹配.test.exampleTests”。CodeSign 错误:SDK“iOS 8.3”中的产品类型“Unit Test Bundle”需要代码签名

回答by Sujith Chandran

Change your Bundle ID to com.test.example in the info.plist file. Or else create a new provisioning profile , with the app id com.test.exampleTests. After doing one from the above, clean the project and rebuild it.

在 info.plist 文件中将您的 Bundle ID 更改为 com.test.example。或者创建一个新的配置文件,应用程序 ID 为 com.test.exampleTests。完成上述操作后,清理项目并重建它。

回答by Milan Agarwal

It seems like you have changed the bundle id of your project to com.test.example, go to exampleTestsTests target and change the bundle id there as well to resolve the issue.

似乎您已将项目的包 ID 更改为 com.test.example,转到 exampleTestsTests 目标并在那里更改包 ID 以解决问题。