We can see this crash for iOS 8.4 both on device and in simulator:
Exception name=RCTFatalException:
Exception '-[PHFetchOptions setIncludeAssetSourceTypes:]: unrecognized selector sent to instance 0x1702c08c0' was thrown while invoking getAssets on target
CameraRollRNPhotosFrameworkManager with params (... ) ...
This PR checks that two specific selectors that we saw crashes for are available, in iOS 8 that will no be the case. I manually tested that the sourceType option still works in iOS 10 Simulator.
I'm not exactly sure what the implications of this option not supported in iOS 8 are. 8.4 Simulator Photos / Settings app crashed when I tried to enable iCloud photo library (probably because the apple id has been used with later iOS versions), so I could not test that. At least it isn't crashing anymore and we could get the standard Simulator photos + manually added ones via the library.
We can see this crash for iOS 8.4 both on device and in simulator:
This PR checks that two specific selectors that we saw crashes for are available, in iOS 8 that will no be the case. I manually tested that the
sourceType
option still works in iOS 10 Simulator.I'm not exactly sure what the implications of this option not supported in iOS 8 are. 8.4 Simulator Photos / Settings app crashed when I tried to enable iCloud photo library (probably because the apple id has been used with later iOS versions), so I could not test that. At least it isn't crashing anymore and we could get the standard Simulator photos + manually added ones via the library.