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 MockUserDefaults, reference 2.4.0 (fa05c9), with Swift 6.0 for Linux on 4 Nov 2024 17:59:00 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/417-72KI/MockUserDefaults.git
Reference: 2.4.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/417-72KI/MockUserDefaults
 * tag               2.4.0      -> FETCH_HEAD
HEAD is now at fa05c9d Bump version to 2.4.0
Cloned https://github.com/417-72KI/MockUserDefaults.git
Revision (git rev-parse @):
fa05c9d8cd4231f8c8ae53a5c84070e5999174be
SUCCESS checkout https://github.com/417-72KI/MockUserDefaults.git at 2.4.0
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/417-72KI/MockUserDefaults.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
warning: 'spi-builder-workspace': ignoring target 'MockUserDefaultsTests' in package 'spi-builder-workspace'; C language in tests is not yet supported
Building for debugging...
In file included from /host/spi-builder-workspace/Sources/MockUserDefaults/MockUserDefaults.m:9:
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:11:1: error: unknown type name 'FOUNDATION_EXPORT'
   11 | FOUNDATION_EXPORT double MockUserDefaultsVersionNumber;
      | ^
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:12:1: error: unknown type name 'FOUNDATION_EXPORT'
   12 | FOUNDATION_EXPORT const unsigned char MockUserDefaultsVersionString[];
      | ^
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:14:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   14 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:16:12: error: cannot find interface declaration for 'NSUserDefaults'
   16 | @interface NSUserDefaults (Mock)
      |            ^
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:19:29: error: unknown type name 'NSUserDefaults'
   19 | @property (class, readonly) NSUserDefaults *mockedUserDefaults NS_SWIFT_NAME(mock);
      |                             ^
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:19:63: error: expected ';' at end of declaration list
   19 | @property (class, readonly) NSUserDefaults *mockedUserDefaults NS_SWIFT_NAME(mock);
      |                                                               ^
      |                                                               ;
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:19:64: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   19 | @property (class, readonly) NSUserDefaults *mockedUserDefaults NS_SWIFT_NAME(mock);
      |                                                                ^
      |                                                                int
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:19:78: error: a parameter list without types is only allowed in a function definition
   19 | @property (class, readonly) NSUserDefaults *mockedUserDefaults NS_SWIFT_NAME(mock);
      |                                                                              ^
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:22:29: error: unknown type name 'NSUserDefaults'
   22 | @property (class, readonly) NSUserDefaults *deprecatedMockedUserDefaults NS_SWIFT_NAME(mocked) DEPRECATED_MSG_ATTRIBUTE("Renamed to `mock`");
      |                             ^
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:22:73: error: expected ';' at end of declaration list
   22 | @property (class, readonly) NSUserDefaults *deprecatedMockedUserDefaults NS_SWIFT_NAME(mocked) DEPRECATED_MSG_ATTRIBUTE("Renamed to `mock`");
      |                                                                         ^
      |                                                                         ;
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:22:96: error: expected function body after function declarator
   22 | @property (class, readonly) NSUserDefaults *deprecatedMockedUserDefaults NS_SWIFT_NAME(mocked) DEPRECATED_MSG_ATTRIBUTE("Renamed to `mock`");
      |                                                                                                ^
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:25:32: error: expected ';' after method prototype
   25 | + (void)resetMockedUserDefaults NS_SWIFT_NAME(resetMock());
      |                                ^
      |                                ;
/host/spi-builder-workspace/Sources/MockUserDefaults/include/MockUserDefaults.h:29:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   29 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/Sources/MockUserDefaults/MockUserDefaults.m:11:24: error: expected ';' after top level declarator
   11 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/Sources/MockUserDefaults/MockUserDefaults.m:16:46: error: expected a type
   16 | - (void)setObject:(nullable id)value forKey:(NSString *)defaultName;
      |                                              ^
/host/spi-builder-workspace/Sources/MockUserDefaults/MockUserDefaults.m:16:1: error: missing context for method declaration
   16 | - (void)setObject:(nullable id)value forKey:(NSString *)defaultName;
      | ^
/host/spi-builder-workspace/Sources/MockUserDefaults/MockUserDefaults.m:17:1: error: expected method body
   17 | - (void)removeObjectForKey:(NSString *)defaultName;
      | ^
/host/spi-builder-workspace/Sources/MockUserDefaults/MockUserDefaults.m:18:13: error: expected a type
   18 | - (nullable NSString *)stringForKey:(NSString *)defaultName;
      |             ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[0/1] Compiling MockUserDefaults MockUserDefaults.m
BUILD FAILURE 6.0 linux