Last active
August 20, 2023 16:39
-
-
Save npu3pak/108d8332a774289c08472d6fd85a1bbb to your computer and use it in GitHub Desktop.
This script fixes all TwitterKit related warnings in XCode 10.1. Add new run script build phase with this code:
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
readonly MODULEMAP="${PODS_ROOT}/TwitterCore/iOS/TwitterCore.framework/Modules/module.private.modulemap" | |
readonly HEADER="${PODS_ROOT}/TwitterCore/iOS/TwitterCore.framework/Headers/TwitterCore.h" | |
if ! grep -q "TwitterCore_Private" "${MODULEMAP}"; then | |
cat >"${MODULEMAP}" <<EOL | |
module TwitterCore_Private { | |
} | |
EOL | |
fi | |
if ! grep -q "TWTRColorUtil.h" "${HEADER}"; then | |
cat >>"${HEADER}" <<EOL | |
#import "TWTRColorUtil.h" | |
EOL | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Doesn't work too. Maybe it depends on 'TwitterKit', '3.4.2' and 'TwitterCore', '3.2.0' versions. Anyway, a working solution for me, add into podfile.
Link from https://github.com/twitter-archive/twitter-kit-ios/issues/18#issuecomment-432633038