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 DirtyCowKit, reference main (349744), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 10:39:27 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/BomberFish/DirtyCowKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/BomberFish/DirtyCowKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3497447 ok so not everyone is using xcode beta ;-;
Cloned https://github.com/BomberFish/DirtyCowKit.git
Revision (git rev-parse @):
349744780f7928ab2af2d0135f1edae8aee836a1
SUCCESS checkout https://github.com/BomberFish/DirtyCowKit.git at main
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "dirtycowkit",
      "name": "DirtyCowKit",
      "url": "https://github.com/BomberFish/DirtyCowKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DirtyCowKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/BomberFish/DirtyCowKit.git
[3/78] Fetching dirtycowkit
Fetched https://github.com/BomberFish/DirtyCowKit.git from cache (0.67s)
Creating working copy for https://github.com/BomberFish/DirtyCowKit.git
Working copy of https://github.com/BomberFish/DirtyCowKit.git resolved at main (3497447)
warning: '.resolve-product-dependencies': dependency 'dirtycowkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/BomberFish/DirtyCowKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "DirtyCowKit",
  "name" : "DirtyCowKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "DirtyCowKit",
      "targets" : [
        "MacDirtyCow"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MacDirtyCow",
      "module_type" : "SwiftTarget",
      "name" : "MacDirtyCow",
      "path" : "Sources/MacDirtyCow",
      "product_memberships" : [
        "DirtyCowKit"
      ],
      "sources" : [
        "MacDirtyCow.swift"
      ],
      "target_dependencies" : [
        "Exploit"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Exploit",
      "module_type" : "ClangTarget",
      "name" : "Exploit",
      "path" : "Sources/Exploit",
      "product_memberships" : [
        "DirtyCowKit"
      ],
      "sources" : [
        "grant_full_disk_access.m",
        "helpers.m",
        "vm_unaligned_copy_switch_race.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/5] Write sources
[1/5] Write swift-version--7754E27361AE5C74.txt
[2/5] Compiling Exploit vm_unaligned_copy_switch_race.c
[3/5] Compiling Exploit helpers.m
/Users/admin/builder/spi-builder-workspace/Sources/Exploit/grant_full_disk_access.m:14:19: error: typedef redefinition with different types ('NSObject *' vs 'NSObject<OS_xpc_object> *')
   14 | typedef NSObject* xpc_object_t;
      |                   ^
/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/xpc/xpc.h:69:1: note: previous definition is here
   69 | OS_OBJECT_DECL(xpc_object);
      | ^
/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/os/object.h:144:3: note: expanded from macro 'OS_OBJECT_DECL'
  144 |                 OS_OBJECT_DECL_IMPL(name, NSObject, <NSObject>)
      |                 ^
/Applications/Xcode-16.1.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX15.1.sdk/usr/include/os/object.h:134:33: note: expanded from macro 'OS_OBJECT_DECL_IMPL'
  134 |                                 * OS_OBJC_INDEPENDENT_CLASS name##_t
      |                                                             ^
<scratch space>:15:1: note: expanded from here
   15 | xpc_object_t
      | ^
1 error generated.
[4/5] Compiling Exploit grant_full_disk_access.m
BUILD FAILURE 6.0 macosSpm