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 SwiftTrace, reference main (589f37), with Swift 6.0 for macOS (SPM) on 5 Nov 2024 07:03:45 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

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/johnno1962/SwiftTrace.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/johnno1962/SwiftTrace
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 589f371 Modulemap problems.
Cloned https://github.com/johnno1962/SwiftTrace.git
Revision (git rev-parse @):
589f37149d5b32cbdd44c70809df23b4f4fa0260
SUCCESS checkout https://github.com/johnno1962/SwiftTrace.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": "swifttrace",
      "name": "SwiftTrace",
      "url": "https://github.com/johnno1962/SwiftTrace.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/SwiftTrace",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/johnno1962/SwiftTrace.git
[1/2067] Fetching swifttrace
Fetched https://github.com/johnno1962/SwiftTrace.git from cache (1.28s)
Creating working copy for https://github.com/johnno1962/SwiftTrace.git
Working copy of https://github.com/johnno1962/SwiftTrace.git resolved at main (589f371)
warning: '.resolve-product-dependencies': dependency 'swifttrace' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/johnno1962/SwiftTrace.git
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
Building for debugging...
[0/29] Compiling SwiftTraceGuts xt_forwarding_trampoline_x86.s
[0/29] Compiling SwiftTraceGuts xt_forwarding_trampoline_x64.s
[0/29] Compiling SwiftTraceGuts xt_forwarding_trampoline_arm7.s
[3/29] Compiling SwiftTraceGuts xt_forwarding_trampoline_arm64.s
[4/29] Compiling SwiftTraceGutsD xt_forwarding_trampoline_x64.s
[5/29] Compiling SwiftTraceGutsD xt_forwarding_trampoline_arm7.s
[6/29] Compiling SwiftTraceGutsD xt_forwarding_trampoline_x86.s
[7/29] Write swift-version--7754E27361AE5C74.txt
[8/29] Compiling SwiftTraceGutsD xt_forwarding_trampoline_arm64.s
[9/29] Compiling SwiftTraceGutsD fishhook.c
[10/29] Write sources
[10/29] Compiling SwiftTraceGuts fishhook.c
[13/29] Compiling SwiftTraceGuts SwiftTrace.mm
[14/29] Compiling SwiftTraceGutsD SwiftTrace.mm
[14/29] Compiling SwiftTraceGuts Trampolines.mm
[14/29] Compiling SwiftTraceGutsD fast_dladdr.mm
[14/29] Compiling SwiftTraceGuts ObjCBridge.mm
[14/29] Compiling SwiftTraceGuts fast_dladdr.mm
[14/29] Compiling SwiftTraceGutsD Trampolines.mm
[14/29] Compiling SwiftTraceGutsD ObjCBridge.mm
[21/29] Write Objects.LinkFileList
error: link command failed with exit code 1 (use -v to see invocation)
Undefined symbols for architecture arm64:
  "_NSLog", referenced from:
      _method_getSignature in SwiftTrace.mm.o
      _fast_dlsym in fast_dladdr.mm.o
      _fast_dlscan in fast_dladdr.mm.o
      _fast_dlscan in fast_dladdr.mm.o
  "_OBJC_CLASS_$_NSAssertionHandler", referenced from:
       in Trampolines.mm.o
  "_OBJC_CLASS_$_NSBundle", referenced from:
       in SwiftTrace.mm.o
  "_OBJC_CLASS_$_NSMethodSignature", referenced from:
       in SwiftTrace.mm.o
  "_OBJC_CLASS_$_NSMutableArray", referenced from:
       in SwiftTrace.mm.o
  "_OBJC_CLASS_$_NSObject", referenced from:
      __OBJC_$_CATEGORY_NSObject_$_SwiftTrace in ObjCBridge.mm.o
       in fast_dladdr.mm.o
  "_OBJC_CLASS_$_NSString", referenced from:
       in Trampolines.mm.o
  "_OBJC_CLASS_$_NSThread", referenced from:
       in fast_dladdr.mm.o
  "_OBJC_CLASS_$_NSValue", referenced from:
       in Trampolines.mm.o
  "_OBJC_CLASS_$_SwiftMeta", referenced from:
       in ObjCBridge.mm.o
  "_OBJC_CLASS_$_SwiftTrace", referenced from:
       in ObjCBridge.mm.o
  "_OBJC_EHTYPE_$_NSException", referenced from:
      GCC_except_table1 in SwiftTrace.mm.o
  "___CFConstantStringClassReference", referenced from:
       in SwiftTrace.mm.o
       in Trampolines.mm.o
       in Trampolines.mm.o
       in Trampolines.mm.o
       in Trampolines.mm.o
       in fast_dladdr.mm.o
       in fast_dladdr.mm.o
      ...
  "___objc_personality_v0", referenced from:
      /Users/admin/builder/spi-builder-workspace/.build/arm64-apple-macosx/debug/SwiftTraceGuts.build/SwiftTrace.mm.o
  "_class_getImageName", referenced from:
      _swiftUIBundlePath in SwiftTrace.mm.o
  "_class_getSuperclass", referenced from:
      _objc_classArray in SwiftTrace.mm.o
  "_method_getTypeEncoding", referenced from:
      _method_getSignature in SwiftTrace.mm.o
  "_objc_autoreleasePoolPop", referenced from:
      __GLOBAL__sub_I_fast_dladdr.mm in fast_dladdr.mm.o
  "_objc_autoreleasePoolPush", referenced from:
      __GLOBAL__sub_I_fast_dladdr.mm in fast_dladdr.mm.o
  "_objc_autoreleaseReturnValue", referenced from:
      _objc_classArray in SwiftTrace.mm.o
      _method_getSignature in SwiftTrace.mm.o
      _findSwizzleOf in Trampolines.mm.o
      _describeImageSymbol in fast_dladdr.mm.o
      _describeImageInfo in fast_dladdr.mm.o
      _describeImagePointer in fast_dladdr.mm.o
  "_objc_begin_catch", referenced from:
      _method_getSignature in SwiftTrace.mm.o
  "_objc_copyClassList", referenced from:
      _objc_classArray in SwiftTrace.mm.o
  "_objc_end_catch", referenced from:
      _method_getSignature in SwiftTrace.mm.o
      _method_getSignature in SwiftTrace.mm.o
  "_objc_enumerationMutation", referenced from:
      _findSwizzleOf in Trampolines.mm.o
      _injection_stack in fast_dladdr.mm.o
  "_objc_msgSend", referenced from:
       in objc-stubs-file
  "_objc_release", referenced from:
      _searchMainImage in SwiftTrace.mm.o
      _searchMainImage in SwiftTrace.mm.o
      _searchMainImage in SwiftTrace.mm.o
      _searchMainImage in SwiftTrace.mm.o
      _searchBundleImages in SwiftTrace.mm.o
      _searchBundleImages in SwiftTrace.mm.o
      _searchBundleImages in SwiftTrace.mm.o
      _searchBundleImages in SwiftTrace.mm.o
      ...
  "_objc_retain", referenced from:
      _objc_classArray in SwiftTrace.mm.o
      _method_getSignature in SwiftTrace.mm.o
      nextTrampolinePage() in Trampolines.mm.o
      _findSwizzleOf in Trampolines.mm.o
      _findSwizzleOf in Trampolines.mm.o
  "_objc_retainAutorelease", referenced from:
      _sig_argumentType in SwiftTrace.mm.o
      _sig_returnType in SwiftTrace.mm.o
      _searchMainImage in SwiftTrace.mm.o
      _searchBundleImages in SwiftTrace.mm.o
      _appBundleImages in SwiftTrace.mm.o
      _appBundleImages in SwiftTrace.mm.o
      _injection_stack in fast_dladdr.mm.o
      ...
  "_objc_retainAutoreleasedReturnValue", referenced from:
      _method_getSignature in SwiftTrace.mm.o
      _searchMainImage in SwiftTrace.mm.o
      _searchMainImage in SwiftTrace.mm.o
      _searchBundleImages in SwiftTrace.mm.o
      _searchBundleImages in SwiftTrace.mm.o
      _appBundleImages in SwiftTrace.mm.o
      _appBundleImages in SwiftTrace.mm.o
      _appBundleImages in SwiftTrace.mm.o
      ...
  "_objc_retainBlock", referenced from:
      _findHiddenSwiftSymbols in SwiftTrace.mm.o
  "_objc_storeStrong", referenced from:
      +[NSObject(SwiftTrace) setSwiftTraceMethodExclusionPattern:] in ObjCBridge.mm.o
      +[NSObject(SwiftTrace) setSwiftTraceMethodExclusionPattern:] in ObjCBridge.mm.o
      +[NSObject(SwiftTrace) setSwiftTraceMethodExclusionPattern:] in ObjCBridge.mm.o
      +[NSObject(SwiftTrace) setSwiftTraceMethodInclusionPattern:] in ObjCBridge.mm.o
      +[NSObject(SwiftTrace) setSwiftTraceMethodInclusionPattern:] in ObjCBridge.mm.o
      +[NSObject(SwiftTrace) setSwiftTraceMethodInclusionPattern:] in ObjCBridge.mm.o
      +[NSObject(SwiftTrace) setSwiftTraceFunctionSuffixes:] in ObjCBridge.mm.o
      +[NSObject(SwiftTrace) setSwiftTraceFunctionSuffixes:] in ObjCBridge.mm.o
      +[NSObject(SwiftTrace) setSwiftTraceFunctionSuffixes:] in ObjCBridge.mm.o
      ...
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
[23/53] Linking libSwiftTraceGuts.dylib
[23/53] Linking libSwiftTraceGutsD.dylib
BUILD FAILURE 6.0 macosSpm