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
I am trying to use IOSConfig.XcodeUtils.addResourceFileToGroup to add a font to my widget.
I expect the second checkbox to be selected after I run prebuild.
Code I am running:
console.log(`Target UUID: ${targetUuid}`)
for (const filePath of fontFiles) {
console.log(`Adding resource file ${filePath}`)
config.modResults = IOSConfig.XcodeUtils.addResourceFileToGroup({
filepath: path.join('Fonts', filePath),
groupName: 'Resources',
project,
isBuildFile: true,
verbose: true,
targetUuid, // I checked this UUID value and it is correct
});
}
console.log('Resource files copied successfully.')
output of prebuild
✔ 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.
The script looks like it runs fine, however, the target exponativefontsexampleWidgetExtension is not selected when I open the workspace.
Thanks! I'm happy to provide more details if needed!###
Config Plugin
@config-plugins/apple-settings
What platform(s) does this occur on?
iOS
SDK Version
48, for this example, but I have also run into this on 50
jottenlips
changed the title
addResourceFileToGroup Is not working for a target UUID that is different than the application native target
addResourceFileToGroup Is not being set for a target UUID that is different than the application native target
Jun 20, 2024
Summary
I am trying to use
IOSConfig.XcodeUtils.addResourceFileToGroup
to add a font to my widget.I expect the second checkbox to be selected after I run prebuild.
Code I am running:
output of prebuild
The script looks like it runs fine, however, the target
exponativefontsexampleWidgetExtension
is not selected when I open the workspace.Thanks! I'm happy to provide more details if needed!###
Config Plugin
@config-plugins/apple-settings
What platform(s) does this occur on?
iOS
SDK Version
48, for this example, but I have also run into this on 50
Reproducible demo
Vestaboard/expo-native-fonts#1
exponativefontsexampleWidgetExtension
should be selected when I open the workspace.The text was updated successfully, but these errors were encountered: