Build Information
Failed to build swift-package-factory, reference v0.1.0 (2b27eb
), with Swift 6.0 for macOS (SPM) on 29 Nov 2024 09:26:50 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.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
Build Log
========================================
RunAll
========================================
Builder version: 4.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/tayloraswift/swift-package-factory.git
Reference: v0.1.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/tayloraswift/swift-package-factory
* tag v0.1.0 -> FETCH_HEAD
HEAD is now at 2b27eb0 add license and readme
Cloned https://github.com/tayloraswift/swift-package-factory.git
Revision (git rev-parse @):
2b27eb00e8011423edfb02fa70dd4c2c5f03cf16
SUCCESS checkout https://github.com/tayloraswift/swift-package-factory.git at v0.1.0
Fetching https://github.com/apple/swift-syntax.git
[1/66683] Fetching swift-syntax
Fetched https://github.com/apple/swift-syntax.git from cache (3.47s)
Fetching https://github.com/kelvin13/swift-system-extras.git
Fetching https://github.com/apple/swift-system.git
[1/40] Fetching swift-system-extras
[41/3959] Fetching swift-system-extras, swift-system
Fetched https://github.com/apple/swift-system.git from cache (1.37s)
Fetched https://github.com/kelvin13/swift-system-extras.git from cache (1.37s)
Computing version for https://github.com/kelvin13/swift-system-extras.git
Computed https://github.com/kelvin13/swift-system-extras.git at 0.1.0 (0.53s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.2.1 (0.53s)
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.2.1
Creating working copy for https://github.com/kelvin13/swift-system-extras.git
Working copy of https://github.com/kelvin13/swift-system-extras.git resolved at 0.1.0
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at swift-DEVELOPMENT-SNAPSHOT-2022-08-15-a (59c93fc)
========================================
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": "swift-package-factory",
"name": "swift-package-factory",
"url": "https://github.com/tayloraswift/swift-package-factory.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-package-factory",
"dependencies": [
{
"identity": "swift-system-extras",
"name": "swift-system-extras",
"url": "https://github.com/kelvin13/swift-system-extras.git",
"version": "0.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system-extras",
"dependencies": [
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system.git",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
}
]
},
{
"identity": "swift-syntax",
"name": "SwiftSyntax",
"url": "https://github.com/apple/swift-syntax.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-syntax",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/tayloraswift/swift-package-factory.git
[5/404] Fetching swift-package-factory
Fetched https://github.com/tayloraswift/swift-package-factory.git from cache (0.78s)
Fetching https://github.com/apple/swift-syntax.git from cache
Fetched https://github.com/apple/swift-syntax.git from cache (0.89s)
Fetching https://github.com/kelvin13/swift-system-extras.git from cache
Fetched https://github.com/kelvin13/swift-system-extras.git from cache (0.45s)
Computing version for https://github.com/kelvin13/swift-system-extras.git
Computed https://github.com/kelvin13/swift-system-extras.git at 0.2.0 (0.50s)
Fetching https://github.com/apple/swift-system.git from cache
Fetched https://github.com/apple/swift-system.git from cache (0.47s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.40s)
Creating working copy for https://github.com/kelvin13/swift-system-extras.git
Working copy of https://github.com/kelvin13/swift-system-extras.git resolved at 0.2.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
Creating working copy for https://github.com/apple/swift-syntax.git
Working copy of https://github.com/apple/swift-syntax.git resolved at swift-DEVELOPMENT-SNAPSHOT-2022-08-15-a (59c93fc)
Creating working copy for https://github.com/tayloraswift/swift-package-factory.git
Working copy of https://github.com/tayloraswift/swift-package-factory.git resolved at v0.1.0 (2b27eb0)
warning: 'swift-package-factory': the target name factory has different case on the filesystem and the Package.swift manifest file
warning: 'swift-package-factory': 'Factory' was identified as an executable target given the presence of a 'main.swift' file. Starting with tools version 5.4.0 executable targets should be declared as 'executableTarget()'
warning: 'swift-package-factory': The target named 'Factory' was identified as an executable target but a non-executable product with this name already exists.
Found 2 product dependencies
- swift-system-extras
- SwiftSyntax
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/tayloraswift/swift-package-factory.git
{
"dependencies" : [
{
"identity" : "swift-system-extras",
"requirement" : {
"range" : [
{
"lower_bound" : "0.1.0",
"upper_bound" : "1.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/kelvin13/swift-system-extras.git"
},
{
"identity" : "swift-syntax",
"requirement" : {
"branch" : [
"swift-DEVELOPMENT-SNAPSHOT-2022-08-15-a"
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-syntax.git"
}
],
"manifest_display_name" : "swift-package-factory",
"name" : "swift-package-factory",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "factory",
"targets" : [
"factory"
],
"type" : {
"executable" : null
}
},
{
"name" : "Factory",
"targets" : [
"Factory"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "FactoryPlugin",
"targets" : [
"FactoryPlugin"
],
"type" : {
"plugin" : null
}
}
],
"targets" : [
{
"c99name" : "factory",
"module_type" : "SwiftTarget",
"name" : "factory",
"path" : "Sources/factory",
"product_memberships" : [
"factory",
"FactoryPlugin"
],
"sources" : [
"Error.swift",
"Factory.swift",
"Instantiator.swift",
"LexicalScope.swift",
"Loop.swift",
"Main.swift",
"MatrixElement.swift",
"Transformer.swift"
],
"target_dependencies" : [
"Factory"
],
"type" : "executable"
},
{
"c99name" : "FactoryPluginValidExampleTarget",
"module_type" : "SwiftTarget",
"name" : "FactoryPluginValidExampleTarget",
"path" : "Examples/ValidExamples",
"sources" : [
"Basic.spf.swift",
"DocComments.spf.swift",
"Nested.spf.swift",
"OtherAttributes.spf.swift",
"Scopes.spf.swift",
"Zip.spf.swift"
],
"type" : "library"
},
{
"c99name" : "FactoryPluginInvalidExampleTarget",
"module_type" : "SwiftTarget",
"name" : "FactoryPluginInvalidExampleTarget",
"path" : "Examples/InvalidExamples",
"sources" : [
"InvalidMatrix.spf.swift"
],
"type" : "library"
},
{
"c99name" : "FactoryPlugin",
"module_type" : "PluginTarget",
"name" : "FactoryPlugin",
"path" : "Plugins/FactoryPlugin",
"plugin_capability" : {
"intent" : {
"description" : "generate swift sources from factory sources",
"type" : "custom",
"verb" : "factory"
},
"permissions" : [
],
"type" : "command"
},
"product_memberships" : [
"FactoryPlugin"
],
"sources" : [
"Main.swift",
"MissingTargetError.swift"
],
"target_dependencies" : [
"factory"
],
"type" : "plugin"
},
{
"c99name" : "Factory",
"module_type" : "SwiftTarget",
"name" : "Factory",
"path" : "Sources/Factory",
"product_dependencies" : [
"SystemExtras",
"SwiftSyntax",
"SwiftSyntaxParser"
],
"product_memberships" : [
"factory",
"Factory",
"FactoryPlugin"
],
"sources" : [
"Error.swift",
"Factory.swift",
"Instantiator.swift",
"LexicalScope.swift",
"Loop.swift",
"Main.swift",
"MatrixElement.swift",
"Transformer.swift"
],
"type" : "executable"
}
],
"tools_version" : "5.6"
}
warning: 'spi-builder-workspace': the target name factory has different case on the filesystem and the Package.swift manifest file
warning: 'spi-builder-workspace': 'Factory' was identified as an executable target given the presence of a 'main.swift' file. Starting with tools version 5.4.0 executable targets should be declared as 'executableTarget()'
warning: 'spi-builder-workspace': The target named 'Factory' was identified as an executable target but a non-executable product with this name already exists.
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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
/Users/admin/builder/spi-builder-workspace/Plugins/FactoryPlugin/Main.swift:59:28: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead. (On iOS, process spawning is unavailable.)
57 | {
58 | case "spf", "swiftpf", "factory":
59 | switch system("\(tool.path.string) \(file.path.string)")
| `- error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead. (On iOS, process spawning is unavailable.)
60 | {
61 | case 0:
_stdlib.system:3:13: note: 'system' has been explicitly marked unavailable here
1 | @available(macOS 10.0, *)
2 | @available(*, unavailable, message: "Use posix_spawn APIs or NSTask instead. (On iOS, process spawning is unavailable.)")
3 | public func system(_: UnsafePointer<CChar>!) -> Int32
| `- note: 'system' has been explicitly marked unavailable here
[1/1] Compiling plugin FactoryPlugin
warning: 'spi-builder-workspace': the target name factory has different case on the filesystem and the Package.swift manifest file
warning: 'spi-builder-workspace': 'Factory' was identified as an executable target given the presence of a 'main.swift' file. Starting with tools version 5.4.0 executable targets should be declared as 'executableTarget()'
warning: 'spi-builder-workspace': The target named 'Factory' was identified as an executable target but a non-executable product with this name already exists.
warning: 'spi-builder-workspace': found 6 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Examples/ValidExamples/Nested.spf
/Users/admin/builder/spi-builder-workspace/Examples/ValidExamples/Basic.spf
/Users/admin/builder/spi-builder-workspace/Examples/ValidExamples/Scopes.spf
/Users/admin/builder/spi-builder-workspace/Examples/ValidExamples/OtherAttributes.spf
/Users/admin/builder/spi-builder-workspace/Examples/ValidExamples/Zip.spf
/Users/admin/builder/spi-builder-workspace/Examples/ValidExamples/DocComments.spf
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Examples/InvalidExamples/InvalidBasisSyntax.spf
/Users/admin/builder/spi-builder-workspace/Examples/InvalidExamples/UndefinedBasis.spf
/Users/admin/builder/spi-builder-workspace/Examples/InvalidExamples/InvalidBasis.spf
/Users/admin/builder/spi-builder-workspace/Examples/InvalidExamples/InvalidMatrix.spf
/Users/admin/builder/spi-builder-workspace/Examples/InvalidExamples/IdentifierSafety.spf
BUILD FAILURE 6.0 macosSpm