Commit 3338635
fix(macOS): disable index store for nested xcodebuild invocations
The Xcode scheme drives the developer build through a legacy target with
passBuildSettingsInEnvironment, so the outer build exports its settings β
COMPILER_INDEX_STORE_ENABLE=Default among them β into Craft.sh and on down to
the xcodebuild invocations that build the Finder Sync and File Provider
extensions, which pick them up as setting overrides. INDEX_DATA_STORE_DIR is
not exported with them, and those invocations override SYMROOT without a
derived data path, so in Debug the index store is enabled with nowhere to
write and clang is handed a valueless -index-store-path. It swallows the
argument behind it, which for the Realm package is the include path carrying
realm-core's headers, and the extension fails to build on
RLMUtil.hpp:23:9: fatal error: 'realm/array.hpp' file not found
Release builds never saw this: COMPILER_INDEX_STORE_ENABLE=Default leaves the
index store off there.
Pass COMPILER_INDEX_STORE_ENABLE=NO on the xcodebuild command lines, where it
outranks the inherited environment, and drop the index store variables in
Craft.sh so a build started from the scheme sees the same environment as one
started from a terminal.
Signed-off-by: Iva Horn <iva.horn@nextcloud.com>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent c726b86 commit 3338635
2 files changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
27 | 35 | | |
28 | 36 | | |
29 | 37 | | |
| |||
32 | 40 | | |
33 | 41 | | |
34 | 42 | | |
| 43 | + | |
35 | 44 | | |
36 | 45 | | |
37 | 46 | | |
| |||
55 | 64 | | |
56 | 65 | | |
57 | 66 | | |
| 67 | + | |
58 | 68 | | |
59 | 69 | | |
60 | 70 | | |
| |||
72 | 82 | | |
73 | 83 | | |
74 | 84 | | |
| 85 | + | |
75 | 86 | | |
76 | 87 | | |
77 | 88 | | |
| |||
90 | 101 | | |
91 | 102 | | |
92 | 103 | | |
| 104 | + | |
93 | 105 | | |
94 | 106 | | |
95 | 107 | | |
| |||
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
32 | 44 | | |
33 | 45 | | |
34 | 46 | | |
| |||
0 commit comments