From 1986877c85e5aa52f620e6ca7dc034aa702eb93a Mon Sep 17 00:00:00 2001 From: Kyle Date: Fri, 5 Apr 2024 10:49:34 +0800 Subject: [PATCH] Update iOS CI to add WERROR support via Xcode --- .github/workflows/ios.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index 2ca4ea70..4b7a65b9 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -35,10 +35,10 @@ jobs: -scheme OpenGraph-Package \ -configuration Debug \ -destination "platform=iOS" \ + -derivedDataPath .build-debug \ -skipMacroValidation \ -skipPackagePluginValidation \ - -derivedDataPath .build-debug - # Disable OTHER_SWIFT_FLAGS="-warnings-as-errors" due to remote dependency warning will be treated as error in xcodebuild + OTHER_SWIFT_FLAGS="-warnings-as-errors" - name: Build and run tests in debug mode with coverage on iOS Simulator run: | xcodebuild test \ @@ -49,6 +49,7 @@ jobs: -derivedDataPath .build-test-debug \ -skipPackagePluginValidation \ -skipMacroValidation + # OTHER_SWIFT_FLAGS="-warnings-as-errors" Conflicting options '-warnings-as-errors' and '-suppress-warnings' profdata_file_path=$(find . -path "*.build-test-debug/Build/ProfileData*Coverage.profdata" -type f) xcrun llvm-cov show \ -instr-profile=$profdata_file_path \