xcode '没有团队'LXxxxxxxx'的帐户'在Xcode 9.4上构建错误

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

' No account for team 'LXxxxxxxx' ' build error on Xcode 9.4

iosswiftxcodemacosxcode-project

提问by lamo_738

I am cloning a Xcode project from github and is my first experience with Xcode projects. I tried simulating on Mac for a device (say iphone SE) and it works fine. However, when I connect a iphone and try to build the project on the target device as my iphone, it gives this error.

我正在从 github 克隆一个 Xcode 项目,这是我第一次使用 Xcode 项目。我尝试在 Mac 上模拟一个设备(比如 iphone SE)并且它工作正常。但是,当我连接 iphone 并尝试在目标设备上构建项目作为我的 iphone 时,它​​会出现此错误。

Code Signing Error : No account for team "LXxxxxxxx". Add a new account in the Accounts preference pane or verify that your accounts have valid credentials.

代码签名错误: No account for team "LXxxxxxxx". Add a new account in the Accounts preference pane or verify that your accounts have valid credentials.

I have signed into my Apple ID under accounts tab in preferences. Is there is something wrong with account ? or How do I detach from this 'team account' ?

我已在首选项中的帐户选项卡下登录我的 Apple ID。账户有问题吗?或者我如何脱离这个“团队帐户”?

Could you please provide me some instructions ?

你能给我一些指示吗?

采纳答案by Adobels

Step 1: Add your team account to Xcode

第 1 步:将您的团队帐户添加到 Xcode

Add your team account in Accounts preference pane in Xcode.

在 Xcode 的“帐户”首选项窗格中添加您的团队帐户。

Step 2: Assign the target to a team

第 2 步:将目标分配给团队

In the target preferences, enable "Automatic manage signing" then assign the target to your team.

在目标首选项中,启用“自动管理签名”,然后将目标分配给您的团队。

回答by Adobels

when you are building your project into device you have to be logged in team account with your Apple Developer Id. After this if not works then change Bundle ID of your project for example if your bundle id is - com.Demo.Appthen change it to com.Demo.App123

当您将项目构建到设备中时,您必须使用您的 Apple Developer Id 登录团队帐户。在此之后,如果不起作用,则更改项目的捆绑 ID,例如,如果您的捆绑 ID 是 -com.Demo.App然后将其更改为com.Demo.App123

回答by flatcoke

In my case before do that apply credentials to my mac it means double click

在我的情况下,在将凭据应用于我的 mac 之前,这意味着双击