Build Information
Successful build of app-icon-resize-machine, reference main (c57d8a
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 19:35:24 UTC.
Swift 6 data race errors: 0
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/KS1019/app-icon-resize-machine.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/KS1019/app-icon-resize-machine
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at c57d8af Update README.md
Cloned https://github.com/KS1019/app-icon-resize-machine.git
Revision (git rev-parse @):
c57d8af78ee0de570cc059942fe7158c4e526bd9
SUCCESS checkout https://github.com/KS1019/app-icon-resize-machine.git at main
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.71s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.4.3 (1.36s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.4.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",
"dependencies": [
{
"identity": "app-icon-resize-machine",
"name": "app-icon-resize-machine",
"url": "https://github.com/KS1019/app-icon-resize-machine.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/app-icon-resize-machine",
"dependencies": [
{
"identity": "swift-argument-parser",
"name": "swift-argument-parser",
"url": "https://github.com/apple/swift-argument-parser",
"version": "0.4.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-argument-parser",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/KS1019/app-icon-resize-machine.git
[1/186] Fetching app-icon-resize-machine
Fetched https://github.com/KS1019/app-icon-resize-machine.git from cache (0.64s)
Fetching https://github.com/apple/swift-argument-parser from cache
Fetched https://github.com/apple/swift-argument-parser from cache (0.60s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.4.4 (0.65s)
Creating working copy for https://github.com/apple/swift-argument-parser
Working copy of https://github.com/apple/swift-argument-parser resolved at 0.4.4
Creating working copy for https://github.com/KS1019/app-icon-resize-machine.git
Working copy of https://github.com/KS1019/app-icon-resize-machine.git resolved at main (c57d8af)
Found 1 product dependencies
- swift-argument-parser
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/KS1019/app-icon-resize-machine.git
https://github.com/KS1019/app-icon-resize-machine.git
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "0.4.0",
"upper_bound" : "0.5.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "app-icon-resize-machine",
"name" : "app-icon-resize-machine",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "app-icon-resize-machine",
"targets" : [
"app-icon-resize-machine"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "app_icon_resize_machineTests",
"module_type" : "SwiftTarget",
"name" : "app-icon-resize-machineTests",
"path" : "Tests/app-icon-resize-machineTests",
"sources" : [
"XCTestManifests.swift",
"app_icon_resize_machineTests.swift"
],
"target_dependencies" : [
"app-icon-resize-machine"
],
"type" : "test"
},
{
"c99name" : "app_icon_resize_machine",
"module_type" : "SwiftTarget",
"name" : "app-icon-resize-machine",
"path" : "Sources/app-icon-resize-machine",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"app-icon-resize-machine"
],
"sources" : [
"Contents.swift",
"Extensions/DataExtension.swift",
"Extensions/NSBitmapImageRepExtension.swift",
"Extensions/NSImageExtension.swift",
"ImageSizeConfig.swift",
"main.swift"
],
"type" : "executable"
}
],
"tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/7] Write sources
[1/7] Write app-icon-resize-machine-entitlement.plist
[3/7] Write swift-version-2F0A5646E1D333AE.txt
[5/40] Emitting module ArgumentParser
[6/43] Compiling ArgumentParser ParsableArgumentsValidation.swift
[7/43] Compiling ArgumentParser ParsableCommand.swift
[8/43] Compiling ArgumentParser ArgumentDecoder.swift
[9/43] Compiling ArgumentParser ArgumentDefinition.swift
[10/43] Compiling ArgumentParser SequenceExtensions.swift
[11/43] Compiling ArgumentParser StringExtensions.swift
[12/43] Compiling ArgumentParser Tree.swift
[13/43] Compiling ArgumentParser ParserError.swift
[14/43] Compiling ArgumentParser SplitArguments.swift
[15/43] Compiling ArgumentParser HelpCommand.swift
[16/43] Compiling ArgumentParser BashCompletionsGenerator.swift
[17/43] Compiling ArgumentParser CompletionsGenerator.swift
[18/43] Compiling ArgumentParser FishCompletionsGenerator.swift
[19/43] Compiling ArgumentParser ZshCompletionsGenerator.swift
[20/43] Compiling ArgumentParser ArgumentSet.swift
[21/43] Compiling ArgumentParser CommandParser.swift
[22/43] Compiling ArgumentParser InputOrigin.swift
[23/43] Compiling ArgumentParser Name.swift
[24/43] Compiling ArgumentParser Parsed.swift
[25/43] Compiling ArgumentParser ParsedValues.swift
[26/43] Compiling ArgumentParser Argument.swift
[27/43] Compiling ArgumentParser ArgumentHelp.swift
[28/43] Compiling ArgumentParser CompletionKind.swift
[29/43] Compiling ArgumentParser Errors.swift
[30/43] Compiling ArgumentParser Flag.swift
[31/43] Compiling ArgumentParser NameSpecification.swift
[32/43] Compiling ArgumentParser Option.swift
[33/43] Compiling ArgumentParser OptionGroup.swift
[34/43] Compiling ArgumentParser HelpGenerator.swift
[35/43] Compiling ArgumentParser MessageInfo.swift
[36/43] Compiling ArgumentParser UsageGenerator.swift
[37/43] Compiling ArgumentParser CommandConfiguration.swift
[38/43] Compiling ArgumentParser EnumerableFlag.swift
[39/43] Compiling ArgumentParser ExpressibleByArgument.swift
[40/43] Compiling ArgumentParser ParsableArguments.swift
[41/50] Compiling app_icon_resize_machine ImageSizeConfig.swift
[42/50] Compiling app_icon_resize_machine main.swift
/Users/admin/builder/spi-builder-workspace/Sources/app-icon-resize-machine/main.swift:19:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | struct ResizeMachine: ParsableCommand {
19 | static var configuration: CommandConfiguration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | commandName: "ResizeMachine",
21 | abstract: "Resizes .png file and generates Appicon file",
/Users/admin/builder/spi-builder-workspace/Sources/app-icon-resize-machine/main.swift:62:41: error: main actor-isolated var 'imagesJSON' can not be referenced from a nonisolated context
12 | var basePNGFile: NSImage?
13 | var resizedPNGFiles: [NSImage]
14 | var imagesJSON: [Image] = []
| `- note: var declared here
15 |
16 | let currentPath = "file://" + FileManager.default.currentDirectoryPath + "/"
:
59 | }
60 |
61 | func writeJSON() {
| `- note: add '@MainActor' to make instance method 'writeJSON()' part of global actor 'MainActor'
62 | let contents = Contents(images: imagesJSON, info: Info(version: 1, author: authorName))
| `- error: main actor-isolated var 'imagesJSON' can not be referenced from a nonisolated context
63 | write(contents: contents, to: URL(string: currentPath + appName + ".appiconset/" + "Contents.json")!)
64 | }
/Users/admin/builder/spi-builder-workspace/Sources/app-icon-resize-machine/main.swift:70:33: error: main actor-isolated var 'basePNGFile' can not be referenced from a nonisolated context
10 | import AppKit
11 |
12 | var basePNGFile: NSImage?
| `- note: var declared here
13 | var resizedPNGFiles: [NSImage]
14 | var imagesJSON: [Image] = []
:
64 | }
65 |
66 | func createResizeImages() {
| `- note: add '@MainActor' to make instance method 'createResizeImages()' part of global actor 'MainActor'
67 | let imageConfig = ImageGen(appName: appName, authorName: authorName)
68 | for config in imageConfig.iosConfigs {
69 | let size = config.size * config.scale
70 | guard let resized = basePNGFile?.resized(to: Int(size)) else { print("Error");return }
| `- error: main actor-isolated var 'basePNGFile' can not be referenced from a nonisolated context
71 | var sizeAtrr: String
72 | let scaleStr = String(format: "%.0f", config.scale)
/Users/admin/builder/spi-builder-workspace/Sources/app-icon-resize-machine/main.swift:78:17: error: main actor-isolated var 'imagesJSON' can not be mutated from a nonisolated context
12 | var basePNGFile: NSImage?
13 | var resizedPNGFiles: [NSImage]
14 | var imagesJSON: [Image] = []
| `- note: mutation of this var is only permitted within the actor
15 |
16 | let currentPath = "file://" + FileManager.default.currentDirectoryPath + "/"
:
64 | }
65 |
66 | func createResizeImages() {
| `- note: add '@MainActor' to make instance method 'createResizeImages()' part of global actor 'MainActor'
67 | let imageConfig = ImageGen(appName: appName, authorName: authorName)
68 | for config in imageConfig.iosConfigs {
:
76 | sizeAtrr = "\(sizeStr)x\(sizeStr)" + "@\(scaleStr)x"
77 | filename = "Icon-App-" + sizeAtrr + ".png"
78 | imagesJSON.append(Image(idiom: config.idiom.rawValue,
| `- error: main actor-isolated var 'imagesJSON' can not be mutated from a nonisolated context
79 | size: "\(sizeStr)x\(sizeStr)",
80 | scale: "\(scaleStr)x",
/Users/admin/builder/spi-builder-workspace/Sources/app-icon-resize-machine/main.swift:85:17: error: main actor-isolated var 'imagesJSON' can not be mutated from a nonisolated context
12 | var basePNGFile: NSImage?
13 | var resizedPNGFiles: [NSImage]
14 | var imagesJSON: [Image] = []
| `- note: mutation of this var is only permitted within the actor
15 |
16 | let currentPath = "file://" + FileManager.default.currentDirectoryPath + "/"
:
64 | }
65 |
66 | func createResizeImages() {
| `- note: add '@MainActor' to make instance method 'createResizeImages()' part of global actor 'MainActor'
67 | let imageConfig = ImageGen(appName: appName, authorName: authorName)
68 | for config in imageConfig.iosConfigs {
:
83 | sizeAtrr = "\(config.size)x\(config.size)" + "@\(scaleStr)x"
84 | filename = "Icon-App-" + sizeAtrr + ".png"
85 | imagesJSON.append(Image(idiom: config.idiom.rawValue,
| `- error: main actor-isolated var 'imagesJSON' can not be mutated from a nonisolated context
86 | size: "\(config.size)x\(config.size)",
87 | scale: "\(scaleStr)x",
/Users/admin/builder/spi-builder-workspace/Sources/app-icon-resize-machine/main.swift:99:9: error: main actor-isolated var 'basePNGFile' can not be mutated from a nonisolated context
10 | import AppKit
11 |
12 | var basePNGFile: NSImage?
| `- note: mutation of this var is only permitted within the actor
13 | var resizedPNGFiles: [NSImage]
14 | var imagesJSON: [Image] = []
:
96 | }
97 |
98 | func run() throws {
| `- note: add '@MainActor' to make instance method 'run()' part of global actor 'MainActor'
99 | basePNGFile = NSImage(contentsOf: URL(string: currentPath + iconFileName)!)
| `- error: main actor-isolated var 'basePNGFile' can not be mutated from a nonisolated context
100 | createDir()
101 | createResizeImages()
[43/50] Compiling app_icon_resize_machine NSBitmapImageRepExtension.swift
[44/50] Compiling app_icon_resize_machine Contents.swift
[45/50] Compiling app_icon_resize_machine DataExtension.swift
[46/50] Compiling app_icon_resize_machine NSImageExtension.swift
[47/50] Emitting module app_icon_resize_machine
/Users/admin/builder/spi-builder-workspace/Sources/app-icon-resize-machine/main.swift:19:16: warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
17 |
18 | struct ResizeMachine: ParsableCommand {
19 | static var configuration: CommandConfiguration = CommandConfiguration(
| |- warning: static property 'configuration' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'configuration' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'configuration' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
20 | commandName: "ResizeMachine",
21 | abstract: "Resizes .png file and generates Appicon file",
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/4] Write swift-version-2F0A5646E1D333AE.txt
[2/37] Emitting module ArgumentParser
[3/40] Compiling ArgumentParser CommandConfiguration.swift
[4/40] Compiling ArgumentParser EnumerableFlag.swift
[5/40] Compiling ArgumentParser ExpressibleByArgument.swift
[6/40] Compiling ArgumentParser ParsableArguments.swift
[7/40] Compiling ArgumentParser Argument.swift
[8/40] Compiling ArgumentParser ArgumentHelp.swift
[9/40] Compiling ArgumentParser CompletionKind.swift
[10/40] Compiling ArgumentParser Errors.swift
[11/40] Compiling ArgumentParser Name.swift
[12/40] Compiling ArgumentParser Parsed.swift
[13/40] Compiling ArgumentParser ParsedValues.swift
[14/40] Compiling ArgumentParser BashCompletionsGenerator.swift
[15/40] Compiling ArgumentParser CompletionsGenerator.swift
[16/40] Compiling ArgumentParser FishCompletionsGenerator.swift
[17/40] Compiling ArgumentParser ZshCompletionsGenerator.swift
[18/40] Compiling ArgumentParser ParserError.swift
[19/40] Compiling ArgumentParser SplitArguments.swift
[20/40] Compiling ArgumentParser HelpCommand.swift
[21/40] Compiling ArgumentParser SequenceExtensions.swift
[22/40] Compiling ArgumentParser StringExtensions.swift
[23/40] Compiling ArgumentParser Tree.swift
[24/40] Compiling ArgumentParser Flag.swift
[25/40] Compiling ArgumentParser NameSpecification.swift
[26/40] Compiling ArgumentParser Option.swift
[27/40] Compiling ArgumentParser OptionGroup.swift
[28/40] Compiling ArgumentParser ArgumentSet.swift
[29/40] Compiling ArgumentParser CommandParser.swift
[30/40] Compiling ArgumentParser InputOrigin.swift
[31/40] Compiling ArgumentParser ParsableArgumentsValidation.swift
[32/40] Compiling ArgumentParser ParsableCommand.swift
[33/40] Compiling ArgumentParser ArgumentDecoder.swift
[34/40] Compiling ArgumentParser ArgumentDefinition.swift
[35/40] Compiling ArgumentParser HelpGenerator.swift
[36/40] Compiling ArgumentParser MessageInfo.swift
[37/40] Compiling ArgumentParser UsageGenerator.swift
[38/47] Compiling app_icon_resize_machine NSBitmapImageRepExtension.swift
[39/47] Compiling app_icon_resize_machine ImageSizeConfig.swift
[40/47] Compiling app_icon_resize_machine NSImageExtension.swift
[41/47] Compiling app_icon_resize_machine DataExtension.swift
[42/47] Compiling app_icon_resize_machine Contents.swift
[43/47] Compiling app_icon_resize_machine main.swift
[44/47] Emitting module app_icon_resize_machine
[44/47] Write Objects.LinkFileList
[45/47] Linking app-icon-resize-machine
[46/47] Applying app-icon-resize-machine
Build complete! (2.86s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-argument-parser",
"requirement" : {
"range" : [
{
"lower_bound" : "0.4.0",
"upper_bound" : "0.5.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-argument-parser"
}
],
"manifest_display_name" : "app-icon-resize-machine",
"name" : "app-icon-resize-machine",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "app-icon-resize-machine",
"targets" : [
"app-icon-resize-machine"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "app_icon_resize_machineTests",
"module_type" : "SwiftTarget",
"name" : "app-icon-resize-machineTests",
"path" : "Tests/app-icon-resize-machineTests",
"sources" : [
"XCTestManifests.swift",
"app_icon_resize_machineTests.swift"
],
"target_dependencies" : [
"app-icon-resize-machine"
],
"type" : "test"
},
{
"c99name" : "app_icon_resize_machine",
"module_type" : "SwiftTarget",
"name" : "app-icon-resize-machine",
"path" : "Sources/app-icon-resize-machine",
"product_dependencies" : [
"ArgumentParser"
],
"product_memberships" : [
"app-icon-resize-machine"
],
"sources" : [
"Contents.swift",
"Extensions/DataExtension.swift",
"Extensions/NSBitmapImageRepExtension.swift",
"Extensions/NSImageExtension.swift",
"ImageSizeConfig.swift",
"main.swift"
],
"type" : "executable"
}
],
"tools_version" : "5.3"
}
Done.