diff --git a/Podfile b/Podfile index 1df4760cb..3703651c8 100644 --- a/Podfile +++ b/Podfile @@ -89,4 +89,27 @@ post_install do |pi| end end end + + afnetworking_reachability = pi.sandbox.root + 'AFNetworking/AFNetworking/AFNetworkReachabilityManager.m' + if File.exist?(afnetworking_reachability) + file_content = File.read(afnetworking_reachability) + patched_content = file_content + .gsub('#import ' + "\n", "#import \n#import \n") + .gsub("#import \n", '') + .gsub('struct sockaddr_in6 address;', 'struct sockaddr_storage address;') + .gsub('address.sin6_len = sizeof(address);', 'address.ss_len = sizeof(address);') + .gsub('address.sin6_family = AF_INET6;', 'address.ss_family = AF_INET6;') + if patched_content != file_content + File.write(afnetworking_reachability, patched_content) + end + end + + afnetworking_http = pi.sandbox.root + 'AFNetworking/AFNetworking/AFHTTPSessionManager.m' + if File.exist?(afnetworking_http) + file_content = File.read(afnetworking_http) + patched_content = file_content.gsub("#import \n", '') + if patched_content != file_content + File.write(afnetworking_http, patched_content) + end + end end diff --git a/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m b/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m index b4ab5915c..2e25641e9 100644 --- a/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m +++ b/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m @@ -29,7 +29,6 @@ #import #import -#import #import #import #import diff --git a/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.m b/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.m index 0322bf9b8..9481112ea 100644 --- a/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.m +++ b/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.m @@ -22,8 +22,8 @@ #import "AFNetworkReachabilityManager.h" #if !TARGET_OS_WATCH +#import #import -#import #import #import #import @@ -147,10 +147,10 @@ + (instancetype)managerForAddress:(const void *)address { + (instancetype)manager { #if (defined(__IPHONE_OS_VERSION_MIN_REQUIRED) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000) || (defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101100) - struct sockaddr_in6 address; + struct sockaddr_storage address; bzero(&address, sizeof(address)); - address.sin6_len = sizeof(address); - address.sin6_family = AF_INET6; + address.ss_len = sizeof(address); + address.ss_family = AF_INET6; #else struct sockaddr_in address; bzero(&address, sizeof(address)); diff --git a/ReadMe.md b/ReadMe.md index 89d04c798..0a6232bb1 100644 --- a/ReadMe.md +++ b/ReadMe.md @@ -13,10 +13,22 @@ If a device you are looking for is not listed below, check out open [issues](htt | Device | CPU | RAM | SSD | Xcode | macOS | Time(sec) | |:--------------------:|:-----------------------:|:---:|:---:|:-----:|:--------:|:---------:| +| MacBook Pro 16" 2026 | M5 Max 18-core | 48 | 2TB | 26.3 | 26.4 | 84 | +| MacBook Pro 16" 2026 | M5 Pro 18-core | 48 | 1TB | 26.3 | 26.3 | 89 | +| MacBook Pro 16" 2024 | M4 Max 16-core | 48 | 1TB | 26.3 | 26.2 | 89 | +| Mac Studio 2023 | M2 Ultra 24-core | 64 | 2TB | 26.2 | 26.2 | 93 | +| MacBook Pro 14" 2026 | M5 Pro 15-core | 24 | 1TB | 26.4 | 26.4 | 101 | | Macbook Pro 16" 2024 | M4 Pro 14c | 48 | 1TB | 26.1 | 15.7.1 | 104 | -| Macbook Pro 16" 2024 | M2 Pro 12c | 16 | 1TB | 26.1 | 26.1 | 158 | -| Mac Mini 2023 | M2 Pro 10c | 16 | 512 | 26.1 | 26.1 | 185 | -| Macbook Air 13" 2024 | M4 10c (10c GPU) | 16 | 256 | 26.1 | 26.1 | 188 | +| MacBook Pro 14" 2024 | M4 Pro 14c | 48 | 1TB | 26.3 | 26.3.1 | 108 | +| Mac Studio 2022 | M1 Ultra 20-core | 128 | 1TB | 26.1.1| 26.1 | 112 | +| Macbook Pro 14" 2025 | M5 10-core | 16 | 512 | 26.3 | 26.3.1 | 146 | +| Mac Mini 2024 | M4 Pro 14-core | 64 | 4TB | 26.4 | 26.3.1 | 146 | +| MacBook Pro 14" 2024 | M4 Pro 12c | 24 | 512 | 26.3 | 26.3 | 164 | +| Macbook Air 13" 2026 | M5 10c (10c GPU) | 32 | 512 | 26.3 | 26.3.1 | 173 | +| Macbook Air 13" 2024 | M4 10c (10c GPU) | 16 | 256 | 26.1 | 26.1 | 188 | +| Macbook Pro 16" 2021 | M1 Max 10-core | 64 | 1TB | 26.3 | 26.4 | 188 | +| Macbook Pro 14" 2021 | M1 Pro 10-core | 16 | 1TB | 26.3 | 26.2 | 194 | +| Macbook Neo 13" 2026 | A18 Pro 6-core | 8 | 512 | 26.3 | 26.3.2 | 404 | ## Xcode 16 @@ -382,7 +394,7 @@ Please make sure to add [the link](https://github.com/devMEremenko/XcodeBenchmar ## Contribution -**Since Oct 1st, 2023, XcodeBenchmark must be used with Xcode 15.0 or above.** +**Since Feb 2026, XcodeBenchmark must be used with Xcode 26.3 or above.** - **If you have any non-Apple hardware components - submit your results to the `Custom Hardware` table.** - [Submit a pull request](https://github.com/devMEremenko/XcodeBenchmark/pulls). diff --git a/benchmark.sh b/benchmark.sh index 4e9c66a35..84d8418cb 100644 --- a/benchmark.sh +++ b/benchmark.sh @@ -7,18 +7,25 @@ echo "Preparing environment" START_TIME=$(date +"%T") -defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES +if ! defaults write com.apple.dt.Xcode ShowBuildOperationDuration YES >/dev/null 2>&1; then + echo "Warning: failed to enable Xcode build duration output" +fi -if [ -n "$PATH_TO_PROJECT" ]; then +if [ -d "$PATH_TO_PROJECT" ]; then echo "Running XcodeBenchmark..." echo "Please do not use your Mac while XcodeBenchmark is in progress\n\n" - xcodebuild -workspace "$PATH_TO_PROJECT" \ + if ! xcodebuild -workspace "$PATH_TO_PROJECT" \ -scheme XcodeBenchmark \ -destination generic/platform=iOS \ -derivedDataPath "$PATH_TO_DERIVED" \ - build + build; then + echo "" + echo "❌ XcodeBenchmark build failed" + rm -rf "$PATH_TO_DERIVED" + exit 1 + fi echo "System Version:" "$(sw_vers -productVersion)" xcodebuild -version | grep "Xcode" @@ -54,9 +61,10 @@ if [ -n "$PATH_TO_PROJECT" ]; then echo "" echo "2️⃣ Share your results at https://github.com/devMEremenko/XcodeBenchmark" - rm -rfd "$PATH_TO_DERIVED" + rm -rf "$PATH_TO_DERIVED" else echo "XcodeBenchmark.xcworkspace was not found in the current folder" echo "Are you running in the XcodeBenchmark folder?" + exit 1 fi