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

add correct xmlbuilder before running ios for the first time #1451

Merged
2 commits merged into from Mar 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/engine-core/src/tasks/global/taskNew.ts
Expand Up @@ -506,6 +506,11 @@ const taskNew = async (c: RnvContext) => {
cwd: c.paths.project.dir,
});

// Add xmlbuilder before the first run
await executeAsync(`${isYarnInstalled() ? 'yarn' : 'npm'} add xmlbuilder@^15.1.1`, {
cwd: c.paths.project.dir,
});

// Check if node_modules folder exists
if (!fsExistsSync(path.join(c.paths.project.dir, 'node_modules'))) {
logError(
Expand Down