Unity5.4.1f crashes app when ReadPixel() running on iPhone6s+

Function: App to take screenshot of an object in Unity Scene and render it into a .png file with transparent background.

When build with Unity5.3x, works on -

  • iPhone 5 (iOS 9.0) works
  • iPhone 6 (iOS 10) works
  • iPhone 6s (iOS 9.3) works
  • iPhone 6s+ (iOS 9) works

When build with Unity 5.4x upgrade,

  • iPhone 5 (iOS 9.0) works
  • iPhone 6 (iOS 10) works
  • iPhone 6s (iOS 9.3) works
  • iPhone 6s+ (iOS 9) fails

Attach is the screenshot of where it crashed in XCode. I could not submit this in IssueTracker, can Unity please look into this? Sorry if I double post, just found out that I should post this in META room.

I had this same problem and it turned out that it was a result of iOS 10 needing a string description in the info.plist for the privacy field NSPhotoLibraryUsageDescription. Once I entered this field in Xcode the crash stopped.