diff --git a/build.sh b/build.sh index e916181e30..1f3884c944 100755 --- a/build.sh +++ b/build.sh @@ -48,7 +48,10 @@ if [ "$MODE" = "examples" ]; then build elif [ -f "${example}/Cartfile" ]; then echo "Using Carthage" + local_repo=`pwd` cd $example + + echo "git \"file://${local_repo}\" \"master\"" > "Cartfile" carthage update --platform iOS xctool \ diff --git a/examples/CarthageBuildTest/Cartfile b/examples/CarthageBuildTest/Cartfile index aa14143b00..75ef551216 100644 --- a/examples/CarthageBuildTest/Cartfile +++ b/examples/CarthageBuildTest/Cartfile @@ -1 +1 @@ -github "facebook/AsyncDisplayKit" "master" +git "file:///build.sh/will/put/local/absolute/path/here" "master"