Skip to content

Instantly share code, notes, and snippets.

@Nelyus
Nelyus / copyCarthageFrameworks.sh
Last active September 21, 2015 14:05
Copy frameworks build by carthage to the target build dir, so Xcode can find them more easily (for exemple in playgrounds)
#!/usr/bin/env sh
# Carthage build dirs per platform
CARTHAGE_IOS_BUILD_DIR="Carthage/Build/iOS"
CARTHAGE_MAC_BUILD_DIR="Carthage/Build/Mac"
if [ "$PLATFORM_NAME" = "iphoneos" -o "$PLATFORM_NAME" = "iphonesimulator" ]; then
CARTHAGE_BUILD_DIR="$CARTHAGE_IOS_BUILD_DIR"
elif [ "$PLATFORM_NAME" = "macosx" ]; then
CARTHAGE_BUILD_DIR="$CARTHAGE_MAC_BUILD_DIR"