ios 为不同的开发者帐户签名时,代码签名“没有团队帐户”消息
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/48584288/
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
Code Signing "No account for team" message when signing for different developer account
提问by chmod
I've been working on an app for a client using my own Apple Developer account so far while waiting for them to register a Developer account themselves.
到目前为止,我一直在为使用我自己的 Apple 开发人员帐户的客户开发应用程序,同时等待他们自己注册开发人员帐户。
They have done this— and the time has come for them to be able to build and run the project on their machine, but they're getting this error:
他们已经这样做了——现在是他们能够在他们的机器上构建和运行项目的时候了,但他们收到了这个错误:
Code Signing Error: No account for team "59xxxxxxxx". Add a new account in the Accounts preference pane or verify that your accounts have valid credentials.
Code Signing Error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "59xxxxxxxx" with a private key was found.
Code Signing Error: No account for team "59xxxxxxxx". Add a new account in the Accounts preference pane or verify that your accounts have valid credentials.
Code Signing Error: No signing certificate "iOS Development" found: No "iOS Development" signing certificate matching team ID "59xxxxxxxx" with a private key was found.
The team ID in the error message is mine, what I've been using to build the project on my computers.
错误消息中的团队 ID 是我的,我一直在使用它在我的计算机上构建项目。
Their account has already been set in their Xcode's preferences pane, and I have been added as a member to that team.
他们的帐户已经在他们 Xcode 的首选项窗格中设置,我已被添加为该团队的成员。
I have worked on other projects with other developers where we could build the project simply by selecting our respective Team in the drop-down menu within the Signing section of the General project settings. For some reason when my client selects their team and tries to build the project it still produces this error.
我曾与其他开发人员合作过其他项目,我们可以通过在常规项目设置的签名部分的下拉菜单中选择我们各自的团队来构建项目。出于某种原因,当我的客户选择他们的团队并尝试构建项目时,它仍然会产生此错误。
Does anyone know what we're doing wrong?
有谁知道我们做错了什么?
采纳答案by Monstercrunch
For me the solution was to set the team in both General settings AND Build settings.
对我来说,解决方案是在常规设置和构建设置中设置团队。
I'm using xcode 9.
我正在使用 xcode 9。
回答by Ibrahim
回答by Anton Kukoba
In my case, the error was caused by obsolete team ID in the project settings. I.e. I got a project from a person long gone. So, I just copied the team ID from error message and used a search within the project in XCode to find where this team ID is. It found me two places in the project settings, I put a new developer id there and the error was gone.
就我而言,该错误是由项目设置中过时的团队 ID 引起的。即我从一个很久以前的人那里得到了一个项目。因此,我只是从错误消息中复制了团队 ID,并在 XCode 中的项目中使用搜索来查找此团队 ID 的位置。它在项目设置中找到了两个位置,我在那里放置了一个新的开发人员 ID,错误消失了。
回答by chmod
Apparently there was a bit of "broken telephone" going on with me and my client and we managed to solve this issue simply by selecting their team in the Signing section of the General tab in the project settings.
显然,我和我的客户有一些“电话坏了”,我们设法解决了这个问题,只需在项目设置的“常规”选项卡的“签名”部分中选择他们的团队即可。
回答by heug
using xcode 10 here ... my appleID wasnt signed in, so i rectified that via preferences > accounts > re-entering my password.
在这里使用xcode 10 ...我的appleID 没有登录,所以我通过首选项> 帐户> 重新输入我的密码来纠正这个问题。
BUT, that still didnt work even after cleaning and restarting xcode.
但是,即使在清理并重新启动 xcode 后,这仍然不起作用。
i finally resolved this by doing file > workspace settings > build system ... and choosing "Legacy Build System" from the dropdown.
我最终通过执行文件 > 工作区设置 > 构建系统 ... 并从下拉列表中选择“传统构建系统”来解决这个问题。