The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Raylib, reference v4.0.0 (ad7bdc), with Swift 6.2 for macOS (SPM) on 19 Jun 2025 21:46:04 UTC.

Swift 6 data race errors: 0

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/STREGAsGate/Raylib.git
Reference: v4.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/STREGAsGate/Raylib
 * tag               v4.0.0     -> FETCH_HEAD
HEAD is now at ad7bdce Finish 4.0 upgrade.
Cloned https://github.com/STREGAsGate/Raylib.git
Revision (git rev-parse @):
ad7bdce515cea316789b9b582dc456cb326e87fc
SUCCESS checkout https://github.com/STREGAsGate/Raylib.git at v4.0.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/STREGAsGate/Raylib.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/29] Write swift-version-1EA4D86E10B52AF.txt
[1/29] Compiling utils.c
[2/29] Compiling rtext.c
[3/29] Compiling rshapes.c
[4/29] Compiling rtextures.c
[5/29] Compiling rmodels.c
[6/29] Compiling rcore.c
In file included from /Users/admin/builder/spi-builder-workspace/Sources/_RaylibC/UnmodifiedRaylibSrc/raudio.c:211:
/Users/admin/builder/spi-builder-workspace/Sources/_RaylibC/UnmodifiedRaylibSrc/external/jar_xm.h:242:9: warning: 'DEBUG' macro redefined [-Wmacro-redefined]
  242 | #define DEBUG(...)
      |         ^
<command line>:2:9: note: previous definition is here
    2 | #define DEBUG 1
      |         ^
In file included from /Users/admin/builder/spi-builder-workspace/Sources/_RaylibC/UnmodifiedRaylibSrc/raudio.c:211:
/Users/admin/builder/spi-builder-workspace/Sources/_RaylibC/UnmodifiedRaylibSrc/external/jar_xm.h:521:9: warning: 'ALIGN' macro redefined [-Wmacro-redefined]
  521 | #define ALIGN(x, b) (((x) + ((b) - 1)) & ~((b) - 1))
      |         ^
/Applications/Xcode-26.0.0-Beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.0.sdk/usr/include/arm/param.h:61:9: note: previous definition is here
   61 | #define ALIGN(p)        __DARWIN_ALIGN(p)
      |         ^
2 warnings generated.
[7/29] Compiling raudio.c
[8/29] Compiling cocoa_joystick.m
[9/29] Compiling osmesa_context.c
[10/29] Compiling cocoa_time.c
[11/29] Compiling posix_thread.c
[12/29] Compiling context.c
[13/29] Compiling vulkan.c
[14/29] Compiling monitor.c
[15/29] Write sources
[17/29] Write Example-entitlement.plist
[18/29] Compiling nsgl_context.m
[19/29] Compiling input.c
[20/29] Compiling window.c
[21/29] Compiling init.c
[22/29] Compiling cocoa_window.m
[23/29] Compiling cocoa_init.m
[24/29] Compiling egl_context.c
[25/29] Compiling cocoa_monitor.m
[27/63] Emitting module Raylib
/Users/admin/builder/spi-builder-workspace/Sources/Raylib/raylib_h_core.swift:548:60: warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 546 |     static func setShaderValue(_ shader: Shader, _ locIndex: ShaderLocationIndex, _ value: Any, _ uniformType: ShaderUniformDataType) {
 547 |         var _value = value
 548 |         _RaylibC.SetShaderValue(shader, locIndex.rawValue, &_value, uniformType.rawValue)
     |                                                            `- warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 549 |     }
 550 |
/Users/admin/builder/spi-builder-workspace/Sources/Raylib/raylib_h_core.swift:555:61: warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 553 |     static func setShaderValueV(_ shader: Shader, _ locIndex: ShaderLocationIndex, _ value: Any, _ uniformType: ShaderUniformDataType, _ count: Int32) {
 554 |         var _value = value
 555 |         _RaylibC.SetShaderValueV(shader, locIndex.rawValue, &_value, uniformType.rawValue, count)
     |                                                             `- warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 556 |     }
 557 |
[28/66] Compiling Raylib GampadAxis.swift
[29/66] Compiling Raylib GampadButton.swift
[30/66] Compiling Raylib Gestures.swift
[31/66] Compiling Raylib KeyboardKey.swift
[32/66] Compiling Raylib MaterialMapIndex.swift
[33/66] Compiling Raylib MouseButton.swift
[34/66] Compiling Raylib MouseCursor.swift
[35/66] Compiling Raylib NPatchLayout.swift
[36/66] Compiling Raylib raylib_h_rcamera.swift
[37/66] Compiling Raylib raylib_h_rgestures.swift
[38/66] Compiling Raylib raylib_h_shapes.swift
[39/66] Compiling Raylib Color.swift
[40/66] Compiling Raylib ConfigFlags.swift
[41/66] Compiling Raylib CubemapLayout.swift
[42/66] Compiling Raylib FontType.swift
[43/66] Compiling Raylib DeprectationsRaylib-4_0_0.swift
[44/66] Compiling Raylib BlendMode.swift
[45/66] Compiling Raylib CameraMode.swift
[46/66] Compiling Raylib CameraProjection.swift
[47/66] Compiling Raylib raylib_h_text.swift
[48/66] Compiling Raylib raylib_h_textures.swift
[49/66] Compiling Raylib raymath_h.swift
[50/66] Compiling Raylib TextureWrap.swift
[51/66] Compiling Raylib TraceLogLevel.swift
[52/66] Compiling Raylib SwiftRaylib.swift
[53/66] Compiling Raylib Camera.swift
[54/66] Compiling Raylib raylib_h_audio.swift
/Users/admin/builder/spi-builder-workspace/Sources/Raylib/raylib_h_core.swift:548:60: warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 546 |     static func setShaderValue(_ shader: Shader, _ locIndex: ShaderLocationIndex, _ value: Any, _ uniformType: ShaderUniformDataType) {
 547 |         var _value = value
 548 |         _RaylibC.SetShaderValue(shader, locIndex.rawValue, &_value, uniformType.rawValue)
     |                                                            `- warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 549 |     }
 550 |
/Users/admin/builder/spi-builder-workspace/Sources/Raylib/raylib_h_core.swift:555:61: warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 553 |     static func setShaderValueV(_ shader: Shader, _ locIndex: ShaderLocationIndex, _ value: Any, _ uniformType: ShaderUniformDataType, _ count: Int32) {
 554 |         var _value = value
 555 |         _RaylibC.SetShaderValueV(shader, locIndex.rawValue, &_value, uniformType.rawValue, count)
     |                                                             `- warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 556 |     }
 557 |
[55/66] Compiling Raylib raylib_h_core.swift
/Users/admin/builder/spi-builder-workspace/Sources/Raylib/raylib_h_core.swift:548:60: warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 546 |     static func setShaderValue(_ shader: Shader, _ locIndex: ShaderLocationIndex, _ value: Any, _ uniformType: ShaderUniformDataType) {
 547 |         var _value = value
 548 |         _RaylibC.SetShaderValue(shader, locIndex.rawValue, &_value, uniformType.rawValue)
     |                                                            `- warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 549 |     }
 550 |
/Users/admin/builder/spi-builder-workspace/Sources/Raylib/raylib_h_core.swift:555:61: warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 553 |     static func setShaderValueV(_ shader: Shader, _ locIndex: ShaderLocationIndex, _ value: Any, _ uniformType: ShaderUniformDataType, _ count: Int32) {
 554 |         var _value = value
 555 |         _RaylibC.SetShaderValueV(shader, locIndex.rawValue, &_value, uniformType.rawValue, count)
     |                                                             `- warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 556 |     }
 557 |
[56/66] Compiling Raylib raylib_h_models.swift
/Users/admin/builder/spi-builder-workspace/Sources/Raylib/raylib_h_core.swift:548:60: warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 546 |     static func setShaderValue(_ shader: Shader, _ locIndex: ShaderLocationIndex, _ value: Any, _ uniformType: ShaderUniformDataType) {
 547 |         var _value = value
 548 |         _RaylibC.SetShaderValue(shader, locIndex.rawValue, &_value, uniformType.rawValue)
     |                                                            `- warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 549 |     }
 550 |
/Users/admin/builder/spi-builder-workspace/Sources/Raylib/raylib_h_core.swift:555:61: warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 553 |     static func setShaderValueV(_ shader: Shader, _ locIndex: ShaderLocationIndex, _ value: Any, _ uniformType: ShaderUniformDataType, _ count: Int32) {
 554 |         var _value = value
 555 |         _RaylibC.SetShaderValueV(shader, locIndex.rawValue, &_value, uniformType.rawValue, count)
     |                                                             `- warning: forming 'UnsafeRawPointer' to a variable of type 'Any'; this is likely incorrect because 'Any' may contain an object reference.
 556 |     }
 557 |
[57/66] Compiling Raylib PixelFormat.swift
[58/66] Compiling Raylib ShaderLocationIndex.swift
[59/66] Compiling Raylib ShaderUniformDataType.swift
[60/66] Compiling Raylib TextureFilter.swift
[61/66] Compiling Raylib Image.swift
[62/66] Compiling Raylib NPatchInfo.swift
[63/66] Compiling Raylib Texture.swift
[64/69] Compiling Example main.swift
[65/69] Compiling Example SnakeGame.swift
[66/69] Emitting module Example
[66/69] Write Objects.LinkFileList
[67/69] Linking Example
[68/69] Applying Example
Build complete! (7.47s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Raylib",
  "name" : "Raylib",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Raylib",
      "targets" : [
        "Raylib",
        "_RaylibC"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "Example",
      "targets" : [
        "Example"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "_RaylibC",
      "module_type" : "ClangTarget",
      "name" : "_RaylibC",
      "path" : "Sources/_RaylibC",
      "product_memberships" : [
        "Raylib",
        "Example"
      ],
      "sources" : [
        "UnmodifiedRaylibSrc/external/glfw/src/cocoa_init.m",
        "UnmodifiedRaylibSrc/external/glfw/src/cocoa_joystick.m",
        "UnmodifiedRaylibSrc/external/glfw/src/cocoa_monitor.m",
        "UnmodifiedRaylibSrc/external/glfw/src/cocoa_time.c",
        "UnmodifiedRaylibSrc/external/glfw/src/cocoa_window.m",
        "UnmodifiedRaylibSrc/external/glfw/src/context.c",
        "UnmodifiedRaylibSrc/external/glfw/src/egl_context.c",
        "UnmodifiedRaylibSrc/external/glfw/src/init.c",
        "UnmodifiedRaylibSrc/external/glfw/src/input.c",
        "UnmodifiedRaylibSrc/external/glfw/src/monitor.c",
        "UnmodifiedRaylibSrc/external/glfw/src/nsgl_context.m",
        "UnmodifiedRaylibSrc/external/glfw/src/osmesa_context.c",
        "UnmodifiedRaylibSrc/external/glfw/src/posix_thread.c",
        "UnmodifiedRaylibSrc/external/glfw/src/vulkan.c",
        "UnmodifiedRaylibSrc/external/glfw/src/window.c",
        "UnmodifiedRaylibSrc/raudio.c",
        "UnmodifiedRaylibSrc/rcore.c",
        "UnmodifiedRaylibSrc/rmodels.c",
        "UnmodifiedRaylibSrc/rshapes.c",
        "UnmodifiedRaylibSrc/rtext.c",
        "UnmodifiedRaylibSrc/rtextures.c",
        "UnmodifiedRaylibSrc/utils.c"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Raylib",
      "module_type" : "SwiftTarget",
      "name" : "Raylib",
      "path" : "Sources/Raylib",
      "product_memberships" : [
        "Raylib",
        "Example"
      ],
      "sources" : [
        "Deprectations/DeprectationsRaylib-4_0_0.swift",
        "Enums/BlendMode.swift",
        "Enums/CameraMode.swift",
        "Enums/CameraProjection.swift",
        "Enums/Color.swift",
        "Enums/ConfigFlags.swift",
        "Enums/CubemapLayout.swift",
        "Enums/FontType.swift",
        "Enums/GampadAxis.swift",
        "Enums/GampadButton.swift",
        "Enums/Gestures.swift",
        "Enums/KeyboardKey.swift",
        "Enums/MaterialMapIndex.swift",
        "Enums/MouseButton.swift",
        "Enums/MouseCursor.swift",
        "Enums/NPatchLayout.swift",
        "Enums/PixelFormat.swift",
        "Enums/ShaderLocationIndex.swift",
        "Enums/ShaderUniformDataType.swift",
        "Enums/TextureFilter.swift",
        "Enums/TextureWrap.swift",
        "Enums/TraceLogLevel.swift",
        "SwiftRaylib.swift",
        "Swifty/Camera.swift",
        "Swifty/Image.swift",
        "Swifty/NPatchInfo.swift",
        "Swifty/Texture.swift",
        "raylib_h_audio.swift",
        "raylib_h_core.swift",
        "raylib_h_models.swift",
        "raylib_h_rcamera.swift",
        "raylib_h_rgestures.swift",
        "raylib_h_shapes.swift",
        "raylib_h_text.swift",
        "raylib_h_textures.swift",
        "raymath_h.swift"
      ],
      "target_dependencies" : [
        "_RaylibC"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Example",
      "module_type" : "SwiftTarget",
      "name" : "Example",
      "path" : "Sources/Example",
      "product_memberships" : [
        "Example"
      ],
      "sources" : [
        "SnakeGame.swift",
        "main.swift"
      ],
      "target_dependencies" : [
        "Raylib"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.3"
}
Done.