Deleting expired provisioning profiles
问题 Using exclusively terminal, how can one identify and delete the expired provisioning profiles from ~/Library/MobileDevice/Provisioning Profiles Is there a way to do that just from terminal? 回答1: You can write a shell script that will loop through the files, grab the date from the mobileprovision file, and check it against the current date. #!/bin/sh for provisioning_profile in ~/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision; do printf "Checking ${provisioning_profile}... " #