This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Failed to build SDWebImageHEIFCoder with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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.0
Building package at path:  $workDir
https://github.com/SDWebImage/SDWebImageHEIFCoder.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
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:689:77: note: passing argument to parameter 'image' here
  689 | 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-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.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-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Headers/CGColorSpace.h:480:38: note: 'CGColorSpaceCreateWithICCProfile' has been explicitly marked deprecated here
  480 | 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-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
   57 |   __builtin___snprintf_chk (str, len, 0, __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-15.3.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.4.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
   57 |   __builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), __VA_ARGS__)
      |                                                              ^~~~~~~~~~~
4 warnings and 3 errors generated.
[0/1] Compiling SDImageHEIFCoder.m
Fetching https://github.com/SDWebImage/libheif-Xcode.git
Fetching https://github.com/SDWebImage/libde265-Xcode.git
Fetching https://github.com/SDWebImage/SDWebImage.git
[1/276] Fetching libde265-xcode
[54/903] Fetching libde265-xcode, libheif-xcode
[904/25800] Fetching libde265-xcode, libheif-xcode, sdwebimage
Fetched https://github.com/SDWebImage/libde265-Xcode.git from cache (2.57s)
Fetched https://github.com/SDWebImage/SDWebImage.git from cache (2.57s)
Fetched https://github.com/SDWebImage/libheif-Xcode.git from cache (2.57s)
Computing version for https://github.com/SDWebImage/libheif-Xcode.git
Computed https://github.com/SDWebImage/libheif-Xcode.git at 1.6.1 (0.68s)
Computing version for https://github.com/SDWebImage/libde265-Xcode.git
Computed https://github.com/SDWebImage/libde265-Xcode.git at 1.0.4 (0.64s)
Computing version for https://github.com/SDWebImage/SDWebImage.git
Computed https://github.com/SDWebImage/SDWebImage.git at 5.19.3 (0.66s)
Creating working copy for https://github.com/SDWebImage/libheif-Xcode.git
Working copy of https://github.com/SDWebImage/libheif-Xcode.git resolved at 1.6.1
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.4
Creating working copy for https://github.com/SDWebImage/SDWebImage.git
Working copy of https://github.com/SDWebImage/SDWebImage.git resolved at 5.19.3
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.