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

Unable to load image asset named albumArrow #3

Open
omarshamali opened this issue Oct 17, 2022 · 2 comments
Open

Unable to load image asset named albumArrow #3

omarshamali opened this issue Oct 17, 2022 · 2 comments

Comments

@omarshamali
Copy link

FYPhoto/XCAssets+Generated.swift:73: Fatal error: Unable to load image asset named albumArrow.
2022-10-17 20:51:53.338299+0300 XX[85366:1124261] FYPhoto/XCAssets+Generated.swift:73: Fatal error: Unable to load image asset named albumArrow.

@omarshamali
Copy link
Author

I dont know if its a good fix or not, but i put a mark on both FYphoto as follows
Screen Shot 2022-10-17 at 8 54 00 PM

@MixerTrixer
Copy link

MixerTrixer commented Mar 16, 2023

I found a little fix or a workaround for this weird issue.

What you need to do is first locate the FYPhoto images, they are located inside

"The project navigator>Pods>Pods>FYPhoto>Recources>FYPhoto.XCAssets"
Screenshot 2023-03-16 at 11 36 08
Screenshot 2023-03-16 at 11 39 58

Now that you have located all the images, copy all off them into a separate folder in your personal app.XCAssets like so:
Screenshot 2023-03-16 at 11 44 09

Now you must go to the file where the error occurred: XCAssets+Generated.swift
This file is located just above the pods resources folder where we got all the images.
Screenshot 2023-03-16 at 11 50 18

Now all you need to do Is to scroll all the way down to the BundleToken class and change the name of the URL, forResource to Assets.

The change is from this:
Screenshot 2023-03-16 at 12 07 17

Too this
Screenshot 2023-03-16 at 12 07 59

Now your app will read the images from your apps asset folder instead of the pods assets folder. which is more convenient.

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