You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
iOS fails build with No such file or directory found on each of my ttf files
Steps that I did to fix
in the file ios/projectName.xcodeproj/project.pgxproj under the /* Begin PBXFileReference section */ replaced every ../assets/fonts/font-name/ttf-file-name.ttf with an extra ../ to make ../../assets/fonts/font-name/ttf-file-name.ttf
The problem here is that the cordova-node-xcode library's project.addResourceFile() is to add the resource as "Relative to Group" in Xcode, which is "/Resources".
I'm investigating if there is an option on addResourceFile() that can set it relative to the project. I'll have a PR with a potential solution for discussion shortly.
cayleyh
added a commit
to cayleyh/react-native-asset
that referenced
this issue
Jun 15, 2023
Context
used ignite boilerplate this potentially changes iOS folder structure
Steps to reproduce
./assets/fonts
react-native.config.js
npx react-native-asset
No such file or directory found
on each of my ttf filesSteps that I did to fix
ios/projectName.xcodeproj/project.pgxproj
under the/* Begin PBXFileReference section */
replaced every../assets/fonts/font-name/ttf-file-name.ttf
with an extra ../ to make../../assets/fonts/font-name/ttf-file-name.ttf
before
after
The text was updated successfully, but these errors were encountered: