我在OS X El Capitan上安装了Xcode 8。
我得到这个错误:
签署“目标”需要一个开发团队。在项目编辑器中选择一个开发团队。 在SDK“iOS 10.0”中,产品类型“应用程序”需要代码签名
我在OS X El Capitan上安装了Xcode 8。
我得到这个错误:
签署“目标”需要一个开发团队。在项目编辑器中选择一个开发团队。 在SDK“iOS 10.0”中,产品类型“应用程序”需要代码签名
当前回答
对我来说,只是将构建设置更改为从调试中释放 在这里输入图像描述
其他回答
在项目和目标中选择开发团队。其余的,设置为“自动”,然后它将工作。
对于那些使用Ionic并收到这个错误的人,你需要打开你的$project_dir/platform/ios/$project_name。Xcodeproj -然后按照“answer”中列出的步骤操作
添加开发者账号到Xcode:
按Cmd⌘+,(逗号) 转到帐户选项卡 按照下面的屏幕截图来启用开发团队:
至少在某些情况下,可能还需要信任移动设备上的开发者配置文件。如果您在移动设备上看到“不受信任的开发人员”错误对话框,请参阅此问答。
要在真正的设备上运行你的应用,你需要有一个Apple ID,并用这个ID注册你的设备。这就是为什么您会得到这个错误。
你可以这样做。
Go to the project Navigator. Cmd-1 if you can't find it. Click the project target dropdown and pick Target. Click on the Team dropdown and pick add an account. Sign in with your Apple ID that is linked to your developer account, or just your Apple if you don't have a dev account. If you haven't registered your device with that account yet, a button will appear, something like 'Register device'. Click that and Apple will register the device and do the certificates and code signing. (Oh my unicorns certificates and signing is so much easier than it used to be)
选择您的物理设备并点击运行,它应该加载到您的设备上没有错误。
在目标的一般设置中选择团队