Created
December 20, 2017 17:21
-
-
Save raid5/ae5c6787926e7cdd4412ad6bb4456a79 to your computer and use it in GitHub Desktop.
Custom BuddyBuild Carthage script to strip out unneeded schemes.
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
#!/bin/bash | |
# Save current directory to var | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
# Fetch dependencies but do not build | |
carthage update --no-build | |
# Remove AWSAuthSDK project as this is not needed | |
rm -r Carthage/Checkouts/aws-sdk-ios/AWSAuthSDK/ | |
# Strip out schemes that are not needed. We only need AWSCore and AWSPinpoint. | |
cd Carthage/Checkouts/aws-sdk-ios/AWSiOSSDKv2.xcodeproj/xcshareddata/xcschemes && find . ! -name "AWSCore.xcscheme" ! -name "AWSPinpoint.xcscheme" -delete | |
# Return to original directory | |
cd $DIR | |
# Build dependencies for iOS | |
carthage build --platform iOS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment