This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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

Failed to build app-icon-resize-machine with Swift 6.0 for macOS (SPM).

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.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
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/KS1019/app-icon-resize-machine.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/7] Write sources
[2/7] Write app-icon-resize-machine-entitlement.plist
[3/7] Write swift-version-6F35C1178C84523A.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 Name.swift
[17/43] Compiling ArgumentParser Parsed.swift
[18/43] Compiling ArgumentParser ParsedValues.swift
[19/43] Compiling ArgumentParser Argument.swift
[20/43] Compiling ArgumentParser ArgumentHelp.swift
[21/43] Compiling ArgumentParser CompletionKind.swift
[22/43] Compiling ArgumentParser Errors.swift
[23/43] Compiling ArgumentParser CommandConfiguration.swift
[24/43] Compiling ArgumentParser EnumerableFlag.swift
[25/43] Compiling ArgumentParser ExpressibleByArgument.swift
[26/43] Compiling ArgumentParser ParsableArguments.swift
[27/43] Compiling ArgumentParser BashCompletionsGenerator.swift
[28/43] Compiling ArgumentParser CompletionsGenerator.swift
[29/43] Compiling ArgumentParser FishCompletionsGenerator.swift
[30/43] Compiling ArgumentParser ZshCompletionsGenerator.swift
[31/43] Compiling ArgumentParser ArgumentSet.swift
[32/43] Compiling ArgumentParser CommandParser.swift
[33/43] Compiling ArgumentParser InputOrigin.swift
[34/43] Compiling ArgumentParser Flag.swift
[35/43] Compiling ArgumentParser NameSpecification.swift
[36/43] Compiling ArgumentParser Option.swift
[37/43] Compiling ArgumentParser OptionGroup.swift
[38/43] Compiling ArgumentParser HelpGenerator.swift
[39/43] Compiling ArgumentParser MessageInfo.swift
[40/43] Compiling ArgumentParser UsageGenerator.swift
[41/50] Compiling app_icon_resize_machine NSImageExtension.swift
[42/50] Compiling app_icon_resize_machine ImageSizeConfig.swift
[43/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 non-isolated 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 non-isolated 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: annotate 'configuration' 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
 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated 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 non-isolated context
100 |         createDir()
101 |         createResizeImages()
[44/50] Compiling app_icon_resize_machine NSBitmapImageRepExtension.swift
[45/50] Compiling app_icon_resize_machine Contents.swift
[46/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 non-isolated 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 non-isolated 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: annotate 'configuration' 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
 20 |         commandName: "ResizeMachine",
 21 |         abstract: "Resizes .png file and generates Appicon file",
[47/50] Compiling app_icon_resize_machine DataExtension.swift
Fetching https://github.com/apple/swift-argument-parser
[1/11714] Fetching swift-argument-parser
Fetched https://github.com/apple/swift-argument-parser from cache (1.58s)
Computing version for https://github.com/apple/swift-argument-parser
Computed https://github.com/apple/swift-argument-parser at 0.4.3 (0.67s)
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
BUILD FAILURE 6.0 macosSpm
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.