You can also avoid having to set this setting over and over by using an after_prepare hook. Here is the contents of my
cat << EOF |
Add :NSPhotoLibraryUsageDescription string "For meal photos"
Add :NSCameraUsageDescription string "For meal photos"
Add :NSMicrophoneUsageDescription string "For voice notes"
Add :UIDeviceFamily string "1" # iPhone only
while read line
/usr/libexec/PlistBuddy -c "$line" $PLIST
Note that I’m setting more than just the UIDevice family, but that is the one you want. 1 = iPhone, 2 = iPad.