Last active
June 17, 2019 06:55
-
-
Save ppm/2145199d891fd9b064d37e1f66111420 to your computer and use it in GitHub Desktop.
Generate xcconfig to inject iOS 13 compilation condition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ $SDK_VERSION_MAJOR -ge 130000 ]; then | |
CONDITIONS="AVAILABLE_iOS_13 \$(inherited)" | |
else | |
CONDITIONS="\$(inherited)" | |
fi | |
cat <<_EOT_ > "$PROJECT_DIR/Generated/Custom.xcconfig" | |
SWIFT_ACTIVE_COMPILATION_CONDITIONS=$CONDITIONS | |
_EOT_ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment