Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
tgoyne committed Feb 13, 2024
1 parent fdf4fde commit 9c89114
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ create_xcframework() {
local platform="$3"

local out_path="$ROOT_WORKSPACE/$config/$platform/$product.xcframework"
find "$ROOT_WORKSPACE" -maxdepth 5
# find "$ROOT_WORKSPACE" -maxdepth 5
find "$ROOT_WORKSPACE" -path "*/$config*/$product.framework" \
| sed 's/.*/-framework &/' \
| xargs xcodebuild -create-xcframework -allow-internal-distribution -output "$out_path"
Expand Down Expand Up @@ -1085,7 +1085,14 @@ case "$COMMAND" in
platform="$2"
xcode_version=$(echo "$COMMAND" | cut -d- -f4 )

find . -name '*.zip' -exec unzip {} \;
# Artifacts are nested zips so need to be extracted twice
find . -name 'build-*.zip' -exec unzip {} \;
find . -name 'xcode-cloud-build-*.zip' -exec unzip {} \;

# Spaces with xargs are complicated so get rid of them
for dir in "RealmSwift Build "*; do
mv "$dir" build-$(echo "$dir" | cut -d' ' -f3)
done

create_xcframework Realm Release "$platform"
create_xcframework RealmSwift Release "$platform"
Expand Down

0 comments on commit 9c89114

Please sign in to comment.