Skip to content

Instantly share code, notes, and snippets.

@raid5
Created December 20, 2017 17:21
Show Gist options
  • Save raid5/ae5c6787926e7cdd4412ad6bb4456a79 to your computer and use it in GitHub Desktop.
Save raid5/ae5c6787926e7cdd4412ad6bb4456a79 to your computer and use it in GitHub Desktop.
Custom BuddyBuild Carthage script to strip out unneeded schemes.
#!/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