证书太多了,需要删除一些旧的。
证书存储在/Users/$(whoami)/Library/MobileDevice/Provisioning\ Profiles/ 下
#!/bin/bash
echo "开始"
cd /Users/$(whoami)/Library/MobileDevice/Provisioning\ Profiles/
for element in `ls /Users/$(whoami)/Library/MobileDevice/Provisioning\ Profiles/ `
do
cmd=`security cms -D -i $element`
result=$(echo $cmd)
result=${result##*application-identifier}
result=${result%com.apple.developer.team-identifier*}
result=${result%</string>*}
result=${result##*string>}
echo $element $result
done
echo "结束"