The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of openai-async-image-swiftui, reference v1.1.0 (eb1a28), with Swift 6.0 (beta) for macOS (SPM) on 14 Sep 2024 19:06:25 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/igor11191708/openai-async-image-swiftui.git
Reference: v1.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/igor11191708/openai-async-image-swiftui
 * tag               v1.1.0     -> FETCH_HEAD
HEAD is now at eb1a284 Update README.md
Cloned https://github.com/igor11191708/openai-async-image-swiftui.git
Revision (git rev-parse @):
eb1a284c69769843f28237a6f3cbea9da9a28271
SUCCESS checkout https://github.com/igor11191708/openai-async-image-swiftui.git at v1.1.0
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/igor11191708/openai-async-image-swiftui.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.0-Release.Candidate.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/4] Write sources
[3/4] Write swift-version-117DEE11B69C53C9.txt
[5/9] Compiling retry_policy_service DispatchTimeInterval.swift
[6/9] Compiling retry_policy_service Strategy.swift
[7/9] Compiling retry_policy_service RetryIterator.swift
[8/9] Emitting module retry_policy_service
[9/9] Compiling retry_policy_service RetryService.swift
[10/30] Emitting module async_http_client
[11/32] Compiling async_http_client IConfiguration.swift
[12/32] Compiling async_http_client IProxy.swift
[13/32] Compiling async_http_client IResponse.swift
[14/32] Compiling async_http_client UrlHelper.swift
[15/32] Compiling async_http_client Configuration.swift
[16/32] Compiling async_http_client Errors.swift
[17/32] Compiling async_http_client ITaskDelegate.swift
[18/32] Compiling async_http_client Response.swift
[19/32] Compiling async_http_client HttpMethod.swift
[20/32] Compiling async_http_client Status.swift
[21/32] Compiling async_http_client JsonWriter.swift
[22/32] Compiling async_http_client JsonReader.swift
[23/32] Compiling async_http_client Validate.swift
[24/32] Compiling async_http_client RequestHelper.swift
[25/32] Compiling async_http_client SendHelper.swift
[26/32] Compiling async_http_client Direct.swift
[27/32] Compiling async_http_client Http.swift
[28/32] Compiling async_http_client Proxy+.swift
[29/32] Compiling async_http_client Proxy.swift
[30/32] Compiling async_http_client IReader.swift
[31/32] Compiling async_http_client IWriter.swift
[32/32] Compiling async_http_client IValidate.swift
[33/44] Compiling openai_async_image_swiftui IOpenAIImageEndpoint.swift
[34/45] Compiling openai_async_image_swiftui OpenAIImageEndpoint.swift
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/net/OpenAIImageEndpoint.swift:17:23: warning: static property 'urlString' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |     /// Base url to OpenAPI image resource
17 |     public static var urlString = "https://api.openai.com"
   |                       |- warning: static property 'urlString' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'urlString' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'urlString' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     /// Path to the point
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/net/OpenAIImageEndpoint.swift:20:23: warning: static property 'path' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 |     /// Path to the point
20 |     public static var path = "/v1/images/generations"
   |                       |- warning: static property 'path' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'path' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'path' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |     /// - Parameter apiKey: Api key for access
[35/45] Compiling openai_async_image_swiftui OpenAIAsyncImageLoaderKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/environmentKey/OpenAIAsyncImageLoaderKey.swift:15:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |     public typealias Value = OpenAIDefaultLoader
14 |
15 |     public static var defaultValue = OpenAIDefaultLoader(endpoint: OpenAIImageEndpoint.get(with: ""))
   |                       |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
[36/45] Compiling openai_async_image_swiftui Input.swift
[37/45] Compiling openai_async_image_swiftui Output.swift
[38/45] Compiling openai_async_image_swiftui ResponseFormat.swift
[39/45] Emitting module openai_async_image_swiftui
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/environmentKey/OpenAIAsyncImageLoaderKey.swift:15:23: warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
13 |     public typealias Value = OpenAIDefaultLoader
14 |
15 |     public static var defaultValue = OpenAIDefaultLoader(endpoint: OpenAIImageEndpoint.get(with: ""))
   |                       |- warning: static property 'defaultValue' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'defaultValue' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'defaultValue' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
16 | }
17 |
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/net/OpenAIImageEndpoint.swift:17:23: warning: static property 'urlString' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
15 |
16 |     /// Base url to OpenAPI image resource
17 |     public static var urlString = "https://api.openai.com"
   |                       |- warning: static property 'urlString' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'urlString' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'urlString' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
18 |
19 |     /// Path to the point
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/net/OpenAIImageEndpoint.swift:20:23: warning: static property 'path' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
18 |
19 |     /// Path to the point
20 |     public static var path = "/v1/images/generations"
   |                       |- warning: static property 'path' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'path' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'path' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
21 |
22 |     /// - Parameter apiKey: Api key for access
[40/45] Compiling openai_async_image_swiftui ImageState.swift
[41/45] Compiling openai_async_image_swiftui OpenAIImageSize.swift
[42/45] Compiling openai_async_image_swiftui OpenAIAsyncImage.swift
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/OpenAIAsyncImage.swift:149:17: warning: no 'async' operations occur within 'await' expression
147 |         Task{
148 |             if let image = await loadImage(prompt, with: size){
149 |                 await setImage(image)
    |                 `- warning: no 'async' operations occur within 'await' expression
150 |             }
151 |         }
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/OpenAIAsyncImage.swift:103:33: warning: sending 'size' risks causing data races; this is an error in the Swift 6 language mode
101 |     /// - Returns: OpenAI image
102 |     private func loadImageDefault(_ prompt : String, with size : ImageSize) async throws -> Image{
103 |         try await defaultLoader.load(prompt, with: size)
    |                                 |- warning: sending 'size' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending main actor-isolated 'size' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
104 |     }
105 |
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/OpenAIAsyncImage.swift:103:33: warning: sending 'self.defaultLoader' risks causing data races; this is an error in the Swift 6 language mode
101 |     /// - Returns: OpenAI image
102 |     private func loadImageDefault(_ prompt : String, with size : ImageSize) async throws -> Image{
103 |         try await defaultLoader.load(prompt, with: size)
    |                                 |- warning: sending 'self.defaultLoader' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending main actor-isolated 'self.defaultLoader' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
104 |     }
105 |
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/OpenAIAsyncImage.swift:114:41: warning: sending 'size' risks causing data races; this is an error in the Swift 6 language mode
112 |         do{
113 |             if let loader = loader{
114 |                 return try await loader.load(prompt, with: size)
    |                                         |- warning: sending 'size' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: sending main actor-isolated 'size' to nonisolated instance method 'load(_:with:)' risks causing data races between nonisolated and main actor-isolated uses
115 |             }
116 |
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/OpenAIAsyncImage.swift:114:41: warning: sending 'loader' risks causing data races; this is an error in the Swift 6 language mode
112 |         do{
113 |             if let loader = loader{
114 |                 return try await loader.load(prompt, with: size)
    |                                         |- warning: sending 'loader' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: sending main actor-isolated 'loader' to nonisolated instance method 'load(_:with:)' risks causing data races between nonisolated and main actor-isolated uses
115 |             }
116 |
[43/45] Compiling openai_async_image_swiftui AsyncImageErrors.swift
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/OpenAIAsyncImage.swift:149:17: warning: no 'async' operations occur within 'await' expression
147 |         Task{
148 |             if let image = await loadImage(prompt, with: size){
149 |                 await setImage(image)
    |                 `- warning: no 'async' operations occur within 'await' expression
150 |             }
151 |         }
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/OpenAIAsyncImage.swift:103:33: warning: sending 'size' risks causing data races; this is an error in the Swift 6 language mode
101 |     /// - Returns: OpenAI image
102 |     private func loadImageDefault(_ prompt : String, with size : ImageSize) async throws -> Image{
103 |         try await defaultLoader.load(prompt, with: size)
    |                                 |- warning: sending 'size' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending main actor-isolated 'size' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
104 |     }
105 |
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/OpenAIAsyncImage.swift:103:33: warning: sending 'self.defaultLoader' risks causing data races; this is an error in the Swift 6 language mode
101 |     /// - Returns: OpenAI image
102 |     private func loadImageDefault(_ prompt : String, with size : ImageSize) async throws -> Image{
103 |         try await defaultLoader.load(prompt, with: size)
    |                                 |- warning: sending 'self.defaultLoader' risks causing data races; this is an error in the Swift 6 language mode
    |                                 `- note: sending main actor-isolated 'self.defaultLoader' to nonisolated callee risks causing data races between nonisolated and main actor-isolated uses
104 |     }
105 |
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/OpenAIAsyncImage.swift:114:41: warning: sending 'size' risks causing data races; this is an error in the Swift 6 language mode
112 |         do{
113 |             if let loader = loader{
114 |                 return try await loader.load(prompt, with: size)
    |                                         |- warning: sending 'size' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: sending main actor-isolated 'size' to nonisolated instance method 'load(_:with:)' risks causing data races between nonisolated and main actor-isolated uses
115 |             }
116 |
/Users/admin/builder/spi-builder-workspace/Sources/openai-async-image-swiftui/OpenAIAsyncImage.swift:114:41: warning: sending 'loader' risks causing data races; this is an error in the Swift 6 language mode
112 |         do{
113 |             if let loader = loader{
114 |                 return try await loader.load(prompt, with: size)
    |                                         |- warning: sending 'loader' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: sending main actor-isolated 'loader' to nonisolated instance method 'load(_:with:)' risks causing data races between nonisolated and main actor-isolated uses
115 |             }
116 |
[44/45] Compiling openai_async_image_swiftui IOpenAILoader.swift
[45/45] Compiling openai_async_image_swiftui OpenAIDefaultLoader.swift
Build complete! (21.22s)
Fetching https://github.com/The-Igor/async-http-client.git
Fetching https://github.com/The-Igor/retry-policy-service.git
[1/884] Fetching async-http-client
[28/979] Fetching async-http-client, retry-policy-service
Fetched https://github.com/The-Igor/async-http-client.git from cache (0.85s)
Fetched https://github.com/The-Igor/retry-policy-service.git from cache (0.85s)
Computing version for https://github.com/The-Igor/async-http-client.git
Computed https://github.com/The-Igor/async-http-client.git at 1.4.4 (0.70s)
Computing version for https://github.com/The-Igor/retry-policy-service.git
Computed https://github.com/The-Igor/retry-policy-service.git at 1.0.0 (0.67s)
Creating working copy for https://github.com/The-Igor/async-http-client.git
Working copy of https://github.com/The-Igor/async-http-client.git resolved at 1.4.4
Creating working copy for https://github.com/The-Igor/retry-policy-service.git
Working copy of https://github.com/The-Igor/retry-policy-service.git resolved at 1.0.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "async-http-client",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.4.4",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/The-Igor/async-http-client.git"
    }
  ],
  "manifest_display_name" : "openai-async-image-swiftui",
  "name" : "openai-async-image-swiftui",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    }
  ],
  "products" : [
    {
      "name" : "openai-async-image-swiftui",
      "targets" : [
        "openai-async-image-swiftui"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "openai_async_image_swiftuiTests",
      "module_type" : "SwiftTarget",
      "name" : "openai-async-image-swiftuiTests",
      "path" : "Tests/openai-async-image-swiftuiTests",
      "sources" : [
        "openai_async_image_swiftuiTests.swift"
      ],
      "target_dependencies" : [
        "openai-async-image-swiftui"
      ],
      "type" : "test"
    },
    {
      "c99name" : "openai_async_image_swiftui",
      "module_type" : "SwiftTarget",
      "name" : "openai-async-image-swiftui",
      "path" : "Sources/openai-async-image-swiftui",
      "product_dependencies" : [
        "async-http-client"
      ],
      "product_memberships" : [
        "openai-async-image-swiftui"
      ],
      "sources" : [
        "OpenAIAsyncImage.swift",
        "enum/AsyncImageErrors.swift",
        "enum/ImageState.swift",
        "enum/OpenAIImageSize.swift",
        "enum/ResponseFormat.swift",
        "environmentKey/OpenAIAsyncImageLoaderKey.swift",
        "model/Input.swift",
        "model/Output.swift",
        "net/OpenAIImageEndpoint.swift",
        "protocol/IOpenAIImageEndpoint.swift",
        "protocol/IOpenAILoader.swift",
        "viewModel/OpenAIDefaultLoader.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.