无法在设备上运行代码

发布于 2024-07-17 16:17:41 字数 210 浏览 4 评论 0原文

我有一些我开发的源代码,后来交给了另一个团队。 他们使用证书和配置文件对其进行签名。

现在我已经拿回了代码,并在项目属性中为代码签名身份设置了适当的值(使用我的证书和配置文件)。 但是,当我在设备上运行该应用程序时,出现错误,显示其他团队的证书并提示配置文件不存在。

我不知道它在哪里被引用。

有人可以帮忙吗?

谢谢。

I have some source code which I had developed and later gave to another team. They signed it with their certificate and provisioning profile.

Now I have the code back and have set the appropriate values in the project properties for code signing identity (with my cert and profile). But when I run the application on a device, I get an error showing the other team's certificate and prompting that the provisioning profile does not exist.

I don't know where it is being referenced.

Can someone please help.

Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(6

夏末染殇 2024-07-24 16:17:41

检查目标属性,而不仅仅是项目,因为它可能会被覆盖。

Check the Target properties, not just the Project, because it could be overridden there.

感悟人生的甜 2024-07-24 16:17:41

类似的事情也发生在我身上,在我的情况下,“目标”设置仍然设置为以前的开发人员证书,而我的“项目”设置设置为我的新证书。 Xcode 报告:

“代码签名错误:身份‘iPhone 开发人员:’与登录钥匙串中的任何有效证书/私钥对不匹配”

Boot 的答案对我有用 - 有用于签名的“目标”设置覆盖“项目” ”设置,这就是如果您只更改了“项目”设置,您可能需要重新创建整个项目的原因。

Similar thing just happened to me, in my case the "Target" settings were still set to the previous developer's certificate, while my "Project" settings were set to my new certificate. Xcode reported:

"Code Sign error: The identity 'iPhone Developer: ' doesn't match any valid certificate/private key pair in the login keychain"

Boot's answer worked for me - there are "Target" settings for signing that override the "Project" settings, which is why you may have needed to recreate the whole project, if you only changed the "Project" settings.

栖竹 2024-07-24 16:17:41

将 Active SDK 从 iphone 设备更改为 Iphone 模拟器。 这将让您在 iPhone 模拟器上测试您的代码。 如果您计划在设备上运行应用程序,则需要证书。 (也许您获得的代码是针对设备签名的)。

Change the Active SDK from iphone device to Iphone simulator. This will let you test your code on your iphone simulator. You need a cert if you plan on running your app on your device. (Maybe the code that you got was signed for device).

感情废物 2024-07-24 16:17:41

项目>下 编辑项目设置... 单击配置 菜单并选择所有配置。 然后向下滚动到代码签名(或在搜索字段中输入)以验证您的配置信息,并根据需要更改代码签名身份

Under Project > Edit Project Settings... click on the Configurations menu and select All Configurations. Then scroll down to Code Signing (or type it into the search field) to verify your provisioning information, changing the Code Signing Identity as needed.

往日 2024-07-24 16:17:41

连接您的 iPhone,打开管理器,您首先需要删除其他团队的个人资料,然后强制添加您的个人资料(通过拖放或单击 + 按钮)

完成后,从项目中更改代码签名设置信息窗口,你应该没问题。 我遇到了同样的问题,必须执行上述操作才能解决它

connect your iphone, open organizer, there you first need to delete the profile of your other team, and then force an add of your profile (by drag and drop or clicking the + button)

once done, change your code signing settings from the project info window and you should be okay. i faced the same problem and had to do the above to resolve it

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文