woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
313 stars 113 forks source link

Product Add photos: Unable to view photos from device in iOS 15.2 (Xcode 13.2.1) #5838

Closed selanthiraiyan closed 2 years ago

selanthiraiyan commented 2 years ago

Problem

While running the app using Xcode 13.2.1 trying to add a photo to a product from a simulator running iOS 15.2,

  1. Tapping on “Choose from device” has no response for a few seconds.
  2. The permission alert appears after that.
  3. Tapping on “Allow Access to All Photos” dismisses the alert but I can’t see any photos

More info

I have tested in 14.1 simulator and things are working as expected there. (I can see the photos)

I have raised a PR at https://github.com/wordpress-mobile/MediaPicker-iOS/pull/376 with a possible fix. More details at p91TBi-79a-p2

Expected behavior

I should be able to access photos in a simulator running iOS 15.2

Isolating the problem (mark completed items with an [x]):

Mobile Environment iOS 15.2 simulator Xcode 13.2.1

selanthiraiyan commented 2 years ago

Update

The PR with the fix has been accepted and WPMediaPicker 1.8.1 was released with a fix for this issue.

Our repo's trunk is already using the new version. We can test this issue in Xcode 13.2.1 or higher (when we eventually start using that version) and close this issue.

pmusolino commented 2 years ago

Tested trunk with WPMediaPicker 1.8.1 on Xcode 13.2.1 and the issues was fixed 👍