Skip to content

Commit d8a3aeb

Browse files
committed
chore(ci): fix ios builds
1 parent a378ba2 commit d8a3aeb

File tree

1 file changed

+20
-10
lines changed

1 file changed

+20
-10
lines changed

.github/workflows/build-ios.yml

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,13 +71,23 @@ jobs:
7171

7272
- name: Build App
7373
working-directory: examples/AppExampleFabric/ios
74-
run: "set -o pipefail && xcodebuild \
75-
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO \
76-
-derivedDataPath build -UseModernBuildSystem=YES \
77-
-workspace AppExampleFabric.xcworkspace \
78-
-scheme AppExampleFabric \
79-
-sdk iphonesimulator \
80-
-configuration Debug \
81-
-destination 'platform=iOS Simulator,name=iPhone 16 Pro Max' \
82-
build \
83-
CODE_SIGNING_ALLOWED=NO | xcpretty"
74+
run: |
75+
set -o pipefail
76+
xcodebuild \
77+
CC=clang CPLUSPLUS=clang++ LD=clang LDPLUSPLUS=clang++ GCC_OPTIMIZATION_LEVEL=0 GCC_PRECOMPILE_PREFIX_HEADER=YES ASSETCATALOG_COMPILER_OPTIMIZATION=time DEBUG_INFORMATION_FORMAT=dwarf COMPILER_INDEX_STORE_ENABLE=NO \
78+
-derivedDataPath build -UseModernBuildSystem=YES \
79+
-workspace AppExampleFabric.xcworkspace \
80+
-scheme AppExampleFabric \
81+
-sdk iphonesimulator \
82+
-configuration Debug \
83+
-destination 'platform=iOS Simulator,name=iPhone 16 Pro Max' \
84+
build \
85+
CODE_SIGNING_ALLOWED=NO 2>&1 | tee xcodebuild.log | xcpretty
86+
87+
- name: Upload build log on failure
88+
if: failure()
89+
uses: actions/upload-artifact@v4
90+
with:
91+
name: ios-build-log
92+
path: examples/AppExampleFabric/ios/xcodebuild.log
93+
if-no-files-found: warn

0 commit comments

Comments
 (0)