-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Labels
Description
- carthage install method: [ ] .pkg, [X] homebrew, [ ] source
which carthage
: /usr/local/bin/carthagecarthage version
: 0.29.0xcodebuild -version
: Xcode 9.3 Build version 9E145- Are you using
--no-build
? no - Are you using
--no-use-binaries
? yes - Are you using
--use-submodules
? no - Are you using
--cache-builds
? yes - Are you using
--new-resolver
? no
Cartfile
github "SVProgressHUD/SVProgressHUD" ~> 2.0
Carthage Output
10:35:30 kenji@macboo:~/Desktop/CarthageCacheTest
cat Cartfile
github "SVProgressHUD/SVProgressHUD" ~> 2.0
10:35:33 kenji@macboo:~/Desktop/CarthageCacheTest
cat Cartfile.resolved
github "SVProgressHUD/SVProgressHUD" "2.2.4"
10:35:34 kenji@macboo:~/Desktop/CarthageCacheTest
rm -Rf Carthage ; time carthage bootstrap --no-use-binaries --cache-builds --platform iOS
*** Checking out SVProgressHUD at "2.2.4"
*** No cache found for SVProgressHUD, building with all downstream dependencies
*** xcodebuild output can be found in /var/folders/7v/dfg0p2vj1z58n65d99l2n1lh0000gp/T/carthage-xcodebuild.5CyxXz.log
*** Building scheme "SVProgressHUD-Framework" in SVProgressHUD.xcodeproj
real 0m25.314s
user 0m24.218s
sys 0m7.705s
10:36:21 kenji@macboo:~/Desktop/CarthageCacheTest
ls -l /Users/kenji/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/SVProgressHUD/
total 0
drwxrwxr-x@ 6 kenji staff 192 Apr 1 10:36 2.2.4
drwxrwxr-x@ 6 kenji staff 192 Apr 1 10:19 2.2.5
10:36:28 kenji@macboo:~/Desktop/CarthageCacheTest
rm -Rf Carthage ; time carthage bootstrap --no-use-binaries --cache-builds --platform iOS
*** Checking out SVProgressHUD at "2.2.4"
*** No cache found for SVProgressHUD, building with all downstream dependencies
*** xcodebuild output can be found in /var/folders/7v/dfg0p2vj1z58n65d99l2n1lh0000gp/T/carthage-xcodebuild.fpieKP.log
*** Building scheme "SVProgressHUD-Framework" in SVProgressHUD.xcodeproj
real 0m25.840s
user 0m25.477s
sys 0m6.808s
Actual outcome
Carthage did not use cached build if I rm the Carthage directory of my working copy (what our CI does before each build)
Expected outcome
Carthage should use the previously compiled framework stored in ~/Library/Caches/org.carthage.CarthageKit/DerivedData when running the second bootstrap command
I used SVProgressHUD here to have a "quickly recompiled" framework, but it is also the other dependencies (and our CI jobs are taking ages to recompile each time all frameworks)
PWrzesinski and peteranny