The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build SDWebImageHEIFCoder, reference master (7db2c1), with Swift 6.2 (beta) for macOS (SPM) on 18 Jun 2025 21:03:47 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SDWebImage/SDWebImageHEIFCoder.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/SDWebImage/SDWebImageHEIFCoder
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7db2c1f Merge pull request #25 from SDWebImage/feature_color_profile_metadata
Cloned https://github.com/SDWebImage/SDWebImageHEIFCoder.git
Revision (git rev-parse @):
7db2c1f8c1140f16202714cad2084d535084f512
SUCCESS checkout https://github.com/SDWebImage/SDWebImageHEIFCoder.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/SDWebImage/SDWebImageHEIFCoder.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
/Users/admin/builder/spi-builder-workspace/SDWebImageHEIFCoder/Classes/SDImageHEIFCoder.m:305:13: error: incompatible pointer to integer conversion initializing 'uint8_t' (aka 'unsigned char') with an expression of type 'void *' [-Wint-conversion]
  305 |     uint8_t profile_buffer = NULL;
      |             ^                ~~~~
/Users/admin/builder/spi-builder-workspace/SDWebImageHEIFCoder/Classes/SDImageHEIFCoder.m:309:50: warning: incompatible pointer types passing 'heif_image_handle *' (aka 'struct heif_image_handle *') to parameter of type 'const struct heif_image *' [-Wincompatible-pointer-types]
  309 |         error = heif_image_get_raw_color_profile(handle, &profile_buffer);
      |                                                  ^~~~~~
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libheif-Xcode/include/libheif/heif.h:1352:77: note: passing argument to parameter 'image' here
 1352 | struct heif_error heif_image_get_raw_color_profile(const struct heif_image* image,
      |                                                                             ^
/Users/admin/builder/spi-builder-workspace/SDWebImageHEIFCoder/Classes/SDImageHEIFCoder.m:313:28: error: incompatible pointer to integer conversion assigning to 'uint8_t' (aka 'unsigned char') from 'void *' [-Wint-conversion]
  313 |             profile_buffer = NULL;
      |                            ^ ~~~~
/Users/admin/builder/spi-builder-workspace/SDWebImageHEIFCoder/Classes/SDImageHEIFCoder.m:318:53: error: incompatible integer to pointer conversion sending 'uint8_t' (aka 'unsigned char') to parameter of type 'const void * _Nullable' [-Wint-conversion]
  318 |         NSData *profileData = [NSData dataWithBytes:profile_buffer length:profile_size];
      |                                                     ^~~~~~~~~~~~~~
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSData.h:106:54: note: passing argument to parameter 'bytes' here
  106 | + (instancetype)dataWithBytes:(nullable const void *)bytes length:(NSUInteger)length;
      |                                                      ^
/Users/admin/builder/spi-builder-workspace/SDWebImageHEIFCoder/Classes/SDImageHEIFCoder.m:322:29: warning: 'CGColorSpaceCreateWithICCProfile' is deprecated: first deprecated in macOS 10.13 - No longer supported [-Wdeprecated-declarations]
  322 |             colorSpaceRef = CGColorSpaceCreateWithICCProfile((__bridge CFDataRef)profileData);
      |                             ^
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h:493:38: note: 'CGColorSpaceCreateWithICCProfile' has been explicitly marked deprecated here
  493 | CG_EXTERN CGColorSpaceRef __nullable CGColorSpaceCreateWithICCProfile(CFDataRef cg_nullable data)
      |                                      ^
/Users/admin/builder/spi-builder-workspace/SDWebImageHEIFCoder/Classes/SDImageHEIFCoder.m:434:49: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
  434 |         size_t length = snprintf(NULL, 0, "%d", bitrate);
      |                                            ~~   ^~~~~~~
      |                                            %lu
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/usr/include/secure/_stdio.h:119:67: note: expanded from macro 'snprintf'
  119 | #define snprintf(str, len, ...) __snprintf_chk_func (str, len, 0, __VA_ARGS__)
      |                                                                   ^~~~~~~~~~~
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/usr/include/secure/_stdio.h:76:64: note: expanded from macro '__snprintf_chk_func'
   76 |         __builtin___snprintf_chk (str, len, flag, __darwin_obsz(str), __VA_ARGS__)
      |                                                                       ^~~~~~~~~~~
/Users/admin/builder/spi-builder-workspace/SDWebImageHEIFCoder/Classes/SDImageHEIFCoder.m:436:49: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
  436 |         snprintf(bitrate_str, length + 1, "%d", bitrate);
      |                                            ~~   ^~~~~~~
      |                                            %lu
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/usr/include/secure/_stdio.h:119:67: note: expanded from macro 'snprintf'
  119 | #define snprintf(str, len, ...) __snprintf_chk_func (str, len, 0, __VA_ARGS__)
      |                                                                   ^~~~~~~~~~~
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/usr/include/secure/_stdio.h:76:64: note: expanded from macro '__snprintf_chk_func'
   76 |         __builtin___snprintf_chk (str, len, flag, __darwin_obsz(str), __VA_ARGS__)
      |                                                                       ^~~~~~~~~~~
4 warnings and 3 errors generated.
[0/1] Compiling SDImageHEIFCoder.m
Fetching https://github.com/SDWebImage/SDWebImage.git
Fetching https://github.com/SDWebImage/libheif-Xcode.git
[1/663] Fetching libheif-xcode
[532/26426] Fetching libheif-xcode, sdwebimage
Fetched https://github.com/SDWebImage/libheif-Xcode.git from cache (2.05s)
Fetched https://github.com/SDWebImage/SDWebImage.git from cache (2.05s)
Computing version for https://github.com/SDWebImage/libheif-Xcode.git
Computed https://github.com/SDWebImage/libheif-Xcode.git at 1.17.0 (2.62s)
Fetching https://github.com/SDWebImage/libde265-Xcode.git
[1/276] Fetching libde265-xcode
Fetched https://github.com/SDWebImage/libde265-Xcode.git from cache (0.68s)
Computing version for https://github.com/SDWebImage/libde265-Xcode.git
Computed https://github.com/SDWebImage/libde265-Xcode.git at 1.0.15 (1.17s)
Computing version for https://github.com/SDWebImage/SDWebImage.git
Computed https://github.com/SDWebImage/SDWebImage.git at 5.21.1 (0.47s)
Creating working copy for https://github.com/SDWebImage/libheif-Xcode.git
Working copy of https://github.com/SDWebImage/libheif-Xcode.git resolved at 1.17.0
Creating working copy for https://github.com/SDWebImage/libde265-Xcode.git
Working copy of https://github.com/SDWebImage/libde265-Xcode.git resolved at 1.0.15
Creating working copy for https://github.com/SDWebImage/SDWebImage.git
Working copy of https://github.com/SDWebImage/SDWebImage.git resolved at 5.21.1
BUILD FAILURE 6.2 macosSpm