We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07ab1ee commit 5dada0fCopy full SHA for 5dada0f
1 file changed
scripts/build-plugin.sh
@@ -23,16 +23,17 @@ build_plugin() {
23
24
echo "Building $PLUGIN_TARGET ($arch)..." >&2
25
26
- # Use a dedicated DerivedData path to avoid stale artifacts from other builds
+ # Use -scheme (not -target) with -derivedDataPath to ensure proper
27
+ # transitive SPM dependency resolution in explicit module builds
28
DERIVED_DATA_DIR="build/DerivedData"
29
30
if ! xcodebuild \
31
-project "$PROJECT" \
- -target "$PLUGIN_TARGET" \
32
+ -scheme "$PLUGIN_TARGET" \
33
-configuration "$CONFIG" \
34
-arch "$arch" \
35
ONLY_ACTIVE_ARCH=YES \
- CONFIGURATION_BUILD_DIR="$build_dir" \
36
+ CONFIGURATION_BUILD_DIR="$(pwd)/$build_dir" \
37
CODE_SIGN_IDENTITY="$SIGN_IDENTITY" \
38
CODE_SIGN_STYLE=Manual \
39
DEVELOPMENT_TEAM="$TEAM_ID" \
0 commit comments