Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load photos anymore #336

Open
cchl100 opened this issue Dec 18, 2024 · 5 comments
Open

Can't load photos anymore #336

cchl100 opened this issue Dec 18, 2024 · 5 comments

Comments

@cchl100
Copy link

cchl100 commented Dec 18, 2024

Hi,

I've encountered the following issue since updating to iOS 18 (worked fine on iOS 17): the camera roll opens, the photo is selected (and I can see it when downloading the container from my device), but I can't load any image (can't display them in my application).

Probably has to do with the newly introduced iOS feature “Private Access to Photo”?

Debug from Xcode console prints: AX Lookup problem - errorCode:1100 error:Permission denied portName:'com.apple.iphone.axserver'

I use the NativeGallery.GetImageFromGallery() method.

  • Unity version: 2023.2.7f1
  • Platform: Sonoma 14.5
  • Device: iOS 18.1
  • How did you download the plugin: Package Manager (v1.8.0)
@yasirkula
Copy link
Owner

Hi, are you loading images with NativeGallery.LoadImageAtPath? Is this issue reproducible for all images in your Photos (including photos existing on phone's disk)?

@cchl100
Copy link
Author

cchl100 commented Dec 18, 2024

Thanks for the quick reply, yes, I'm using NativeGallery.LoadImageAtPath, and the issue is for all images including in local.

@yasirkula
Copy link
Owner

That's sad to hear. I think "Private Access to Photo" is the iOS 14 privacy change, just relabeled.

I'll google the error message but usually they don't lead to anywhere so I'm pessimistic. If you find anything new, please let me know. I'd recommend logging the outputs of GetImageFromGallery and LoadImageAtPath. It'd help to know which stage it fails at. You can also try the following:

  • Download a png image to temporaryCachePath via UnityWebRequest
  • Try loading it via NativeGallery.LoadImageAtPath
  • Try loading it via Unity's Texture2D.LoadImage

@cchl100
Copy link
Author

cchl100 commented Dec 18, 2024

I see thanks.
Printing permission shows “Granted” and image path is correct from NativeGallery.Permission permission = NativeGallery.GetImageFromGallery((path) =>{…} but same Ax Lookup problem.

@yasirkula
Copy link
Owner

yasirkula commented Dec 18, 2024

I've googled the error message but the results weren't related to Photos unfortunately (do let me know if you find different results). Can you test the other things I've mentioned when you get the chance?

PS. I recommend doing these tests on a clean Unity project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants