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

Successful build of SwiftHook, reference master (e033f5), with Swift 5.10 for macOS (SPM) on 11 May 2025 13:53:25 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.61.3
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/623637646/SwiftHook.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/623637646/SwiftHook
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at e033f57 Merge pull request #19 from flocked/HookContext
Cloned https://github.com/623637646/SwiftHook.git
Revision (git rev-parse @):
e033f57cc6def560cf2fa6f4ecd788411688a6a7
SUCCESS checkout https://github.com/623637646/SwiftHook.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $PWD
https://github.com/623637646/SwiftHook.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/23] Write swift-version-33747A42983211AE.txt
[1/23] Compiling sysv_i386.S
[2/23] Compiling win64_x86_64.S
[3/23] Compiling ffiw64_x86_64.c
[4/23] Compiling ffi64_x86_64.c
[5/23] Compiling ffi_i386.c
[6/23] Compiling unix64_x86_64.S
[7/23] Compiling sysv_armv7.S
[8/23] Compiling ffi_armv7.c
[9/23] Compiling sysv_arm64.S
[10/23] Compiling prep_cif.c
[10/23] Compiling raw_api.c
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/java_raw_api.c:328:46: warning: 'ffi_java_raw_size' is deprecated [-Wdeprecated-declarations]
  ffi_java_raw *raw = (ffi_java_raw*)alloca (ffi_java_raw_size (cif));
                                             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/include/ffi_arm64.h:328:56: note: 'ffi_java_raw_size' has been explicitly marked deprecated here
size_t ffi_java_raw_size (ffi_cif *cif) __attribute__((deprecated));
                                                       ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/java_raw_api.c:331:3: warning: 'ffi_java_ptrarray_to_raw' is deprecated [-Wdeprecated-declarations]
  ffi_java_ptrarray_to_raw (cif, avalue, raw);
  ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/include/ffi_arm64.h:324:93: note: 'ffi_java_ptrarray_to_raw' has been explicitly marked deprecated here
void ffi_java_ptrarray_to_raw (ffi_cif *cif, void **args, ffi_java_raw *raw) __attribute__((deprecated));
                                                                                            ^
2 warnings generated.
[12/23] Compiling java_raw_api.c
[13/23] Write sources
[14/23] Compiling types.c
[15/23] Compiling debug.c
[16/23] Compiling closures.c
[17/23] Compiling ffi_arm64.c
[18/23] Compiling tramp.c
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:3470:27: warning: 'sbrk' is deprecated [-Wdeprecated-declarations]
      char* base = (char*)CALL_MORECORE(0);
                          ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:1417:30: note: expanded from macro 'CALL_MORECORE'
#define CALL_MORECORE(S)     MORECORE(S)
                             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:548:18: note: expanded from macro 'MORECORE'
#define MORECORE sbrk
                 ^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:582:1: note: 'sbrk' has been explicitly marked deprecated here
__deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED
^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:3478:27: warning: 'sbrk' is deprecated [-Wdeprecated-declarations]
            (br = (char*)(CALL_MORECORE(asize))) == base) {
                          ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:1417:30: note: expanded from macro 'CALL_MORECORE'
#define CALL_MORECORE(S)     MORECORE(S)
                             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:548:18: note: expanded from macro 'MORECORE'
#define MORECORE sbrk
                 ^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:582:1: note: 'sbrk' has been explicitly marked deprecated here
__deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED
^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:3489:25: warning: 'sbrk' is deprecated [-Wdeprecated-declarations]
          (br = (char*)(CALL_MORECORE(asize))) == ss->base+ss->size) {
                        ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:1417:30: note: expanded from macro 'CALL_MORECORE'
#define CALL_MORECORE(S)     MORECORE(S)
                             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:548:18: note: expanded from macro 'MORECORE'
#define MORECORE sbrk
                 ^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:582:1: note: 'sbrk' has been explicitly marked deprecated here
__deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED
^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:3501:32: warning: 'sbrk' is deprecated [-Wdeprecated-declarations]
            char* end = (char*)CALL_MORECORE(esize);
                               ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:1417:30: note: expanded from macro 'CALL_MORECORE'
#define CALL_MORECORE(S)     MORECORE(S)
                             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:548:18: note: expanded from macro 'MORECORE'
#define MORECORE sbrk
                 ^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:582:1: note: 'sbrk' has been explicitly marked deprecated here
__deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED
^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:3505:21: warning: 'sbrk' is deprecated [-Wdeprecated-declarations]
              (void)CALL_MORECORE(-asize);
                    ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:1417:30: note: expanded from macro 'CALL_MORECORE'
#define CALL_MORECORE(S)     MORECORE(S)
                             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:548:18: note: expanded from macro 'MORECORE'
#define MORECORE sbrk
                 ^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:582:1: note: 'sbrk' has been explicitly marked deprecated here
__deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED
^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:3541:20: warning: 'sbrk' is deprecated [-Wdeprecated-declarations]
      br = (char*)(CALL_MORECORE(asize));
                   ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:1417:30: note: expanded from macro 'CALL_MORECORE'
#define CALL_MORECORE(S)     MORECORE(S)
                             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:548:18: note: expanded from macro 'MORECORE'
#define MORECORE sbrk
                 ^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:582:1: note: 'sbrk' has been explicitly marked deprecated here
__deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED
^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:3542:21: warning: 'sbrk' is deprecated [-Wdeprecated-declarations]
      end = (char*)(CALL_MORECORE(0));
                    ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:1417:30: note: expanded from macro 'CALL_MORECORE'
#define CALL_MORECORE(S)     MORECORE(S)
                             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:548:18: note: expanded from macro 'MORECORE'
#define MORECORE sbrk
                 ^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:582:1: note: 'sbrk' has been explicitly marked deprecated here
__deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED
^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:3697:36: warning: 'sbrk' is deprecated [-Wdeprecated-declarations]
            char* old_br = (char*)(CALL_MORECORE(0));
                                   ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:1417:30: note: expanded from macro 'CALL_MORECORE'
#define CALL_MORECORE(S)     MORECORE(S)
                             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:548:18: note: expanded from macro 'MORECORE'
#define MORECORE sbrk
                 ^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:582:1: note: 'sbrk' has been explicitly marked deprecated here
__deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED
^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:3699:38: warning: 'sbrk' is deprecated [-Wdeprecated-declarations]
              char* rel_br = (char*)(CALL_MORECORE(-extra));
                                     ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:1417:30: note: expanded from macro 'CALL_MORECORE'
#define CALL_MORECORE(S)     MORECORE(S)
                             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:548:18: note: expanded from macro 'MORECORE'
#define MORECORE sbrk
                 ^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:582:1: note: 'sbrk' has been explicitly marked deprecated here
__deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED
^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:3700:38: warning: 'sbrk' is deprecated [-Wdeprecated-declarations]
              char* new_br = (char*)(CALL_MORECORE(0));
                                     ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:1417:30: note: expanded from macro 'CALL_MORECORE'
#define CALL_MORECORE(S)     MORECORE(S)
                             ^
/Users/admin/builder/spi-builder-workspace/.build/checkouts/libffi/Sources/libffi_apple/src/dlmalloc.c:548:18: note: expanded from macro 'MORECORE'
#define MORECORE sbrk
                 ^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/unistd.h:582:1: note: 'sbrk' has been explicitly marked deprecated here
__deprecated __WATCHOS_PROHIBITED __TVOS_PROHIBITED
^
/Applications/Xcode-15.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.5.sdk/usr/include/sys/cdefs.h:214:40: note: expanded from macro '__deprecated'
#define __deprecated    __attribute__((__deprecated__))
                                       ^
10 warnings generated.
[19/23] Compiling dlmalloc.c
[20/23] Compiling SwiftHookOCSources SHObjectiveCUtilities.m
[21/23] Compiling SwiftHookOCSources SHMethodSignature.m
[22/23] Compiling SwiftHookOCSources SHFFITypeContext.m
[24/44] Emitting module SwiftHook
[25/46] Compiling SwiftHook AssociatedValue.swift
[26/46] Compiling SwiftHook Utilities.swift
[27/46] Compiling SwiftHook HookSpecificInstance.swift
[28/46] Compiling SwiftHook HookAllInstancesOC.swift
[29/46] Compiling SwiftHook HookClassMethods.swift
[30/46] Compiling SwiftHook HookCommon.swift
[31/46] Compiling SwiftHook HookClassMethodsOC.swift
[32/46] Compiling SwiftHook HookCommonOC.swift
[33/46] Compiling SwiftHook OverrideSuperMethod.swift
[34/46] Compiling SwiftHook TargetObjectExtension.swift
[35/46] Compiling SwiftHook HookContext.swift
[36/46] Compiling SwiftHook HookDeallocAfterDelegate.swift
[37/46] Compiling SwiftHook HookInternal.swift
[38/46] Compiling SwiftHook HookSpecificInstanceOC.swift
[39/46] Compiling SwiftHook Signature.swift
[40/46] Compiling SwiftHook InsteadHookClosureExtension.swift
[41/46] Compiling SwiftHook KVOWrapper.swift
[42/46] Compiling SwiftHook FFICIFContext.swift
[43/46] Compiling SwiftHook FFIClosureContext.swift
[44/46] Compiling SwiftHook DynamicClass.swift
[45/46] Compiling SwiftHook ParametersCheck.swift
[46/46] Compiling SwiftHook HookAllInstances.swift
Build complete! (9.33s)
Fetching https://github.com/623637646/libffi.git
[1/15566] Fetching libffi
Fetched https://github.com/623637646/libffi.git from cache (1.77s)
Computing version for https://github.com/623637646/libffi.git
Computed https://github.com/623637646/libffi.git at 3.4.7 (0.37s)
Creating working copy for https://github.com/623637646/libffi.git
Working copy of https://github.com/623637646/libffi.git resolved at 3.4.7
Build complete.
{
  "dependencies" : [
    {
      "identity" : "libffi",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.4.7",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/623637646/libffi.git"
    }
  ],
  "manifest_display_name" : "SwiftHook",
  "name" : "SwiftHook",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftHook",
      "targets" : [
        "SwiftHook"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "SwiftHookOCSources",
      "module_type" : "ClangTarget",
      "name" : "SwiftHookOCSources",
      "path" : "SwiftHook/Classes/OCSources",
      "product_dependencies" : [
        "libffi_apple"
      ],
      "product_memberships" : [
        "SwiftHook"
      ],
      "sources" : [
        "SHFFITypeContext.m",
        "SHMethodSignature.m",
        "SHObjectiveCUtilities.m"
      ],
      "type" : "library"
    },
    {
      "c99name" : "SwiftHook",
      "module_type" : "SwiftTarget",
      "name" : "SwiftHook",
      "path" : "SwiftHook/Classes",
      "product_dependencies" : [
        "libffi_apple"
      ],
      "product_memberships" : [
        "SwiftHook"
      ],
      "sources" : [
        "FFI/FFICIFContext.swift",
        "FFI/FFIClosureContext.swift",
        "Hook/DynamicClass.swift",
        "Hook/HookContext.swift",
        "Hook/HookDeallocAfterDelegate.swift",
        "Hook/HookInternal.swift",
        "Hook/InsteadHookClosureExtension.swift",
        "Hook/KVOWrapper.swift",
        "Hook/OverrideSuperMethod.swift",
        "Hook/TargetObjectExtension.swift",
        "Parameters/ParametersCheck.swift",
        "Public/HookAllInstances.swift",
        "Public/HookClassMethods.swift",
        "Public/HookCommon.swift",
        "Public/HookSpecificInstance.swift",
        "PublicObjectiveCAPI/HookAllInstancesOC.swift",
        "PublicObjectiveCAPI/HookClassMethodsOC.swift",
        "PublicObjectiveCAPI/HookCommonOC.swift",
        "PublicObjectiveCAPI/HookSpecificInstanceOC.swift",
        "Signature/Signature.swift",
        "Utilities/AssociatedValue.swift",
        "Utilities/Utilities.swift"
      ],
      "target_dependencies" : [
        "SwiftHookOCSources"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.8"
}
Done.