Skip to content

Commit 65d9c8d

Browse files
Copilotkiyarose
andauthored
Fix xcodebuild archive -target incompatibility in iOS build steps
Agent-Logs-Url: https://github.com/SillyLittleTech/Flean/sessions/731f651e-2d58-461d-8575-496b03ece0d7 Co-authored-by: kiyarose <75678535+kiyarose@users.noreply.github.com>
1 parent 399964b commit 65d9c8d

2 files changed

Lines changed: 16 additions & 14 deletions

File tree

.github/workflows/build-and-release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,26 +68,27 @@ jobs:
6868
cd ios
6969
mkdir -p build
7070
71-
xcodebuild archive \
71+
xcodebuild build \
7272
-project Flean.xcodeproj \
7373
-target Flean \
7474
-configuration Release \
75-
-archivePath build/Flean.xcarchive \
7675
-destination 'generic/platform=iOS' \
7776
-skipPackagePluginValidation \
77+
SYMROOT=build \
7878
CODE_SIGN_IDENTITY="" \
7979
CODE_SIGNING_REQUIRED=NO \
8080
CODE_SIGN_ENTITLEMENTS=""
8181
82-
# Zip the .app from inside the xcarchive for distribution
83-
APP_PATH=$(find build/Flean.xcarchive/Products -name "Flean.app" -type d | head -1)
82+
# Find and zip the .app
83+
APP_PATH=$(find build -name "Flean.app" -type d | head -1)
8484
if [ -z "$APP_PATH" ]; then
85-
echo "❌ Flean.app not found in xcarchive"
85+
echo "❌ Flean.app not found"
8686
exit 1
8787
fi
88-
APP_DIR="$(dirname "$APP_PATH")"
8988
OUT_ZIP="$(pwd)/build/Flean-iOS.app.zip"
90-
( cd "$APP_DIR" && zip -r "$OUT_ZIP" "Flean.app" )
89+
APP_DIR="$(dirname "$APP_PATH")"
90+
APP_NAME="$(basename "$APP_PATH")"
91+
( cd "$APP_DIR" && zip -r "$OUT_ZIP" "$APP_NAME" )
9192
echo "✅ iOS build succeeded"
9293
9394
# macOS Build

.github/workflows/prerelease.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,26 +34,27 @@ jobs:
3434
cd ios
3535
mkdir -p build
3636
37-
xcodebuild archive \
37+
xcodebuild build \
3838
-project Flean.xcodeproj \
3939
-target Flean \
4040
-configuration Release \
41-
-archivePath build/Flean.xcarchive \
4241
-destination 'generic/platform=iOS' \
4342
-skipPackagePluginValidation \
43+
SYMROOT=build \
4444
CODE_SIGN_IDENTITY="" \
4545
CODE_SIGNING_REQUIRED=NO \
4646
CODE_SIGN_ENTITLEMENTS=""
4747
48-
# Zip the .app from inside the xcarchive for distribution
49-
APP_PATH=$(find build/Flean.xcarchive/Products -name "Flean.app" -type d | head -1)
48+
# Find and zip the .app
49+
APP_PATH=$(find build -name "Flean.app" -type d | head -1)
5050
if [ -z "$APP_PATH" ]; then
51-
echo "❌ Flean.app not found in xcarchive"
51+
echo "❌ Flean.app not found"
5252
exit 1
5353
fi
54-
APP_DIR="$(dirname "$APP_PATH")"
5554
OUT_ZIP="$(pwd)/build/Flean-iOS.app.zip"
56-
( cd "$APP_DIR" && zip -r "$OUT_ZIP" "Flean.app" )
55+
APP_DIR="$(dirname "$APP_PATH")"
56+
APP_NAME="$(basename "$APP_PATH")"
57+
( cd "$APP_DIR" && zip -r "$OUT_ZIP" "$APP_NAME" )
5758
echo "✅ iOS build succeeded"
5859
5960
- name: Build macOS

0 commit comments

Comments
 (0)