1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

Chore: Fixing iOS build

This commit is contained in:
Laurent Cozic
2025-03-16 11:46:09 +00:00
parent d7d6fd5ccd
commit d735cf64e0
2 changed files with 11 additions and 1 deletions

View File

@@ -7,4 +7,7 @@
# Customize the NODE_BINARY variable here.
# For example, to use nvm with brew, add the following line
# . "$(brew --prefix nvm)/nvm.sh" --no-use
export NODE_BINARY=$(command -v node)
# Note: `$(command -v node)` doesn't work so hardcode the path here - but it means it needs to be
# manually updated when Node is upgraded.
export NODE_BINARY=/opt/homebrew/opt/node@20/bin/node

View File

@@ -80,6 +80,13 @@ async function main() {
await warningMessage();
// React Native caches a path to Node in there, which appears to point to a copy of the
// executable in a temp folder. If those temp folders are deleted it will still try to use that
// path and fail. Running "Clean build" won't remove `.xcode.env.local` so it's safer to always
// delete it, since if there's an issue the error makes no sense whatsoever, and several hours
// will be lost trying to fix the issue.
await fs.remove(`${mobileDir}/ios/Pods/../.xcode.env.local`);
const pbxprojFilePath = `${mobileDir}/ios/Joplin.xcodeproj/project.pbxproj`;
await checkDeploymentTargets(pbxprojFilePath);