Skip to content

Commit 1986877

Browse files
committed
Update iOS CI to add WERROR support via Xcode
1 parent ec9c398 commit 1986877

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/ios.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ jobs:
3535
-scheme OpenGraph-Package \
3636
-configuration Debug \
3737
-destination "platform=iOS" \
38+
-derivedDataPath .build-debug \
3839
-skipMacroValidation \
3940
-skipPackagePluginValidation \
40-
-derivedDataPath .build-debug
41-
# Disable OTHER_SWIFT_FLAGS="-warnings-as-errors" due to remote dependency warning will be treated as error in xcodebuild
41+
OTHER_SWIFT_FLAGS="-warnings-as-errors"
4242
- name: Build and run tests in debug mode with coverage on iOS Simulator
4343
run: |
4444
xcodebuild test \
@@ -49,6 +49,7 @@ jobs:
4949
-derivedDataPath .build-test-debug \
5050
-skipPackagePluginValidation \
5151
-skipMacroValidation
52+
# OTHER_SWIFT_FLAGS="-warnings-as-errors" Conflicting options '-warnings-as-errors' and '-suppress-warnings'
5253
profdata_file_path=$(find . -path "*.build-test-debug/Build/ProfileData*Coverage.profdata" -type f)
5354
xcrun llvm-cov show \
5455
-instr-profile=$profdata_file_path \

0 commit comments

Comments
 (0)