Build Information
Successful build of d3-stories-instagram, reference main (f586ef
), with Swift 6.0 (beta) for macOS (SPM) on 14 Sep 2024 20:13:41 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/d3-stories-instagram.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/igor11191708/d3-stories-instagram
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at f586ef3 Update .spi.yml
Cloned https://github.com/igor11191708/d3-stories-instagram.git
Revision (git rev-parse @):
f586ef351ac292f2ffa9f7bf1bcd52e533503cc0
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/igor11191708/d3-stories-instagram.git at main
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/igor11191708/d3-stories-instagram.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/5] Write sources
[1/5] Copying Localizable.strings
[1/5] Copying Info.plist
[4/5] Write swift-version-117DEE11B69C53C9.txt
[6/24] Compiling d3_stories_instagram Strategy.swift
[7/24] Compiling d3_stories_instagram CustomStoriesValidater.swift
[8/24] Compiling d3_stories_instagram StoriesInternalError.swift
[9/24] Compiling d3_stories_instagram StoriesState.swift
[10/25] Compiling d3_stories_instagram StateManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/viewmodel/StateManager.swift:88:13: warning: capture of 'self' with non-sendable type 'StateManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | /// Managing stories life circle
12 | final class StateManager {
| `- note: class 'StateManager' does not conform to the 'Sendable' protocol
13 | /// Sorry:) 0.00001 - fixing bug with animation in SwiftUI
14 | static let startProgress = 0.00001
:
86 | publisher.send(.start)
87 | DispatchQueue.main.asyncAfter(deadline: .now() + leeway) { [weak self] in
88 | self?.begin(duration)
| `- warning: capture of 'self' with non-sendable type 'StateManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | }
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/viewmodel/StoriesManager.swift:83:13: warning: capture of 'self' with non-sendable type 'StoriesManager<Item>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | /// Managing logic for ``StoriesWidget`` component
12 | @available(iOS 15.0, macOS 12.0, tvOS 16.0, watchOS 10.0, *)
13 | public final class StoriesManager<Item: IStory>: IStoriesManager {
| `- note: generic class 'StoriesManager' does not conform to the 'Sendable' protocol
14 | /// Time progress demonstrating the current story
15 | @Published public var progress: CGFloat = StateManager.startProgress
:
81 | tapTime = true
82 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) { [weak self] in
83 | self?.tapTime = false
| `- warning: capture of 'self' with non-sendable type 'StoriesManager<Item>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/viewmodel/StateManager.swift:88:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
86 | publisher.send(.start)
87 | DispatchQueue.main.asyncAfter(deadline: .now() + leeway) { [weak self] in
88 | self?.begin(duration)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
89 | }
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/viewmodel/StoriesManager.swift:83:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
81 | tapTime = true
82 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) { [weak self] in
83 | self?.tapTime = false
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
84 | }
85 | }
[11/25] Compiling d3_stories_instagram StoriesManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/viewmodel/StateManager.swift:88:13: warning: capture of 'self' with non-sendable type 'StateManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
10 |
11 | /// Managing stories life circle
12 | final class StateManager {
| `- note: class 'StateManager' does not conform to the 'Sendable' protocol
13 | /// Sorry:) 0.00001 - fixing bug with animation in SwiftUI
14 | static let startProgress = 0.00001
:
86 | publisher.send(.start)
87 | DispatchQueue.main.asyncAfter(deadline: .now() + leeway) { [weak self] in
88 | self?.begin(duration)
| `- warning: capture of 'self' with non-sendable type 'StateManager?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | }
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/viewmodel/StoriesManager.swift:83:13: warning: capture of 'self' with non-sendable type 'StoriesManager<Item>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | /// Managing logic for ``StoriesWidget`` component
12 | @available(iOS 15.0, macOS 12.0, tvOS 16.0, watchOS 10.0, *)
13 | public final class StoriesManager<Item: IStory>: IStoriesManager {
| `- note: generic class 'StoriesManager' does not conform to the 'Sendable' protocol
14 | /// Time progress demonstrating the current story
15 | @Published public var progress: CGFloat = StateManager.startProgress
:
81 | tapTime = true
82 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) { [weak self] in
83 | self?.tapTime = false
| `- warning: capture of 'self' with non-sendable type 'StoriesManager<Item>?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | }
85 | }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/viewmodel/StateManager.swift:88:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
86 | publisher.send(.start)
87 | DispatchQueue.main.asyncAfter(deadline: .now() + leeway) { [weak self] in
88 | self?.begin(duration)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
89 | }
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/viewmodel/StoriesManager.swift:83:13: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
81 | tapTime = true
82 | DispatchQueue.main.asyncAfter(deadline: .now() + 0.25) { [weak self] in
83 | self?.tapTime = false
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: task-isolated 'self' is captured by a main actor-isolated closure. main actor-isolated uses in closure may race against later nonisolated uses
84 | }
85 | }
[12/25] Compiling d3_stories_instagram IStoriesManager.swift
[13/25] Compiling d3_stories_instagram IStoriesValidater.swift
[14/25] Compiling d3_stories_instagram StoriesStateKey.swift
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/key/StoriesStateKey.swift:14:16: 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
12 | typealias Value = StoriesState
13 |
14 | static var defaultValue: StoriesState = .ready
| |- 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
15 |
16 | static func reduce(value: inout Value, nextValue: () -> Value) {
[15/25] Compiling d3_stories_instagram IStoriesError.swift
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/key/StoriesStateKey.swift:14:16: 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
12 | typealias Value = StoriesState
13 |
14 | static var defaultValue: StoriesState = .ready
| |- 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
15 |
16 | static func reduce(value: inout Value, nextValue: () -> Value) {
[16/25] Compiling d3_stories_instagram IStory.swift
[17/25] Compiling d3_stories_instagram IStoryTpl.swift
[18/25] Compiling d3_stories_instagram Stories.swift
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:23:22: warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | @ViewBuilder
20 | /// Define view template for every story
21 | public func builder(progress: Binding<CGFloat>) -> some View {
| `- note: add '@MainActor' to make instance method 'builder(progress:)' part of global actor 'MainActor'
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
| `- warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | case .second: StoryTpl(self, .brown, "2", progress)
25 | case .third: StoryTpl(self, .purple, "3", progress)
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:32:12: note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
30 | // MARK: - Life circle
31 |
32 | public init(_ story: T, _ color: Color, _ text: String, _ progress: Binding<CGFloat>) {
| `- note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
33 | self.story = story
34 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:24:23: warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | @ViewBuilder
20 | /// Define view template for every story
21 | public func builder(progress: Binding<CGFloat>) -> some View {
| `- note: add '@MainActor' to make instance method 'builder(progress:)' part of global actor 'MainActor'
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
24 | case .second: StoryTpl(self, .brown, "2", progress)
| `- warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | case .third: StoryTpl(self, .purple, "3", progress)
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:32:12: note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
30 | // MARK: - Life circle
31 |
32 | public init(_ story: T, _ color: Color, _ text: String, _ progress: Binding<CGFloat>) {
| `- note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
33 | self.story = story
34 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:25:22: warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | @ViewBuilder
20 | /// Define view template for every story
21 | public func builder(progress: Binding<CGFloat>) -> some View {
| `- note: add '@MainActor' to make instance method 'builder(progress:)' part of global actor 'MainActor'
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
24 | case .second: StoryTpl(self, .brown, "2", progress)
25 | case .third: StoryTpl(self, .purple, "3", progress)
| `- warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
27 | case .fifth: StoryTpl(self, .orange, "5", progress)
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:32:12: note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
30 | // MARK: - Life circle
31 |
32 | public init(_ story: T, _ color: Color, _ text: String, _ progress: Binding<CGFloat>) {
| `- note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
33 | self.story = story
34 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:26:23: warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | @ViewBuilder
20 | /// Define view template for every story
21 | public func builder(progress: Binding<CGFloat>) -> some View {
| `- note: add '@MainActor' to make instance method 'builder(progress:)' part of global actor 'MainActor'
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
24 | case .second: StoryTpl(self, .brown, "2", progress)
25 | case .third: StoryTpl(self, .purple, "3", progress)
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
| `- warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | case .fifth: StoryTpl(self, .orange, "5", progress)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:32:12: note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
30 | // MARK: - Life circle
31 |
32 | public init(_ story: T, _ color: Color, _ text: String, _ progress: Binding<CGFloat>) {
| `- note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
33 | self.story = story
34 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:27:22: warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | @ViewBuilder
20 | /// Define view template for every story
21 | public func builder(progress: Binding<CGFloat>) -> some View {
| `- note: add '@MainActor' to make instance method 'builder(progress:)' part of global actor 'MainActor'
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
:
25 | case .third: StoryTpl(self, .purple, "3", progress)
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
27 | case .fifth: StoryTpl(self, .orange, "5", progress)
| `- warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:32:12: note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
30 | // MARK: - Life circle
31 |
32 | public init(_ story: T, _ color: Color, _ text: String, _ progress: Binding<CGFloat>) {
| `- note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
33 | self.story = story
34 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:25:25: warning: main actor-isolated property 'progress' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
10 | /// Example stories template
11 | @available(iOS 15.0, macOS 12.0, tvOS 16.0, watchOS 10.0, *)
12 | public struct StoryTpl<T: IStory>: IStoryTpl {
| `- note: add '@preconcurrency' to the 'IStoryTpl' conformance to defer isolation checking to run time
13 | /// Detecting color scheme
14 | @Environment(\.colorScheme) private var colorScheme: ColorScheme
:
23 |
24 | /// Current progress
25 | @Binding public var progress: CGFloat
| `- warning: main actor-isolated property 'progress' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
26 |
27 | /// Story
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/protocol/IStoryTpl.swift:16:9: note: 'progress' declared here
14 |
15 | /// Current progress of showing story
16 | var progress: CGFloat { get }
| `- note: 'progress' declared here
17 |
18 | var story: StoryType { get }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:28:16: warning: main actor-isolated property 'story' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
26 |
27 | /// Story
28 | public let story: T
| `- warning: main actor-isolated property 'story' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
29 |
30 | // MARK: - Life circle
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/protocol/IStoryTpl.swift:18:9: note: 'story' declared here
16 | var progress: CGFloat { get }
17 |
18 | var story: StoryType { get }
| `- note: 'story' declared here
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:23:22: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
21 | public func builder(progress: Binding<CGFloat>) -> some View {
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
24 | case .second: StoryTpl(self, .brown, "2", progress)
25 | case .third: StoryTpl(self, .purple, "3", progress)
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:24:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
24 | case .second: StoryTpl(self, .brown, "2", progress)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
25 | case .third: StoryTpl(self, .purple, "3", progress)
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:25:22: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
23 | case .first: StoryTpl(self, .green, "1", progress)
24 | case .second: StoryTpl(self, .brown, "2", progress)
25 | case .third: StoryTpl(self, .purple, "3", progress)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
27 | case .fifth: StoryTpl(self, .orange, "5", progress)
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:26:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
24 | case .second: StoryTpl(self, .brown, "2", progress)
25 | case .third: StoryTpl(self, .purple, "3", progress)
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
27 | case .fifth: StoryTpl(self, .orange, "5", progress)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:27:22: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
25 | case .third: StoryTpl(self, .purple, "3", progress)
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
27 | case .fifth: StoryTpl(self, .orange, "5", progress)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
28 | }
29 | }
[19/25] Compiling d3_stories_instagram StoryTpl.swift
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:23:22: warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | @ViewBuilder
20 | /// Define view template for every story
21 | public func builder(progress: Binding<CGFloat>) -> some View {
| `- note: add '@MainActor' to make instance method 'builder(progress:)' part of global actor 'MainActor'
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
| `- warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
24 | case .second: StoryTpl(self, .brown, "2", progress)
25 | case .third: StoryTpl(self, .purple, "3", progress)
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:32:12: note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
30 | // MARK: - Life circle
31 |
32 | public init(_ story: T, _ color: Color, _ text: String, _ progress: Binding<CGFloat>) {
| `- note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
33 | self.story = story
34 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:24:23: warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | @ViewBuilder
20 | /// Define view template for every story
21 | public func builder(progress: Binding<CGFloat>) -> some View {
| `- note: add '@MainActor' to make instance method 'builder(progress:)' part of global actor 'MainActor'
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
24 | case .second: StoryTpl(self, .brown, "2", progress)
| `- warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
25 | case .third: StoryTpl(self, .purple, "3", progress)
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:32:12: note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
30 | // MARK: - Life circle
31 |
32 | public init(_ story: T, _ color: Color, _ text: String, _ progress: Binding<CGFloat>) {
| `- note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
33 | self.story = story
34 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:25:22: warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | @ViewBuilder
20 | /// Define view template for every story
21 | public func builder(progress: Binding<CGFloat>) -> some View {
| `- note: add '@MainActor' to make instance method 'builder(progress:)' part of global actor 'MainActor'
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
24 | case .second: StoryTpl(self, .brown, "2", progress)
25 | case .third: StoryTpl(self, .purple, "3", progress)
| `- warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
27 | case .fifth: StoryTpl(self, .orange, "5", progress)
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:32:12: note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
30 | // MARK: - Life circle
31 |
32 | public init(_ story: T, _ color: Color, _ text: String, _ progress: Binding<CGFloat>) {
| `- note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
33 | self.story = story
34 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:26:23: warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | @ViewBuilder
20 | /// Define view template for every story
21 | public func builder(progress: Binding<CGFloat>) -> some View {
| `- note: add '@MainActor' to make instance method 'builder(progress:)' part of global actor 'MainActor'
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
24 | case .second: StoryTpl(self, .brown, "2", progress)
25 | case .third: StoryTpl(self, .purple, "3", progress)
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
| `- warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
27 | case .fifth: StoryTpl(self, .orange, "5", progress)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:32:12: note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
30 | // MARK: - Life circle
31 |
32 | public init(_ story: T, _ color: Color, _ text: String, _ progress: Binding<CGFloat>) {
| `- note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
33 | self.story = story
34 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:27:22: warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
19 | @ViewBuilder
20 | /// Define view template for every story
21 | public func builder(progress: Binding<CGFloat>) -> some View {
| `- note: add '@MainActor' to make instance method 'builder(progress:)' part of global actor 'MainActor'
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
:
25 | case .third: StoryTpl(self, .purple, "3", progress)
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
27 | case .fifth: StoryTpl(self, .orange, "5", progress)
| `- warning: call to main actor-isolated initializer 'init(_:_:_:_:)' in a synchronous nonisolated context; this is an error in the Swift 6 language mode
28 | }
29 | }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:32:12: note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
30 | // MARK: - Life circle
31 |
32 | public init(_ story: T, _ color: Color, _ text: String, _ progress: Binding<CGFloat>) {
| `- note: calls to initializer 'init(_:_:_:_:)' from outside of its actor context are implicitly asynchronous
33 | self.story = story
34 | self.color = color
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:25:25: warning: main actor-isolated property 'progress' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
10 | /// Example stories template
11 | @available(iOS 15.0, macOS 12.0, tvOS 16.0, watchOS 10.0, *)
12 | public struct StoryTpl<T: IStory>: IStoryTpl {
| `- note: add '@preconcurrency' to the 'IStoryTpl' conformance to defer isolation checking to run time
13 | /// Detecting color scheme
14 | @Environment(\.colorScheme) private var colorScheme: ColorScheme
:
23 |
24 | /// Current progress
25 | @Binding public var progress: CGFloat
| `- warning: main actor-isolated property 'progress' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
26 |
27 | /// Story
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/protocol/IStoryTpl.swift:16:9: note: 'progress' declared here
14 |
15 | /// Current progress of showing story
16 | var progress: CGFloat { get }
| `- note: 'progress' declared here
17 |
18 | var story: StoryType { get }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:28:16: warning: main actor-isolated property 'story' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
26 |
27 | /// Story
28 | public let story: T
| `- warning: main actor-isolated property 'story' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
29 |
30 | // MARK: - Life circle
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/protocol/IStoryTpl.swift:18:9: note: 'story' declared here
16 | var progress: CGFloat { get }
17 |
18 | var story: StoryType { get }
| `- note: 'story' declared here
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:23:22: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
21 | public func builder(progress: Binding<CGFloat>) -> some View {
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
24 | case .second: StoryTpl(self, .brown, "2", progress)
25 | case .third: StoryTpl(self, .purple, "3", progress)
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:24:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
22 | switch self {
23 | case .first: StoryTpl(self, .green, "1", progress)
24 | case .second: StoryTpl(self, .brown, "2", progress)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
25 | case .third: StoryTpl(self, .purple, "3", progress)
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:25:22: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
23 | case .first: StoryTpl(self, .green, "1", progress)
24 | case .second: StoryTpl(self, .brown, "2", progress)
25 | case .third: StoryTpl(self, .purple, "3", progress)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
27 | case .fifth: StoryTpl(self, .orange, "5", progress)
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:26:23: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
24 | case .second: StoryTpl(self, .brown, "2", progress)
25 | case .third: StoryTpl(self, .purple, "3", progress)
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
27 | case .fifth: StoryTpl(self, .orange, "5", progress)
28 | }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/Stories.swift:27:22: warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
25 | case .third: StoryTpl(self, .purple, "3", progress)
26 | case .fourth: StoryTpl(self, .yellow, "4", progress)
27 | case .fifth: StoryTpl(self, .orange, "5", progress)
| |- warning: sending 'self' risks causing data races; this is an error in the Swift 6 language mode
| `- note: sending task-isolated 'self' to main actor-isolated callee risks causing data races between main actor-isolated and task-isolated uses
28 | }
29 | }
[20/25] Compiling d3_stories_instagram ProgressBar.swift
[21/25] Compiling d3_stories_instagram StoriesView.swift
[22/25] Emitting module d3_stories_instagram
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/data/StoriesError.swift:13:16: warning: stored property 'description' of 'Sendable'-conforming struct 'StoriesError' has non-sendable type 'LocalizedStringKey'; this is an error in the Swift 6 language mode
11 | @available(iOS 15.0, macOS 12.0, tvOS 16.0, watchOS 10.0, *)
12 | public struct StoriesError: IStoriesError {
13 | public let description: LocalizedStringKey
| `- warning: stored property 'description' of 'Sendable'-conforming struct 'StoriesError' has non-sendable type 'LocalizedStringKey'; this is an error in the Swift 6 language mode
14 | }
15 |
SwiftUICore.LocalizedStringKey:2:23: note: struct 'LocalizedStringKey' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct LocalizedStringKey : Equatable, ExpressibleByStringInterpolation {
| `- note: struct 'LocalizedStringKey' does not conform to the 'Sendable' protocol
3 | public init(_ value: String)
4 | public init(stringLiteral value: String)
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:25:25: warning: main actor-isolated property 'progress' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
10 | /// Example stories template
11 | @available(iOS 15.0, macOS 12.0, tvOS 16.0, watchOS 10.0, *)
12 | public struct StoryTpl<T: IStory>: IStoryTpl {
| `- note: add '@preconcurrency' to the 'IStoryTpl' conformance to defer isolation checking to run time
13 | /// Detecting color scheme
14 | @Environment(\.colorScheme) private var colorScheme: ColorScheme
:
23 |
24 | /// Current progress
25 | @Binding public var progress: CGFloat
| `- warning: main actor-isolated property 'progress' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
26 |
27 | /// Story
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/protocol/IStoryTpl.swift:16:9: note: 'progress' declared here
14 |
15 | /// Current progress of showing story
16 | var progress: CGFloat { get }
| `- note: 'progress' declared here
17 |
18 | var story: StoryType { get }
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/example/StoryTpl.swift:28:16: warning: main actor-isolated property 'story' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
26 |
27 | /// Story
28 | public let story: T
| `- warning: main actor-isolated property 'story' cannot be used to satisfy nonisolated protocol requirement; this is an error in the Swift 6 language mode
29 |
30 | // MARK: - Life circle
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/protocol/IStoryTpl.swift:18:9: note: 'story' declared here
16 | var progress: CGFloat { get }
17 |
18 | var story: StoryType { get }
| `- note: 'story' declared here
19 | }
20 |
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/key/StoriesStateKey.swift:14:16: 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
12 | typealias Value = StoriesState
13 |
14 | static var defaultValue: StoriesState = .ready
| |- 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
15 |
16 | static func reduce(value: inout Value, nextValue: () -> Value) {
[23/25] Compiling d3_stories_instagram StoriesWidget.swift
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/data/StoriesError.swift:13:16: warning: stored property 'description' of 'Sendable'-conforming struct 'StoriesError' has non-sendable type 'LocalizedStringKey'; this is an error in the Swift 6 language mode
11 | @available(iOS 15.0, macOS 12.0, tvOS 16.0, watchOS 10.0, *)
12 | public struct StoriesError: IStoriesError {
13 | public let description: LocalizedStringKey
| `- warning: stored property 'description' of 'Sendable'-conforming struct 'StoriesError' has non-sendable type 'LocalizedStringKey'; this is an error in the Swift 6 language mode
14 | }
15 |
SwiftUICore.LocalizedStringKey:2:23: note: struct 'LocalizedStringKey' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct LocalizedStringKey : Equatable, ExpressibleByStringInterpolation {
| `- note: struct 'LocalizedStringKey' does not conform to the 'Sendable' protocol
3 | public init(_ value: String)
4 | public init(stringLiteral value: String)
[24/25] Compiling d3_stories_instagram StoriesError.swift
/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/data/StoriesError.swift:13:16: warning: stored property 'description' of 'Sendable'-conforming struct 'StoriesError' has non-sendable type 'LocalizedStringKey'; this is an error in the Swift 6 language mode
11 | @available(iOS 15.0, macOS 12.0, tvOS 16.0, watchOS 10.0, *)
12 | public struct StoriesError: IStoriesError {
13 | public let description: LocalizedStringKey
| `- warning: stored property 'description' of 'Sendable'-conforming struct 'StoriesError' has non-sendable type 'LocalizedStringKey'; this is an error in the Swift 6 language mode
14 | }
15 |
SwiftUICore.LocalizedStringKey:2:23: note: struct 'LocalizedStringKey' does not conform to the 'Sendable' protocol
1 | @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *)
2 | @frozen public struct LocalizedStringKey : Equatable, ExpressibleByStringInterpolation {
| `- note: struct 'LocalizedStringKey' does not conform to the 'Sendable' protocol
3 | public init(_ value: String)
4 | public init(stringLiteral value: String)
[25/25] Compiling d3_stories_instagram resource_bundle_accessor.swift
Build complete! (19.13s)
Build complete.
{
"default_localization" : "en",
"dependencies" : [
],
"manifest_display_name" : "d3-stories-instagram",
"name" : "d3-stories-instagram",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12"
},
{
"name" : "ios",
"version" : "15"
},
{
"name" : "tvos",
"version" : "16"
},
{
"name" : "watchos",
"version" : "10"
}
],
"products" : [
{
"name" : "d3-stories-instagram",
"targets" : [
"d3-stories-instagram"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "d3_stories_instagramTests",
"module_type" : "SwiftTarget",
"name" : "d3-stories-instagramTests",
"path" : "Tests/d3-stories-instagramTests",
"sources" : [
"d3_stories_instagramTests.swift"
],
"target_dependencies" : [
"d3-stories-instagram"
],
"type" : "test"
},
{
"c99name" : "d3_stories_instagram",
"module_type" : "SwiftTarget",
"name" : "d3-stories-instagram",
"path" : "Sources/d3-stories-instagram",
"product_memberships" : [
"d3-stories-instagram"
],
"resources" : [
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/Resources/en.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "en"
}
}
},
{
"path" : "/Users/admin/builder/spi-builder-workspace/Sources/d3-stories-instagram/Resources/es.lproj/Localizable.strings",
"rule" : {
"process" : {
"localization" : "es"
}
}
}
],
"sources" : [
"ProgressBar.swift",
"StoriesView.swift",
"StoriesWidget.swift",
"data/StoriesError.swift",
"enum/StoriesInternalError.swift",
"enum/StoriesState.swift",
"enum/Strategy.swift",
"example/CustomStoriesValidater.swift",
"example/Stories.swift",
"example/StoryTpl.swift",
"key/StoriesStateKey.swift",
"protocol/IStoriesError.swift",
"protocol/IStoriesManager.swift",
"protocol/IStoriesValidater.swift",
"protocol/IStory.swift",
"protocol/IStoryTpl.swift",
"viewmodel/StateManager.swift",
"viewmodel/StoriesManager.swift"
],
"type" : "library"
}
],
"tools_version" : "5.6"
}
Done.