Open TheHeumanModean opened 1 year ago
I have same problem. App builds but fonts do not work in ios. When i apply this fix, build start to fail.
Not sure what the problem is, happily merge whatever PR you do to fix this
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 "
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.
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