xcode从哪里获取应用程序的标识符? [英] Where does xcode take application's Identifier from?

查看:101
本文介绍了xcode从哪里获取应用程序的标识符?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想我的脑袋很快会爆炸。
我已经在我的应用程序上工作了一段时间,最后git一个iPhone在设备上进行测试,现在我正试图在iphone上运行我的应用程序,但不能这样做。我已经完成了所有必要的步骤,但收到错误
[BEROR]代码签名错误:无法找到与应用程序的标识符'com.yourcompany.MyProject'匹配的有效配置文件

I think my head soon explode. I've been working on my application for some time and finally git an iPhone for testing on device, now I'm trying to run my app on iphone but can't do it. I've done all necessary steps but getting an error [BEROR]Code Sign error: a valid provisioning profile matching the application's Identifier 'com.yourcompany.MyProject' could not be found

我的配置资料名为 XXXXXXXXX.com.myname。*

我将Bundle标识符更改为 com.myname.myapplication

in info.plist I changed Bundle identifier to com.myname.myapplication

我的项目名称是MyProject,因为我无法更改它,但我的目标和可执行文件名为 myapplication

my project name is MyProject because I can't change it, but my target and executables called myapplication

I已检查所有设置,甚至无法在任何地方找到 yourcompany

I've checked all setting and can't even find this yourcompany anywhere

但仍然收到此错误

我需要在哪里寻找?

谢谢

推荐答案

Xcode使用目标Info.plist文件中的bundle标识符进行代码签名。

Xcode uses the bundle identifier found in the target's Info.plist file for code signing.

选择哪个Info.plist文件实际上是构建设置(通常在目标中),通常由Xcode正确设置。如果您手动将Info.plist的包标​​识符值编辑为您的标识符,Xcode应使用此标识符并且代码签名应该有效。

Which Info.plist file is selected is actually a build setting (normally in the target), and is usually set up by Xcode correctly. If you manually edited the Info.plist's bundle identifier value to your identifier, Xcode should use this identifier and code signing should work.

默认的Info.plist文件包含一个包包含Xcode构建设置的标识符,在构建目标时将其处理为最终标识符。

The default Info.plist file contains a bundle identifier that contains Xcode build settings and is processed to the final identifier when building the target.

这篇关于xcode从哪里获取应用程序的标识符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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