** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[PHPhotoLibrary presentLimitedLibraryPickerFromViewController:]: unrecognized selector sent to instance 0x2828071b0'。
ios14 crash [PHPhotoLibrary presentLimitedLibraryPickerFromViewController:]
I am getting the same.
You need to make sure you have added both Photos and PhotosUI frameworks in your project. Then import <PhotosUI/PhotosUI.h> header in your class file and call [[PHPhotoLibrary sharedPhotoLibrary] presentLimitedLibraryPickerFromViewController:self];