The Swift Package Index logo.Swift Package Index

Build Information

Successful build of TelegramBotSDK, reference v2.1.3 (7b1144), with Swift 6.3 for macOS (SPM) on 15 Apr 2026 22:56:07 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/rapierorg/telegram-bot-swift.git
Reference: v2.1.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/rapierorg/telegram-bot-swift
 * tag               v2.1.3     -> FETCH_HEAD
HEAD is now at 7b1144b Merge pull request #130 from fannur/master
Cloned https://github.com/rapierorg/telegram-bot-swift.git
Revision (git rev-parse @):
7b1144b867ca962e10b1de21c32ab7156e4a83ce
SUCCESS checkout https://github.com/rapierorg/telegram-bot-swift.git at v2.1.3
========================================
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": "telegram-bot-swift",
      "name": "TelegramBotSDK",
      "url": "https://github.com/rapierorg/telegram-bot-swift.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/telegram-bot-swift",
      "traits": [
        "default"
      ],
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/rapierorg/telegram-bot-swift.git
[1/5525] Fetching telegram-bot-swift
Fetched https://github.com/rapierorg/telegram-bot-swift.git from cache (0.92s)
Creating working copy for https://github.com/rapierorg/telegram-bot-swift.git
Working copy of https://github.com/rapierorg/telegram-bot-swift.git resolved at v2.1.3 (7b1144b)
warning: '.resolve-product-dependencies': dependency 'telegram-bot-swift' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/rapierorg/telegram-bot-swift.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[1/3] Compiling CCurl shim.c
[2/3] Write swift-version--6988338F2F200930.txt
[4/44] Emitting module TelegramBotSDK
[5/48] Compiling TelegramBotSDK ReplyMarkup.swift
[6/48] Compiling TelegramBotSDK Response.swift
[7/48] Compiling TelegramBotSDK Utils.swift
[8/48] Compiling TelegramBotSDK WriteCallbackData.swift
[9/48] Compiling TelegramBotSDK MessageEntity+Utils.swift
[10/48] Compiling TelegramBotSDK MessageOrBool.swift
[11/48] Compiling TelegramBotSDK ParseMode.swift
[12/48] Compiling TelegramBotSDK PollType.swift
[13/48] Compiling TelegramBotSDK InputFileOrString.swift
[14/48] Compiling TelegramBotSDK InputMedia.swift
[15/48] Compiling TelegramBotSDK InputMessageContent.swift
[16/48] Compiling TelegramBotSDK Message+Command.swift
[17/48] Compiling TelegramBotSDK Scanner+Compatibility.swift
[18/48] Compiling TelegramBotSDK Scanner+Utils.swift
[19/48] Compiling TelegramBotSDK String+ExtractBotCommand.swift
[20/48] Compiling TelegramBotSDK String+HTTP.swift
[21/48] Compiling TelegramBotSDK String+Trim.swift
[22/48] Compiling TelegramBotSDK Context.swift
[23/48] Compiling TelegramBotSDK Router+Helpers.swift
[24/48] Compiling TelegramBotSDK Router.swift
[25/48] Compiling TelegramBotSDK TaskAssociatedData.swift
[26/48] Compiling TelegramBotSDK ChatMember+Status.swift
[27/48] Compiling TelegramBotSDK ChatType.swift
[28/48] Compiling TelegramBotSDK InlineQueryResult.swift
[29/48] Compiling TelegramBotSDK InputFile.swift
[30/48] Compiling TelegramBotSDK BotName.swift
[31/48] Compiling TelegramBotSDK DataTaskError.swift
[32/48] Compiling TelegramBotSDK DictionaryUtils.swift
[33/48] Compiling TelegramBotSDK NSRunLoop+Utils.swift
[34/48] Compiling TelegramBotSDK Optional+Unwrap.swift
[35/48] Compiling TelegramBotSDK TelegramBot+Requests.swift
/Users/admin/builder/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:204:105: warning: capture of 'resultType' with non-Sendable type 'T.Type' in a '@Sendable' closure [#SendableClosureCaptures]
202 |             requestData.withUnsafeBytes { (unsafeRawBufferPointer) -> Void in
203 |                 let unsafeBufferPointer = unsafeRawBufferPointer.bindMemory(to: UInt8.self).baseAddress!
204 |                 self.curlPerformRequest(endpointUrl: endpointUrl, contentType: contentType, resultType: resultType, requestBytes: unsafeBufferPointer, byteCount: byteCount, completion: completion)
    |                                                                                                         `- warning: capture of 'resultType' with non-Sendable type 'T.Type' in a '@Sendable' closure [#SendableClosureCaptures]
205 |             }
206 |         }
/Users/admin/builder/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:204:105: warning: capture of 'resultType' with non-Sendable type 'T.Type' in an isolated closure
202 |             requestData.withUnsafeBytes { (unsafeRawBufferPointer) -> Void in
203 |                 let unsafeBufferPointer = unsafeRawBufferPointer.bindMemory(to: UInt8.self).baseAddress!
204 |                 self.curlPerformRequest(endpointUrl: endpointUrl, contentType: contentType, resultType: resultType, requestBytes: unsafeBufferPointer, byteCount: byteCount, completion: completion)
    |                                                                                                         `- warning: capture of 'resultType' with non-Sendable type 'T.Type' in an isolated closure
205 |             }
206 |         }
/Users/admin/builder/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:241:59: warning: forming 'UnsafeMutableRawPointer' to a variable of type 'WriteCallbackData'; this is likely incorrect because 'WriteCallbackData' may contain an object reference.
239 |         }
240 |         curl_easy_setopt_write_function(curl, CURLOPT_WRITEFUNCTION, writeFunction)
241 |         curl_easy_setopt_pointer(curl, CURLOPT_WRITEDATA, &callbackData)
    |                                                           `- warning: forming 'UnsafeMutableRawPointer' to a variable of type 'WriteCallbackData'; this is likely incorrect because 'WriteCallbackData' may contain an object reference.
242 |         //curl_easy_setopt_int(curl, CURLOPT_VERBOSE, 1)
243 |         let code = curl_easy_perform(curl)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[36/48] Compiling TelegramBotSDK TelegramBot+Utils.swift
/Users/admin/builder/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:204:105: warning: capture of 'resultType' with non-Sendable type 'T.Type' in a '@Sendable' closure [#SendableClosureCaptures]
202 |             requestData.withUnsafeBytes { (unsafeRawBufferPointer) -> Void in
203 |                 let unsafeBufferPointer = unsafeRawBufferPointer.bindMemory(to: UInt8.self).baseAddress!
204 |                 self.curlPerformRequest(endpointUrl: endpointUrl, contentType: contentType, resultType: resultType, requestBytes: unsafeBufferPointer, byteCount: byteCount, completion: completion)
    |                                                                                                         `- warning: capture of 'resultType' with non-Sendable type 'T.Type' in a '@Sendable' closure [#SendableClosureCaptures]
205 |             }
206 |         }
/Users/admin/builder/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:204:105: warning: capture of 'resultType' with non-Sendable type 'T.Type' in an isolated closure
202 |             requestData.withUnsafeBytes { (unsafeRawBufferPointer) -> Void in
203 |                 let unsafeBufferPointer = unsafeRawBufferPointer.bindMemory(to: UInt8.self).baseAddress!
204 |                 self.curlPerformRequest(endpointUrl: endpointUrl, contentType: contentType, resultType: resultType, requestBytes: unsafeBufferPointer, byteCount: byteCount, completion: completion)
    |                                                                                                         `- warning: capture of 'resultType' with non-Sendable type 'T.Type' in an isolated closure
205 |             }
206 |         }
/Users/admin/builder/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:241:59: warning: forming 'UnsafeMutableRawPointer' to a variable of type 'WriteCallbackData'; this is likely incorrect because 'WriteCallbackData' may contain an object reference.
239 |         }
240 |         curl_easy_setopt_write_function(curl, CURLOPT_WRITEFUNCTION, writeFunction)
241 |         curl_easy_setopt_pointer(curl, CURLOPT_WRITEDATA, &callbackData)
    |                                                           `- warning: forming 'UnsafeMutableRawPointer' to a variable of type 'WriteCallbackData'; this is likely incorrect because 'WriteCallbackData' may contain an object reference.
242 |         //curl_easy_setopt_int(curl, CURLOPT_VERBOSE, 1)
243 |         let code = curl_easy_perform(curl)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[37/48] Compiling TelegramBotSDK TelegramBot.swift
/Users/admin/builder/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:204:105: warning: capture of 'resultType' with non-Sendable type 'T.Type' in a '@Sendable' closure [#SendableClosureCaptures]
202 |             requestData.withUnsafeBytes { (unsafeRawBufferPointer) -> Void in
203 |                 let unsafeBufferPointer = unsafeRawBufferPointer.bindMemory(to: UInt8.self).baseAddress!
204 |                 self.curlPerformRequest(endpointUrl: endpointUrl, contentType: contentType, resultType: resultType, requestBytes: unsafeBufferPointer, byteCount: byteCount, completion: completion)
    |                                                                                                         `- warning: capture of 'resultType' with non-Sendable type 'T.Type' in a '@Sendable' closure [#SendableClosureCaptures]
205 |             }
206 |         }
/Users/admin/builder/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:204:105: warning: capture of 'resultType' with non-Sendable type 'T.Type' in an isolated closure
202 |             requestData.withUnsafeBytes { (unsafeRawBufferPointer) -> Void in
203 |                 let unsafeBufferPointer = unsafeRawBufferPointer.bindMemory(to: UInt8.self).baseAddress!
204 |                 self.curlPerformRequest(endpointUrl: endpointUrl, contentType: contentType, resultType: resultType, requestBytes: unsafeBufferPointer, byteCount: byteCount, completion: completion)
    |                                                                                                         `- warning: capture of 'resultType' with non-Sendable type 'T.Type' in an isolated closure
205 |             }
206 |         }
/Users/admin/builder/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:241:59: warning: forming 'UnsafeMutableRawPointer' to a variable of type 'WriteCallbackData'; this is likely incorrect because 'WriteCallbackData' may contain an object reference.
239 |         }
240 |         curl_easy_setopt_write_function(curl, CURLOPT_WRITEFUNCTION, writeFunction)
241 |         curl_easy_setopt_pointer(curl, CURLOPT_WRITEDATA, &callbackData)
    |                                                           `- warning: forming 'UnsafeMutableRawPointer' to a variable of type 'WriteCallbackData'; this is likely incorrect because 'WriteCallbackData' may contain an object reference.
242 |         //curl_easy_setopt_int(curl, CURLOPT_VERBOSE, 1)
243 |         let code = curl_easy_perform(curl)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[38/48] Compiling TelegramBotSDK ChatId.swift
/Users/admin/builder/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:204:105: warning: capture of 'resultType' with non-Sendable type 'T.Type' in a '@Sendable' closure [#SendableClosureCaptures]
202 |             requestData.withUnsafeBytes { (unsafeRawBufferPointer) -> Void in
203 |                 let unsafeBufferPointer = unsafeRawBufferPointer.bindMemory(to: UInt8.self).baseAddress!
204 |                 self.curlPerformRequest(endpointUrl: endpointUrl, contentType: contentType, resultType: resultType, requestBytes: unsafeBufferPointer, byteCount: byteCount, completion: completion)
    |                                                                                                         `- warning: capture of 'resultType' with non-Sendable type 'T.Type' in a '@Sendable' closure [#SendableClosureCaptures]
205 |             }
206 |         }
/Users/admin/builder/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:204:105: warning: capture of 'resultType' with non-Sendable type 'T.Type' in an isolated closure
202 |             requestData.withUnsafeBytes { (unsafeRawBufferPointer) -> Void in
203 |                 let unsafeBufferPointer = unsafeRawBufferPointer.bindMemory(to: UInt8.self).baseAddress!
204 |                 self.curlPerformRequest(endpointUrl: endpointUrl, contentType: contentType, resultType: resultType, requestBytes: unsafeBufferPointer, byteCount: byteCount, completion: completion)
    |                                                                                                         `- warning: capture of 'resultType' with non-Sendable type 'T.Type' in an isolated closure
205 |             }
206 |         }
/Users/admin/builder/spi-builder-workspace/Sources/TelegramBotSDK/TelegramBot.swift:241:59: warning: forming 'UnsafeMutableRawPointer' to a variable of type 'WriteCallbackData'; this is likely incorrect because 'WriteCallbackData' may contain an object reference.
239 |         }
240 |         curl_easy_setopt_write_function(curl, CURLOPT_WRITEFUNCTION, writeFunction)
241 |         curl_easy_setopt_pointer(curl, CURLOPT_WRITEDATA, &callbackData)
    |                                                           `- warning: forming 'UnsafeMutableRawPointer' to a variable of type 'WriteCallbackData'; this is likely incorrect because 'WriteCallbackData' may contain an object reference.
242 |         //curl_easy_setopt_int(curl, CURLOPT_VERBOSE, 1)
243 |         let code = curl_easy_perform(curl)
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[39/48] Compiling TelegramBotSDK TelegramBot+sendChatAction+Utils.swift
[40/48] Compiling TelegramBotSDK MimeTypes.swift
[41/48] Compiling TelegramBotSDK Arguments.swift
[42/48] Compiling TelegramBotSDK Command.swift
[43/48] Compiling TelegramBotSDK ContentType.swift
[44/48] Compiling TelegramBotSDK String+Utils.swift
[45/48] Compiling TelegramBotSDK Methods.swift
[46/48] Compiling TelegramBotSDK Types.swift
[47/48] Compiling TelegramBotSDK HTTPUtils.swift
[48/48] Compiling TelegramBotSDK TelegramBot+getUpdates+Utils.swift
Build complete! (6.41s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TelegramBotSDK",
  "name" : "TelegramBotSDK",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "CCurl",
      "targets" : [
        "CCurl"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "TelegramBotSDK",
      "targets" : [
        "TelegramBotSDK"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "swift_languages_versions" : [
    "4.2",
    "5"
  ],
  "targets" : [
    {
      "c99name" : "TelegramBotSDKTests",
      "module_type" : "SwiftTarget",
      "name" : "TelegramBotSDKTests",
      "path" : "Tests/TelegramBotSDKTests",
      "sources" : [
        "BlockingServerTests.swift",
        "RequestTests.swift",
        "RouterTests.swift",
        "TelegramBotTests.swift",
        "UrlencodeTests.swift"
      ],
      "target_dependencies" : [
        "TelegramBotSDK"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TelegramBotSDK",
      "module_type" : "SwiftTarget",
      "name" : "TelegramBotSDK",
      "path" : "Sources/TelegramBotSDK",
      "product_memberships" : [
        "TelegramBotSDK"
      ],
      "sources" : [
        "BotName.swift",
        "DataTaskError.swift",
        "DictionaryUtils.swift",
        "Extensions/NSRunLoop+Utils.swift",
        "Extensions/Optional+Unwrap.swift",
        "Extensions/Scanner+Compatibility.swift",
        "Extensions/Scanner+Utils.swift",
        "Extensions/String+ExtractBotCommand.swift",
        "Extensions/String+HTTP.swift",
        "Extensions/String+Trim.swift",
        "Extensions/String+Utils.swift",
        "Generated/Methods.swift",
        "Generated/Types.swift",
        "HTTPUtils.swift",
        "Methods/TelegramBot+getUpdates+Utils.swift",
        "Methods/TelegramBot+sendChatAction+Utils.swift",
        "MimeTypes.swift",
        "Router/Arguments.swift",
        "Router/Command.swift",
        "Router/ContentType.swift",
        "Router/Context.swift",
        "Router/Router+Helpers.swift",
        "Router/Router.swift",
        "TaskAssociatedData.swift",
        "TelegramBot+Requests.swift",
        "TelegramBot+Utils.swift",
        "TelegramBot.swift",
        "Types/ChatId.swift",
        "Types/ChatMember+Status.swift",
        "Types/ChatType.swift",
        "Types/InlineQueryResult.swift",
        "Types/InputFile.swift",
        "Types/InputFileOrString.swift",
        "Types/InputMedia.swift",
        "Types/InputMessageContent.swift",
        "Types/Message+Command.swift",
        "Types/MessageEntity+Utils.swift",
        "Types/MessageOrBool.swift",
        "Types/ParseMode.swift",
        "Types/PollType.swift",
        "Types/ReplyMarkup.swift",
        "Types/Response.swift",
        "Utils.swift",
        "WriteCallbackData.swift"
      ],
      "target_dependencies" : [
        "CCurl"
      ],
      "type" : "library"
    },
    {
      "c99name" : "CCurl",
      "module_type" : "ClangTarget",
      "name" : "CCurl",
      "path" : "Sources/CCurl",
      "product_memberships" : [
        "CCurl",
        "TelegramBotSDK"
      ],
      "sources" : [
        "shim.c"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.