在 Xcode 8 中添加开发团队?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/39551165/
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
Add developer team in Xcode 8?
提问by Freddy Benson
I was still learning the ins and outs of Xcode when the new version came out and I just upgraded to Xcode 8, which gave me a bunch of errors in the projects I started in Xcode 7.3. I can't get rid of two particular errors:
新版本出来的时候我还在学习 Xcode 的来龙去脉,我刚刚升级到 Xcode 8,这让我在 Xcode 7.3 开始的项目中出现了一堆错误。我无法摆脱两个特定的错误:
"Signing for AppName requires a development team. Select a development team in project editor."
“签署 AppName 需要一个开发团队。在项目编辑器中选择一个开发团队。”
"Code signing is required for product type "Application" in iOS SDK 10.0""
“iOS SDK 10.0 中的产品类型“应用程序”需要代码签名””
I'm pretty sure I could've figured how to fix this in Xcode 7.3, but the project settings page has completely changed and looks kinda confusing right now. Where do I add development teams, and is it possible to add a default development team for all my Xcode projects? I also found the code signing section in the project settings, but filling all the settings doesn't make the error go away, so I'm even more confused about that. I never had to worry about this in previous versions of Xcode, since I never got to the point of actual app distribution. Any help will be appreciated. Thanks!
我很确定我可以想出如何在 Xcode 7.3 中解决这个问题,但是项目设置页面已经完全改变了,现在看起来有点混乱。我在哪里添加开发团队,是否可以为我的所有 Xcode 项目添加默认开发团队?我还在项目设置中找到了代码签名部分,但是填写所有设置并不会使错误消失,所以我对此更加困惑。在以前的 Xcode 版本中,我从来没有担心过这个问题,因为我从来没有讨论过实际的应用程序分发。任何帮助将不胜感激。谢谢!
回答by Matthew Seaman
As you said you found, you can go to the General project settings and find Signing. There you may select you team. Additionally, you probably want "Automatically manage signing".
正如您所说的,您可以转到“常规项目设置”并找到“签名”。在那里你可以选择你的团队。此外,您可能想要“自动管理签名”。
If the error does not immediately go away, try Product > Clean, and then Product > Build and run again.
如果错误没有立即消失,请尝试 Product > Clean,然后再尝试 Product > Build 并再次运行。