You've already forked joplin
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:
@@ -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
|
||||
|
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user