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.

Revisions

  1. raid5 created this gist Dec 20, 2017.
    19 changes: 19 additions & 0 deletions buddybuild_carthage_command.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    #!/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