HomeiOS Developmentios - xcodebuild swift package deal: supress all warnings from dependent Swift...

ios – xcodebuild swift package deal: supress all warnings from dependent Swift packages however not the principle goal


The right way to suppress all the warnings from third-party dependencies however not from the principle goal? A number of third-party dependencies put in by way of SPM pollute the construct log with warnings, these should not the issues I would prefer to give attention to and get a report, since they by no means be mounted.

Code I am utilizing in my construct script:

#!/bin/bash -e

SCHEME_NAME="NameOfTheScheme"
WORKSPACE_NAME="NameOfTheWorkspace.xcworkspace"
DERIVED_DATA="./DerivedData"

rm -rf Package deal.resolved
git clear -dxff

xcodebuild -resolvePackageDependencies -workspace $WORKSPACE_NAME -scheme $SCHEME_NAME -derivedDataPath $DERIVED_DATA OTHER_SWIFT_FLAGS="-Xfrontend -suppress-warnings"
# iOS module construct
xcodebuild -workspace $WORKSPACE_NAME -scheme $SCHEME_NAME -sdk iphoneos -destination 'generic/platform=iOS' -derivedDataPath $DERIVED_DATA
xcodebuild -workspace $WORKSPACE_NAME -scheme $SCHEME_NAME -sdk iphonesimulator -destination 'generic/platform=iOS Simulator' -derivedDataPath $DERIVED_DATA

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments