We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I want to add localized content, use addResourceFile, but keep prompting Cannot read property 'path' of null
Code: var languageResourceFile = myProj.addResourceFile("InfoPlist.strings"); if (languageResourceFile){ myProj.addToPbxResourcesBuildPhase(languageResourceFile); myProj.addToPbxBuildFileSection(languageResourceFile); fs.writeFileSync(projectPbxprojNamePath, myProj.writeSync()); }
The text was updated successfully, but these errors were encountered:
For others who run into this issue, the trick is to have a Resources folder in your project.
Resources
Sorry, something went wrong.
No branches or pull requests
I want to add localized content, use addResourceFile, but keep prompting Cannot read property 'path' of null
Code:
var languageResourceFile = myProj.addResourceFile("InfoPlist.strings");
if (languageResourceFile){
myProj.addToPbxResourcesBuildPhase(languageResourceFile);
myProj.addToPbxBuildFileSection(languageResourceFile);
fs.writeFileSync(projectPbxprojNamePath, myProj.writeSync());
}
The text was updated successfully, but these errors were encountered: