Skip to content
New issue

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

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

Already on GitHub? # to your account

Assets are not added to the bundle #12

Open
JeroenJochems opened this issue Mar 15, 2023 · 5 comments
Open

Assets are not added to the bundle #12

JeroenJochems opened this issue Mar 15, 2023 · 5 comments

Comments

@JeroenJochems
Copy link

JeroenJochems commented Mar 15, 2023

When compiling an app clip in xcode, some of my assets are not added, or are somehow unavailable in the app:

Error: Unable to download file: Error Domain-NSURLErrorDomain Code=-1002 "unsupported URL" UserInfo-{NSErrorFailingURLStringKey-icomoon.ttf,NSErrorFailingURLKey=icomoon.ttf...

Screenshot 2023-03-15 at 09 11 30

When I switch to the normal app scheme, it does work without problems.

@anythingmachine
Copy link

I have the same issue when trying to load a font in my assets folder. It is trying to access the url:

https://127.0.0.1:8081/assets/assets/fonts/Pacifico-Regular.ttf?platform=ios&hash=.....

I'm not sure how things work under the hood, but it seems weird to me that the 'assets' is duplicated at the beginning of the url.

@Fannolo
Copy link

Fannolo commented Sep 6, 2023

did anyone find a solution to this problem?

@manlio16
Copy link

???

@RobertSasak
Copy link

I did few checks on simulator. Here are my findings:

  • The url is valid even if it is containing assets twice.
  • It does not help to to use full IP address instaed of localhost.
  • Url works inside Safari on simulator
  • Fonts are loading if Build configuration is set to Release. I guess this is due the fact that in release mode are fonts already bundled in the app and do not download via network.
  • App Clips does not support gRPC network call FR: App Clips support for Firestore, Database, and others firebase/firebase-ios-sdk#6211 However I do not think that font loading is using any of it.

@outlandnish
Copy link

@RobertSasak related to your findings about not supporting gRPC network calls, it looks like this is failing because App Clips don't support background download sessions.

The error I see in the logs is failed to create a background NSURLSessionDownloadTask, as remote session is unavailable. There's a relevant support question on the Apple Developer forums: https://developer.apple.com/forums/thread/669148

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

No branches or pull requests

6 participants