Xcode - Your development team, "", does not support the Push Notifications capability.

时间:2022-02-18 13:35:38

1.问题描述:

从git上checkout了别人的一个工程文件,选择team时,Xcode显示如下问题

Your development team, "xxx.xxx.xxx", does not support the Push Notifications capability.

最后解决方法如下:

.找到工程文件中xxx.entitlements文件,在vim中打开
.删除.entitlements文件中的<key>aps-environment</key>,保存后重新运行,即可。

参考:

*

2.若配置了开发环境,提示如下错误:

Signing for "XXX" requires a development team. Select a development team in the project editor.Code signing is required for product type 'Application' in SDK 'iOS 10.0'

解决方法:

targets –> general –> Signing –> Team (选择你们公司的Team )

3、iPhone is busy: Preparing debugger support for iPhone?

解决方法:

Xocde—>Window menu—>Device and Simulators—>Device—>Button at bottom left corner—>Next—>Done或者退出xcode,重启手机.