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 0.7.0 (57fb27), with Swift 5.10 for macOS (SPM) on 4 Jul 2024 17:06:46 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.44.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/CleanCocoa/DeclarativeTextKit.git
Reference: 0.7.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/CleanCocoa/DeclarativeTextKit
 * tag               0.7.0      -> FETCH_HEAD
HEAD is now at 57fb275 fold "contains insertion point at" into regular contains(_:)
Cloned https://github.com/CleanCocoa/DeclarativeTextKit.git
Revision (git rev-parse @):
57fb275b1fa66a79422230b16bbb24724afbd7b0
SPI manifest file found: $workDir/.spi.yml
SUCCESS checkout https://github.com/CleanCocoa/DeclarativeTextKit.git at 0.7.0
========================================
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/1986] Fetching declarativetextkit
Fetched https://github.com/CleanCocoa/DeclarativeTextKit.git from cache (1.36s)
Creating working copy for https://github.com/CleanCocoa/DeclarativeTextKit.git
Working copy of https://github.com/CleanCocoa/DeclarativeTextKit.git resolved at 0.7.0 (57fb275)
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 Undoable.swift
[11/55] Compiling DeclarativeTextKit Debug.swift
[12/55] Compiling DeclarativeTextKit Expression.swift
[13/55] Compiling DeclarativeTextKit If.swift
[14/55] Compiling DeclarativeTextKit IfLet.swift
[15/55] Compiling DeclarativeTextKit NSRange+Resized.swift
[16/55] Compiling DeclarativeTextKit NSRange+Shifted.swift
[17/55] Compiling DeclarativeTextKit NSRange+Subtracting.swift
[18/55] Compiling DeclarativeTextKit NSRange+containsRange.swift
[19/55] Compiling DeclarativeTextKit NSRange+expandedToOther.swift
[20/55] Compiling DeclarativeTextKit ChangeInLength+Consume.swift
[21/55] Compiling DeclarativeTextKit ChangeInLength.swift
[22/55] Compiling DeclarativeTextKit Delete+Modification.swift
[23/55] Compiling DeclarativeTextKit Delete.swift
[24/55] Compiling DeclarativeTextKit Identity.swift
[25/55] Compiling DeclarativeTextKit ScopedBufferSlice.swift
[26/55] Compiling DeclarativeTextKit AffectedRange.swift
[27/55] Compiling DeclarativeTextKit Buffer+SelectRangeExpression.swift
[28/55] Compiling DeclarativeTextKit BufferRangeExpression.swift
[29/55] Compiling DeclarativeTextKit LineRange.swift
[30/55] Compiling DeclarativeTextKit NSRange+BufferRangeExpression.swift
[31/55] Compiling DeclarativeTextKit Select.swift
[32/55] Compiling DeclarativeTextKit SelectedRange+BufferRangeExpression.swift
[33/55] Compiling DeclarativeTextKit WordRange.swift
[34/55] Compiling DeclarativeTextKit NSRange+Order.swift
[35/55] Compiling DeclarativeTextKit Bool+inverted.swift
[36/55] Compiling DeclarativeTextKit Buffer+contains.swift
[37/55] Compiling DeclarativeTextKit Buffer+evaluate.swift
[38/55] Compiling DeclarativeTextKit Buffer+wordRange.swift
[39/55] Compiling DeclarativeTextKit Buffer.swift
[40/55] Compiling DeclarativeTextKit BufferAccessFailure.swift
[41/55] Compiling DeclarativeTextKit Word.swift
[42/55] Compiling DeclarativeTextKit Modification.swift
[43/55] Compiling DeclarativeTextKit ModificationBuilder.swift
[44/55] Compiling DeclarativeTextKit ModificationSequence.swift
[45/55] Compiling DeclarativeTextKit Modifying.swift
[46/55] Compiling DeclarativeTextKit Insert+Modification.swift
[47/55] Compiling DeclarativeTextKit Insert.swift
[48/55] Compiling DeclarativeTextKit Insertable.swift
[49/55] Compiling DeclarativeTextKit Line.swift
[50/55] Compiling DeclarativeTextKit String+Insertable.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 MakeBufferWithSelectionFromString.swift
[57/58] Emitting module DeclarativeTextKitTesting
[58/58] Compiling DeclarativeTextKitTesting assertBufferState.swift
Build complete! (12.23s)
Build complete.
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $workDir/.docs/cleancocoa/declarativetextkit/0.7.0
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.25s)
Generated DocC archive at '/Users/admin/builder/spi-builder-workspace/.docs/cleancocoa/declarativetextkit/0.7.0'
Fetching https://github.com/apple/swift-docc-plugin
[1/1578] Fetching swift-docc-plugin
Fetched https://github.com/apple/swift-docc-plugin from cache (1.29s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (2.28s)
Fetching https://github.com/apple/swift-docc-symbolkit
[1/2890] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.31s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.61s)
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
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
Building for debugging...
[0/8] Write sources
[3/8] Write snippet-extract-entitlement.plist
[4/8] Write swift-version-33747A42983211AE.txt
[6/53] Compiling SymbolKit GenericConstraint.swift
[7/53] Compiling SymbolKit GenericParameter.swift
[8/53] Compiling SymbolKit Generics.swift
[9/53] Compiling SymbolKit Namespace.swift
[10/53] Compiling SymbolKit DeclarationFragments.swift
[11/53] Compiling SymbolKit Fragment.swift
[12/53] Compiling SymbolKit FragmentKind.swift
[13/53] Compiling SymbolKit FunctionParameter.swift
[14/53] Compiling SymbolKit FunctionSignature.swift
[15/57] Compiling SymbolKit Mixin+Equals.swift
[16/57] Compiling SymbolKit Mixin+Hash.swift
[17/57] Compiling SymbolKit Mixin.swift
[18/57] Compiling SymbolKit LineList.swift
[19/57] Compiling SymbolKit Position.swift
[20/57] Compiling SymbolKit Names.swift
[21/57] Compiling SymbolKit SPI.swift
[22/57] Compiling SymbolKit Snippet.swift
[23/57] Compiling SymbolKit Extension.swift
[24/57] Compiling SymbolKit SourceRange.swift
[25/57] Compiling SymbolKit Metadata.swift
[26/57] Compiling SymbolKit Module.swift
[27/57] Compiling SymbolKit OperatingSystem.swift
[28/57] Compiling SymbolKit Platform.swift
[29/57] Compiling SymbolKit Identifier.swift
[30/57] Compiling SymbolKit KindIdentifier.swift
[31/57] Compiling SymbolKit Location.swift
[32/57] Compiling SymbolKit Mutability.swift
[33/57] Compiling SymbolKit SemanticVersion.swift
[34/57] Compiling SymbolKit AccessControl.swift
[35/57] Compiling SymbolKit Availability.swift
[36/57] Compiling SymbolKit AvailabilityItem.swift
[37/57] Compiling SymbolKit Domain.swift
[38/57] Compiling SymbolKit Relationship.swift
[39/57] Compiling SymbolKit RelationshipKind.swift
[40/57] Compiling SymbolKit SourceOrigin.swift
[41/57] Compiling SymbolKit GenericConstraints.swift
[42/57] Compiling SymbolKit Swift.swift
[43/57] Compiling SymbolKit Symbol.swift
[44/57] Compiling SymbolKit SymbolKind.swift
[45/57] Compiling SymbolKit SymbolGraph.swift
[46/57] Compiling SymbolKit GraphCollector.swift
[47/57] Emitting module SymbolKit
[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] Emitting module Snippets
[54/57] Compiling Snippets SnippetParser.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Emitting module snippet_extract
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract
[60/61] Applying snippet-extract
Build complete! (3.66s)
Building for debugging...
[0/1] Write swift-version-33747A42983211AE.txt
Build complete! (0.15s)
     630
5	/Users/admin/builder/spi-builder-workspace/.docs/cleancocoa/declarativetextkit/0.7.0
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $workDir/.docs/cleancocoa/declarativetextkit/0.7.0
File count: 630
Doc size:   5.0MB
Preparing doc bundle ...
Uploading prod-cleancocoa-declarativetextkit-0.7.0-dbaea592.zip to s3://spi-docs-inbox/prod-cleancocoa-declarativetextkit-0.7.0-dbaea592.zip
Copying... [14%]
Copying... [20%]
Copying... [34%]
Copying... [41%]
Copying... [54%]
Copying... [61%]
Copying... [75%]
Copying... [81%]
Copying... [95%]
Copying... [100%]
Done.