diff --git a/scripts/xcode.sh b/scripts/xcode.sh
index 13ff06dee4c9ed1733c2e2351538dd26febf755a..3e6d86a16fcf24983d47c7ad94720bd546b0e72d 100755
--- a/scripts/xcode.sh
+++ b/scripts/xcode.sh
@@ -19,3 +19,6 @@ fi
 
 hdiutil detach "${mountpoint}"
 rm -rf /tmp/xcode
+
+echo "Agreeing the Xcode license..."
+xcodebuild -license accept