Skip to content

Commit 5a02eac

Browse files
authored
fix: Xcode14 build (#1297)
1 parent 70d8d28 commit 5a02eac

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

build/project-template/__PROJECT_NAME__.xcodeproj/project.pbxproj

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,13 +207,18 @@
207207
/* Begin PBXShellScriptBuildPhase section */
208208
C97FD7AC1ADE5369004DB2A4 /* NativeScript PreBuild */ = {
209209
isa = PBXShellScriptBuildPhase;
210+
alwaysOutOfDate = 1;
210211
buildActionMask = 2147483647;
211212
files = (
212213
);
213214
inputPaths = (
214215
);
215216
name = "NativeScript PreBuild";
216217
outputPaths = (
218+
"$CONFIGURATION_BUILD_DIR/metadata-arm64.bin",
219+
"$CONFIGURATION_BUILD_DIR/metadata-arm64e.bin",
220+
"$CONFIGURATION_BUILD_DIR/metadata-i386.bin",
221+
"$CONFIGURATION_BUILD_DIR/metadata-x86_64.bin",
217222
);
218223
runOnlyForDeploymentPostprocessing = 0;
219224
shellPath = /bin/sh;
@@ -222,6 +227,7 @@
222227
};
223228
CD3EAD351B05FF060042DBFC /* NativeScript PostBuild */ = {
224229
isa = PBXShellScriptBuildPhase;
230+
alwaysOutOfDate = 1;
225231
buildActionMask = 2147483647;
226232
files = (
227233
);
@@ -232,11 +238,12 @@
232238
);
233239
runOnlyForDeploymentPostprocessing = 0;
234240
shellPath = /bin/sh;
235-
shellScript = "\"$SRCROOT/internal/nativescript-post-build\"";
241+
shellScript = "\"$SRCROOT/internal/nativescript-post-build\"\n";
236242
showEnvVarsInLog = 0;
237243
};
238244
CD62955B1BB2651D00AE3A93 /* NativeScript PreLink */ = {
239245
isa = PBXShellScriptBuildPhase;
246+
alwaysOutOfDate = 1;
240247
buildActionMask = 2147483647;
241248
files = (
242249
);
@@ -247,7 +254,7 @@
247254
);
248255
runOnlyForDeploymentPostprocessing = 0;
249256
shellPath = /bin/sh;
250-
shellScript = "\"$SRCROOT/internal/nativescript-pre-link\"";
257+
shellScript = "\"$SRCROOT/internal/nativescript-pre-link\"\n";
251258
showEnvVarsInLog = 0;
252259
};
253260
/* End PBXShellScriptBuildPhase section */
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
#!/usr/bin/env bash
22
#Ignore errors while inserting environment variables (some could be readonly)
33
(echo "set +e"; echo "set +o posix"; export; echo "set -o posix"; echo "set -e";) > ./.build_env_vars.sh
4+
5+
# create temporary empty metadata files for XCode LD/LDPLUSPLUS flag analysis
6+
for arch in $VALID_ARCHS
7+
do :
8+
touch "$CONFIGURATION_BUILD_DIR/metadata-$arch.bin"
9+
done

0 commit comments

Comments
 (0)