Skip to content
New issue

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

How to use addResourceFile #83

Open
RDPCoder opened this issue Dec 27, 2019 · 1 comment
Open

How to use addResourceFile #83

RDPCoder opened this issue Dec 27, 2019 · 1 comment

Comments

@RDPCoder
Copy link

RDPCoder commented Dec 27, 2019

I want to add localized content, use addResourceFile, but keep prompting Cannot read property 'path' of null
2
1

Code:
var languageResourceFile = myProj.addResourceFile("InfoPlist.strings");
if (languageResourceFile){
myProj.addToPbxResourcesBuildPhase(languageResourceFile);
myProj.addToPbxBuildFileSection(languageResourceFile);
fs.writeFileSync(projectPbxprojNamePath, myProj.writeSync());
}

@Joshuabaker2
Copy link

For others who run into this issue, the trick is to have a Resources folder in your project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants