Skip to content

Commit cf3eb39

Browse files
committed
Updated to use a seperate build folder
1 parent 9afdb19 commit cf3eb39

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

ReadMe.md

+3
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,9 @@ A framework that includes **42** popular CocoaPods libraries and **70+** depende
8686
**Q: Why is CocoaPods not excluded from git-repo?**
8787
- The project is also used by non-programmers. Let's *keep it simple*.
8888

89+
**Q: Will it affect my other Xcode projects?**
90+
- A separate build folder is created for the benchmark run that is then deleted after it finishes. The folder goes to about 2.5GB.
91+
8992
## Contribution
9093

9194
- **Preferred:** [Submit a pull request](https://github.com/devMEremenko/XcodeBenchmark/pulls) and add a row to the `Score` section.

benchmark.sh

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
readonly PATH_TO_PROJECT=$(pwd)/XcodeBenchmark.xcworkspace
2+
readonly PATH_TO_DERIVED=$(pwd)/DerivedData
23

34
clear
45

@@ -7,7 +8,6 @@ echo "Preparing environment"
78
START_TIME=$(date +"%T")
89

910
defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES
10-
rm -rf ~/Library/Developer/Xcode/DerivedData
1111

1212
if [ -n "$PATH_TO_PROJECT" ]; then
1313

@@ -17,6 +17,7 @@ if [ -n "$PATH_TO_PROJECT" ]; then
1717
xcodebuild -workspace "$PATH_TO_PROJECT" \
1818
-scheme XcodeBenchmark \
1919
-destination generic/platform=iOS \
20+
-derivedDataPath "$PATH_TO_DERIVED" \
2021
build
2122

2223
echo "System Version:" "$(sw_vers -productVersion)"
@@ -53,6 +54,8 @@ if [ -n "$PATH_TO_PROJECT" ]; then
5354
echo ""
5455
echo "2️⃣ Share your results at https://github.com/devMEremenko/XcodeBenchmark"
5556

57+
rm -rfd "$PATH_TO_DERIVED"
58+
5659
else
5760
echo "XcodeBenchmark.xcworkspace was not found in the current folder"
5861
echo "Are you running in the XcodeBenchmark folder?"

0 commit comments

Comments
 (0)