Open jottenlips opened 1 month ago
Tried recreating the issue and solving it on a fork, this may be a bug in expo-config plugins. Going to try upgrading that package to the latest to see if it resolves. https://github.com/expo/config-plugins
logs from above xcode project:
✔ Updated package.json and added index.js entry point for iOS and Android
› Installing using npm
> npm install
Updating Info.plist files
plistFilePath: /Users/johnottenlips/vestaboard/expo-native-fonts/example/ios/exponativefontsexampleWidgetExtension/Info.plist
Copying files
SourceDir: /Users/johnottenlips/vestaboard/expo-native-fonts/example/fonts
TargetDir: /Users/johnottenlips/vestaboard/expo-native-fonts/example/ios/Fonts
Font files copied to ios/Fonts
Adding fonts to target exponativefontsexampleWidgetExtension
Font files:
[
'Montserrat/Montserrat-Black.ttf',
'Montserrat/Montserrat-BlackItalic.ttf',
'Montserrat/Montserrat-Bold.ttf',
'Montserrat/Montserrat-BoldItalic.ttf'
]
Searching for target exponativefontsexampleWidgetExtension
Target UUID: E8F07E52AAB34508AF54FEE8 "exponativefontsexampleWidgetExtension"
Adding resource file Montserrat/Montserrat-Black.ttf
Adding resource file Montserrat/Montserrat-BlackItalic.ttf
Adding resource file Montserrat/Montserrat-Bold.ttf
Adding resource file Montserrat/Montserrat-BoldItalic.ttf
Resource files copied successfully.
Must be a bug in addResourceFileToGroup
still an issue as of @expo/config-plugins 8.0.5
Will try get something over next week or if you have the time, the addResourceFile in this might work:
https://github.com/apache/cordova-node-xcode/blob/master/lib/pbxProject.js#L473
You shouldnt need to install, I believe its already included in expo modules.
thanks so much, I'll take a look at the cordova project
There seems to be some bugs within the xcode project generation library, I'm getting some serious grief with missing tags within the project file when using different methods. I'll try dig out some time again later in the week, but in short - there be dragons.
Sounds good, I have a workaround for now. Instead of letting EAS run the prebuild, I am prebuilding our project locally, checking the target box, and committing the ios
and android
folders. This makes it so EAS only runs pod install
and won't recreate the project file with the font bundled in with the correct targets checked.
Example: https://github.com/Vestaboard/expo-native-fonts/pull/1