Open ocarreterom opened 6 years ago
Same issue here, @ocarreterom did you resolve it ?
How are you executing react-native-version
? Is it installed globally, or are you running it from the project? Furthermore, can you provide a sample or an idea of your project directory structure?
problem is this function returns undefined (as wel as the right filename)
function getPlistFilenames(xcode) {
return unique(
flattenDeep(
xcode.document.projects.map(project => {
return project.targets.filter(Boolean).map(target => {
return target.buildConfigurationsList.buildConfigurations.map(
config => {
return config.ast.value.get("buildSettings").get("INFOPLIST_FILE")
.text;
}
);
});
})
)
);
}
I ran into this after adding a watch target to my project. Some of the resulting build configs don't have INFOPLIST_FILE
entries (instead they have GENERATE_INFOPLIST_FILE = YES;
for some reason).
I have this error running:
react-native-version
React Native Info