Skip to content

Commit c58a6f2

Browse files
authored
Merge pull request #33 from devMEremenko/derived-folder-used
Updated to use a seperate build folder
2 parents b9d0c54 + db5feb0 commit c58a6f2

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

ReadMe.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,11 +162,15 @@ A framework that includes **42** popular CocoaPods libraries and **70+** depende
162162
**Q: Why is CocoaPods not excluded from git-repo?**
163163
- The project is also used by non-programmers. Let's *keep it simple*.
164164

165+
**Q: Will it affect my other Xcode projects?**
166+
- A separate build folder is created for the benchmark run that is then deleted after it finishes. The folder goes to about 2.5GB.
167+
165168
## YouTubers and bloggers
166169

167170
You are free to use these results in your videos and articles as well as to run XcodeBenchmark to compare Macs.
168171
Please make sure to add [the link](https://github.com/devMEremenko/XcodeBenchmark/) to this repository.
169172

173+
170174
## Contribution
171175

172176
**Since May 3, 2021, XcodeBenchmark must be used with Xcode 12.5 or above.**

benchmark.sh

Lines changed: 4 additions & 1 deletion
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)