The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Raylib, reference v4.0.0 (ad7bdc), with Swift 6.3 for macOS (SPM) on 13 Apr 2026 11:08:44 UTC.

Swift 6 data race errors: 0

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.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
========================================
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",
  "traits": [
    "default"
  ],
  "dependencies": [
    {
      "identity": "raylib",
      "name": "Raylib",
      "url": "https://github.com/STREGAsGate/Raylib.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Raylib",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/STREGAsGate/Raylib.git
[1/771] Fetching raylib
Fetched https://github.com/STREGAsGate/Raylib.git from cache (1.34s)
Creating working copy for https://github.com/STREGAsGate/Raylib.git
Working copy of https://github.com/STREGAsGate/Raylib.git resolved at v4.0.0 (ad7bdce)
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/STREGAsGate/Raylib.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/29] Write swift-version--6988338F2F200930.txt
[1/29] Compiling rshapes.c
[2/29] Compiling rtext.c
[3/29] Compiling utils.c
[4/29] Compiling rtextures.c
In file included from /Users/admin/builder/spi-builder-workspace/Sources/_RaylibC/UnmodifiedRaylibSrc/rmodels.c:96:
/Users/admin/builder/spi-builder-workspace/Sources/_RaylibC/UnmodifiedRaylibSrc/external/par_shapes.h:1133:32: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]
 1133 |     float r = (float) rand() / RAND_MAX;
      |                              ~ ^~~~~~~~
/Applications/Xcode-26.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/usr/include/_stdlib.h:124:18: note: expanded from macro 'RAND_MAX'
  124 | #define RAND_MAX        0x7fffffff
      |                         ^~~~~~~~~~
1 warning generated.
[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:203:
/Users/admin/builder/spi-builder-workspace/Sources/_RaylibC/UnmodifiedRaylibSrc/external/stb_vorbis.h:1371:75: warning: pointer comparison always evaluates to false [-Wtautological-compare]
 1371 |       if (f->stream_start + loc >= f->stream_end || f->stream_start + loc < f->stream_start) {
      |                                                                           ^
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.4.0.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX26.4.sdk/usr/include/arm/param.h:61:9: note: previous definition is here
   61 | #define ALIGN(p)        __DARWIN_ALIGN(p)
      |         ^
3 warnings generated.
[7/29] Compiling raudio.c
[8/29] Compiling posix_thread.c
[9/29] Compiling window.c
[10/29] Compiling cocoa_time.c
[11/29] Compiling cocoa_window.m
[12/29] Compiling egl_context.c
[13/29] Compiling context.c
[14/29] Write sources
[16/29] Write Example-entitlement.plist
[17/29] Compiling monitor.c
[18/29] Compiling init.c
[19/29] Compiling cocoa_monitor.m
[20/29] Compiling nsgl_context.m
[21/29] Compiling osmesa_context.c
[22/29] Compiling cocoa_joystick.m
[23/29] Compiling cocoa_init.m
[24/29] Compiling input.c
[25/29] Compiling vulkan.c
[27/63] Compiling Raylib PixelFormat.swift
[28/63] Compiling Raylib ShaderLocationIndex.swift
[29/63] Compiling Raylib ShaderUniformDataType.swift
[30/63] Compiling Raylib TextureFilter.swift
[31/66] Compiling Raylib GampadAxis.swift
[32/66] Compiling Raylib GampadButton.swift
[33/66] Compiling Raylib Gestures.swift
[34/66] Compiling Raylib KeyboardKey.swift
[35/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 |
[36/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 |
[37/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 |
[38/66] Compiling Raylib MaterialMapIndex.swift
[39/66] Compiling Raylib MouseButton.swift
[40/66] Compiling Raylib MouseCursor.swift
[41/66] Compiling Raylib NPatchLayout.swift
[42/66] Compiling Raylib raylib_h_rcamera.swift
[43/66] Compiling Raylib raylib_h_rgestures.swift
[44/66] Compiling Raylib raylib_h_shapes.swift
[45/66] Compiling Raylib DeprectationsRaylib-4_0_0.swift
[46/66] Compiling Raylib BlendMode.swift
[47/66] Compiling Raylib CameraMode.swift
[48/66] Compiling Raylib CameraProjection.swift
[49/66] 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 |
[50/66] Compiling Raylib raylib_h_text.swift
[51/66] Compiling Raylib raylib_h_textures.swift
[52/66] Compiling Raylib raymath_h.swift
[53/66] Compiling Raylib Image.swift
[54/66] Compiling Raylib NPatchInfo.swift
[55/66] Compiling Raylib Texture.swift
[56/66] Compiling Raylib Color.swift
[57/66] Compiling Raylib ConfigFlags.swift
[58/66] Compiling Raylib CubemapLayout.swift
[59/66] Compiling Raylib FontType.swift
[60/66] Compiling Raylib TextureWrap.swift
[61/66] Compiling Raylib TraceLogLevel.swift
[62/66] Compiling Raylib SwiftRaylib.swift
[63/66] Compiling Raylib Camera.swift
[64/69] Compiling Example SnakeGame.swift
[65/69] Compiling Example main.swift
[66/69] Emitting module Example
[66/69] Write Objects.LinkFileList
[67/69] Linking Example
[68/69] Applying Example
Build complete! (8.70s)
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.