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 DeclarativeTextKit, reference main (141903), with Swift 5.10 for macOS (SPM) on 11 Jul 2024 08:07:42 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.46.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CleanCocoa/DeclarativeTextKit.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CleanCocoa/DeclarativeTextKit
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 1419034 remove equal ranges special case because the other checks cover this
Cloned https://github.com/CleanCocoa/DeclarativeTextKit.git
Revision (git rev-parse @):
1419034a113bee3bf37cf7a32021e6e89dfec0aa
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/CleanCocoa/DeclarativeTextKit.git at main
========================================
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": "declarativetextkit",
      "name": "DeclarativeTextKit",
      "url": "https://github.com/CleanCocoa/DeclarativeTextKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/DeclarativeTextKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/CleanCocoa/DeclarativeTextKit.git
[1/1991] Fetching declarativetextkit
Fetched https://github.com/CleanCocoa/DeclarativeTextKit.git from cache (1.45s)
Creating working copy for https://github.com/CleanCocoa/DeclarativeTextKit.git
Working copy of https://github.com/CleanCocoa/DeclarativeTextKit.git resolved at main (1419034)
warning: '.resolve-product-dependencies': dependency 'declarativetextkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $workDir
https://github.com/CleanCocoa/DeclarativeTextKit.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-33747A42983211AE.txt
[4/50] Emitting module DeclarativeTextKit
[5/55] Compiling DeclarativeTextKit NSRange+notFound.swift
[6/55] Compiling DeclarativeTextKit NSRange+prefix.swift
[7/55] Compiling DeclarativeTextKit NSRange+suffix.swift
[8/55] Compiling DeclarativeTextKit NSString+locationUpToCharacter.swift
[9/55] Compiling DeclarativeTextKit SortedArray.swift
[10/55] Compiling DeclarativeTextKit ScopedBufferSlice.swift
[11/55] Compiling DeclarativeTextKit AffectedRange.swift
[12/55] Compiling DeclarativeTextKit Buffer+SelectRangeExpression.swift
[13/55] Compiling DeclarativeTextKit BufferRangeExpression.swift
[14/55] Compiling DeclarativeTextKit LineRange.swift
[15/55] Compiling DeclarativeTextKit Insert+Modification.swift
[16/55] Compiling DeclarativeTextKit Insert.swift
[17/55] Compiling DeclarativeTextKit Insertable.swift
[18/55] Compiling DeclarativeTextKit Line.swift
[19/55] Compiling DeclarativeTextKit String+Insertable.swift
[20/55] Compiling DeclarativeTextKit Bool+inverted.swift
[21/55] Compiling DeclarativeTextKit Buffer+contains.swift
[22/55] Compiling DeclarativeTextKit Buffer+evaluate.swift
[23/55] Compiling DeclarativeTextKit Buffer+wordRange.swift
[24/55] Compiling DeclarativeTextKit Buffer.swift
[25/55] Compiling DeclarativeTextKit BufferAccessFailure.swift
[26/55] Compiling DeclarativeTextKit Undoable.swift
[27/55] Compiling DeclarativeTextKit Debug.swift
[28/55] Compiling DeclarativeTextKit Expression.swift
[29/55] Compiling DeclarativeTextKit If.swift
[30/55] Compiling DeclarativeTextKit IfLet.swift
[31/55] Compiling DeclarativeTextKit NSRange+Resized.swift
[32/55] Compiling DeclarativeTextKit NSRange+Shifted.swift
[33/55] Compiling DeclarativeTextKit NSRange+Subtracting.swift
[34/55] Compiling DeclarativeTextKit NSRange+containsRange.swift
[35/55] Compiling DeclarativeTextKit NSRange+expandedToOther.swift
[36/55] Compiling DeclarativeTextKit Word.swift
[37/55] Compiling DeclarativeTextKit Modification.swift
[38/55] Compiling DeclarativeTextKit ModificationBuilder.swift
[39/55] Compiling DeclarativeTextKit ModificationSequence.swift
[40/55] Compiling DeclarativeTextKit Modifying.swift
[41/55] Compiling DeclarativeTextKit NSRange+BufferRangeExpression.swift
[42/55] Compiling DeclarativeTextKit Select.swift
[43/55] Compiling DeclarativeTextKit SelectedRange+BufferRangeExpression.swift
[44/55] Compiling DeclarativeTextKit WordRange.swift
[45/55] Compiling DeclarativeTextKit NSRange+Order.swift
[46/55] Compiling DeclarativeTextKit ChangeInLength+Consume.swift
[47/55] Compiling DeclarativeTextKit ChangeInLength.swift
[48/55] Compiling DeclarativeTextKit Delete+Modification.swift
[49/55] Compiling DeclarativeTextKit Delete.swift
[50/55] Compiling DeclarativeTextKit Identity.swift
[51/55] Compiling DeclarativeTextKit MutableStringBuffer.swift
[52/55] Compiling DeclarativeTextKit NSMutableString+BufferCompatibility.swift
[53/55] Compiling DeclarativeTextKit NSTextViewBuffer.swift
[54/55] Compiling DeclarativeTextKit UTF16.swift
[55/55] Compiling DeclarativeTextKit Undoable+NSTextViewBuffer.swift
[56/58] Compiling DeclarativeTextKitTesting assertBufferState.swift
[57/58] Compiling DeclarativeTextKitTesting MakeBufferWithSelectionFromString.swift
[58/58] Emitting module DeclarativeTextKitTesting
Build complete! (12.14s)
Build complete.
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $workDir/.docs/cleancocoa/declarativetextkit/main
Repository:               CleanCocoa/DeclarativeTextKit
Swift version used:       5.10
Target:                   DeclarativeTextKit
Generating documentation for 'DeclarativeTextKit'...
Converting documentation...
warning: 'evaluate(in:)' doesn't exist at '/DeclarativeTextKit/Modification'
  --> Runtime.md:31:64-31:77
29 | ## What is 'Runtime'?
30 |
31 + In the example above, step (3), the call to any ``Modification/evaluate(in:)`` starts the evaluation, including buffer mutations. That's the 'runtime'.
32 |
33 | During evaluation or 'runtime', ``AffectedRange`` values will self-update to represent changes to the selection in a buffer.
warning: 'evaluate(in:)' doesn't exist at '/DeclarativeTextKit/Modification'
  --> Runtime.md:93:361-93:374
91 | That's why we don't support `if` in the Result Builder syntax: Because your expectations will not be met!
92 |
93 + Both conditions are checked at 'build time'. So if `fullRange.length == 0`, the Result Builder will insert the first block into the ``ModificationSequence``. But it won't insert the second block into the sequence, because as the second condition is evaluated,  `fullRange.length` is still `0`. It will only change to `12` during 'runtime', when ``Modification/evaluate(in:)`` is executed -- which is *after* the ``ModificationSequence`` has been assembled by the Result Builder.
94 |
95 | So your actual result
warning: 'evaluate(in:)' doesn't exist at '/DeclarativeTextKit/Modification'
   --> Runtime.md:103:83-103:96
101 | ## Solution: Evaluate Declarations Lazily
102 |
103 + Where possible, we can delay evaluation of Swift expressions until ``Modification/evaluate(in:)`` is run by wrapping values in closures, which are invisible thanks to `@autoclosure`.
104 |
105 | That's how a `Select(fullRange)` will always use the ``AffectedRange/value`` value that is available at 'runtime', not 'build time'.Conversion complete! (0.23s)
Generated DocC archive at '/Users/admin/builder/spi-builder-workspace/.docs/cleancocoa/declarativetextkit/main'
Fetching https://github.com/apple/swift-docc-plugin
[1/1609] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.30s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (2.16s)
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2910] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.44s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.63s)
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Building for debugging...
[0/8] Write sources
[1/8] Write snippet-extract-entitlement.plist
[4/8] Write swift-version-33747A42983211AE.txt
[6/53] Compiling SymbolKit Mixin+Equals.swift
[7/53] Compiling SymbolKit Mixin+Hash.swift
[8/53] Compiling SymbolKit Mixin.swift
[9/53] Compiling SymbolKit LineList.swift
[10/53] Compiling SymbolKit Position.swift
[11/57] Compiling SymbolKit Names.swift
[12/57] Compiling SymbolKit SPI.swift
[13/57] Compiling SymbolKit Snippet.swift
[14/57] Compiling SymbolKit Extension.swift
[15/57] Compiling SymbolKit SourceRange.swift
[16/57] Compiling SymbolKit Metadata.swift
[17/57] Compiling SymbolKit Module.swift
[18/57] Compiling SymbolKit OperatingSystem.swift
[19/57] Compiling SymbolKit Platform.swift
[20/57] Compiling SymbolKit Relationship.swift
[21/57] Compiling SymbolKit RelationshipKind.swift
[22/57] Compiling SymbolKit SourceOrigin.swift
[23/57] Compiling SymbolKit GenericConstraints.swift
[24/57] Compiling SymbolKit Swift.swift
[25/57] Compiling SymbolKit SemanticVersion.swift
[26/57] Compiling SymbolKit AccessControl.swift
[27/57] Compiling SymbolKit Availability.swift
[28/57] Compiling SymbolKit AvailabilityItem.swift
[29/57] Compiling SymbolKit Domain.swift
[30/57] Compiling SymbolKit Symbol.swift
[31/57] Compiling SymbolKit SymbolKind.swift
[32/57] Compiling SymbolKit SymbolGraph.swift
[33/57] Compiling SymbolKit GraphCollector.swift
[34/57] Compiling SymbolKit Identifier.swift
[35/57] Compiling SymbolKit KindIdentifier.swift
[36/57] Compiling SymbolKit Location.swift
[37/57] Compiling SymbolKit Mutability.swift
[38/57] Compiling SymbolKit DeclarationFragments.swift
[39/57] Compiling SymbolKit Fragment.swift
[40/57] Compiling SymbolKit FragmentKind.swift
[41/57] Compiling SymbolKit FunctionParameter.swift
[42/57] Compiling SymbolKit FunctionSignature.swift
[43/57] Emitting module SymbolKit
[44/57] Compiling SymbolKit GenericConstraint.swift
[45/57] Compiling SymbolKit GenericParameter.swift
[46/57] Compiling SymbolKit Generics.swift
[47/57] Compiling SymbolKit Namespace.swift
[48/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[49/57] Compiling SymbolKit UnifiedSymbol.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[51/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[52/57] Compiling Snippets Snippet.swift
[53/57] Compiling Snippets SnippetParser.swift
[54/57] Emitting module Snippets
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Emitting module snippet_extract
[57/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract
[60/61] Applying snippet-extract
Build complete! (4.00s)
Building for debugging...
[0/1] Write swift-version-33747A42983211AE.txt
Build complete! (0.14s)
     630
5	/Users/admin/builder/spi-builder-workspace/.docs/cleancocoa/declarativetextkit/main
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $workDir/.docs/cleancocoa/declarativetextkit/main
File count: 630
Doc size:   5.0MB
Preparing doc bundle ...
Uploading prod-cleancocoa-declarativetextkit-main-719269c1.zip to s3://spi-docs-inbox/prod-cleancocoa-declarativetextkit-main-719269c1.zip
Copying... [14%]
Copying... [20%]
Copying... [34%]
Copying... [41%]
Copying... [54%]
Copying... [61%]
Copying... [75%]
Copying... [82%]
Copying... [95%]
Copying... [100%]
Done.