首先cd到目录”~/Library/MobileDevice/Provisioning Profiles”
cd ~/Library/MobileDevice/Provisioning Profiles/
然后删除里面所有的mobileprovision文件
rm *.mobileprovision然后 在Xcode中 command + ,选中Account 选中你的Apple ID 选中右侧的View Detail 刷新证书