The Swift Package Index logo.Swift Package Index

Build Information

Failed to build CocoaImageHashing, reference master (ad01ee), with Swift 6.2 for Android on 19 Jun 2025 04:02:40 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ameingast/cocoaimagehashing.git
Reference: master
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/ameingast/cocoaimagehashing
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at ad01eee ARM support
Cloned https://github.com/ameingast/cocoaimagehashing.git
Revision (git rev-parse @):
ad01eee3c3f91bd181f7f4eba7f48f7cb211b51c
SUCCESS checkout https://github.com/ameingast/cocoaimagehashing.git at master
========================================
Build
========================================
Selected platform:         android
Swift version:             6.2
Building package at path:  $PWD
https://github.com/ameingast/cocoaimagehashing.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.2-latest swift build --swift-sdk aarch64-unknown-linux-android28 2>&1
android-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:b7c4a6b4153ff40ef9277e2157e708f835b8eb011095d53bd8db4594eb2b7798
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.2-latest
Building for debugging...
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSDHash.m:9:
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:19:1: error: use of '@import' when modules are disabled
   19 | @import Cocoa;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:29:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   29 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:31:12: error: cannot find interface declaration for 'NSArray'
   31 | @interface NSArray (CocoaImageHashing)
      |            ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:33:4: error: expected a type
   33 | - (NSArray<OSTuple<id, id> *> *)arrayWithPairCombinations;
      |    ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:39:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   39 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:43:24: error: expected ';' after top level declarator
   43 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:50:1: error: '@end' must appear in an Objective-C context
   50 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:52:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   52 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:58:24: error: expected ';' after top level declarator
   58 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:67:1: error: '@end' must appear in an Objective-C context
   67 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:69:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   69 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:77:24: error: expected ';' after top level declarator
   77 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:83:1: error: '@end' must appear in an Objective-C context
   83 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:85:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   85 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:107:24: error: expected ';' after top level declarator
  107 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:113:1: error: '@end' must appear in an Objective-C context
  113 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:115:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
  115 | NS_ASSUME_NONNULL_END
      | ^
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSDHash.m:10:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSDHash.h:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSImageHashing.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:2: error: prefix attribute must be followed by an interface, protocol, or implementation
    9 | @import Foundation;
      |  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[0/11] Compiling CocoaImageHashing OSDHash.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSCategories.m:9:
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:19:1: error: use of '@import' when modules are disabled
   19 | @import Cocoa;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:29:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   29 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:31:12: error: cannot find interface declaration for 'NSArray'
   31 | @interface NSArray (CocoaImageHashing)
      |            ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:33:4: error: expected a type
   33 | - (NSArray<OSTuple<id, id> *> *)arrayWithPairCombinations;
      |    ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:39:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   39 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:43:24: error: expected ';' after top level declarator
   43 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:50:1: error: '@end' must appear in an Objective-C context
   50 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:52:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   52 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:58:24: error: expected ';' after top level declarator
   58 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:67:1: error: '@end' must appear in an Objective-C context
   67 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:69:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   69 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:77:24: error: expected ';' after top level declarator
   77 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:83:1: error: '@end' must appear in an Objective-C context
   83 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:85:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   85 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:107:24: error: expected ';' after top level declarator
  107 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:113:1: error: '@end' must appear in an Objective-C context
  113 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:115:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
  115 | NS_ASSUME_NONNULL_END
      | ^
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSCategories.m:10:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSTypes+Internal.h:6:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:2: error: prefix attribute must be followed by an interface, protocol, or implementation
    9 | @import Foundation;
      |  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[0/11] Compiling CocoaImageHashing OSCategories.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSImageHashing.m:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSImageHashing.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:28:9: error: unknown type name 'SInt64'
   28 | typedef SInt64 OSHashType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:33:9: error: unknown type name 'SInt64'
   33 | typedef SInt64 OSHashDistanceType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:38:9: error: unknown type name 'NSString'
   38 | typedef NSString OSImageId;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:1: error: function definition declared 'typedef'
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: error: parameter 'OSImageHashingProviderId' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:20: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                    ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:48:5: error: use of undeclared identifier 'OSImageHashingProviderAHash'; did you mean 'OSImageHashingProviderId'?
   48 |     OSImageHashingProviderAHash = 1 << 0,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:35: error: expected ';' after expression
   51 |     OSImageHashingProviderNone = 0
      |                                   ^
      |                                   ;
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:49:5: error: use of undeclared identifier 'OSImageHashingProviderDHash'; did you mean 'OSImageHashingProviderId'?
   49 |     OSImageHashingProviderDHash = 1 << 1,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:50:5: error: use of undeclared identifier 'OSImageHashingProviderPHash'; did you mean 'OSImageHashingProviderId'?
   50 |     OSImageHashingProviderPHash = 1 << 2,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:5: error: use of undeclared identifier 'OSImageHashingProviderNone'; did you mean 'OSImageHashingProviderId'?
   51 |     OSImageHashingProviderNone = 0
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:1: error: function definition declared 'typedef'
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: error: parameter 'OSImageHashingQuality' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:17: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                 ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ~~~~~~~ ^
      | int
[0/11] Compiling CocoaImageHashing OSImageHashing.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSAbstractHash.m:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSAbstractHash.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:28:9: error: unknown type name 'SInt64'
   28 | typedef SInt64 OSHashType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:33:9: error: unknown type name 'SInt64'
   33 | typedef SInt64 OSHashDistanceType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:38:9: error: unknown type name 'NSString'
   38 | typedef NSString OSImageId;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:1: error: function definition declared 'typedef'
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: error: parameter 'OSImageHashingProviderId' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:20: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                    ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:48:5: error: use of undeclared identifier 'OSImageHashingProviderAHash'; did you mean 'OSImageHashingProviderId'?
   48 |     OSImageHashingProviderAHash = 1 << 0,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:35: error: expected ';' after expression
   51 |     OSImageHashingProviderNone = 0
      |                                   ^
      |                                   ;
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:49:5: error: use of undeclared identifier 'OSImageHashingProviderDHash'; did you mean 'OSImageHashingProviderId'?
   49 |     OSImageHashingProviderDHash = 1 << 1,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:50:5: error: use of undeclared identifier 'OSImageHashingProviderPHash'; did you mean 'OSImageHashingProviderId'?
   50 |     OSImageHashingProviderPHash = 1 << 2,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:5: error: use of undeclared identifier 'OSImageHashingProviderNone'; did you mean 'OSImageHashingProviderId'?
   51 |     OSImageHashingProviderNone = 0
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:1: error: function definition declared 'typedef'
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: error: parameter 'OSImageHashingQuality' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:17: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                 ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt1[0/11] Compiling CocoaImageHashing OSAbstractHash.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSFastGraphics.m:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSFastGraphics.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:28:9: error: unknown type name 'SInt64'
   28 | typedef SInt64 OSHashType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:33:9: error: unknown type name 'SInt64'
   33 | typedef SInt64 OSHashDistanceType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:38:9: error: unknown type name 'NSString'
   38 | typedef NSString OSImageId;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:1: error: function definition declared 'typedef'
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: error: parameter 'OSImageHashingProviderId' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:20: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                    ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:48:5: error: use of undeclared identifier 'OSImageHashingProviderAHash'; did you mean 'OSImageHashingProviderId'?
   48 |     OSImageHashingProviderAHash = 1 << 0,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:35: error: expected ';' after expression
   51 |     OSImageHashingProviderNone = 0
      |                                   ^
      |                                   ;
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:49:5: error: use of undeclared identifier 'OSImageHashingProviderDHash'; did you mean 'OSImageHashingProviderId'?
   49 |     OSImageHashingProviderDHash = 1 << 1,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:50:5: error: use of undeclared identifier 'OSImageHashingProviderPHash'; did you mean 'OSImageHashingProviderId'?
   50 |     OSImageHashingProviderPHash = 1 << 2,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:5: error: use of undeclared identifier 'OSImageHashingProviderNone'; did you mean 'OSImageHashingProviderId'?
   51 |     OSImageHashingProviderNone = 0
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:1: error: function definition declared 'typedef'
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: error: parameter 'OSImageHashingQuality' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:17: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                 ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ~~~~~~~ ^
      | int
[0/11] Compiling CocoaImageHashing OSFastGraphics.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSSimilaritySearch.m:9:
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:19:1: error: use of '@import' when modules are disabled
   19 | @import Cocoa;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:29:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   29 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:31:12: error: cannot find interface declaration for 'NSArray'
   31 | @interface NSArray (CocoaImageHashing)
      |            ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:33:4: error: expected a type
   33 | - (NSArray<OSTuple<id, id> *> *)arrayWithPairCombinations;
      |    ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:39:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   39 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:43:24: error: expected ';' after top level declarator
   43 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:50:1: error: '@end' must appear in an Objective-C context
   50 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:52:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   52 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:58:24: error: expected ';' after top level declarator
   58 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:67:1: error: '@end' must appear in an Objective-C context
   67 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:69:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   69 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:77:24: error: expected ';' after top level declarator
   77 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:83:1: error: '@end' must appear in an Objective-C context
   83 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:85:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   85 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:107:24: error: expected ';' after top level declarator
  107 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:113:1: error: '@end' must appear in an Objective-C context
  113 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h[0/11] Compiling CocoaImageHashing OSSimilaritySearch.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSTypes.m:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSAHash.h:9:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSImageHashing.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:28:9: error: unknown type name 'SInt64'
   28 | typedef SInt64 OSHashType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:33:9: error: unknown type name 'SInt64'
   33 | typedef SInt64 OSHashDistanceType;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:38:9: error: unknown type name 'NSString'
   38 | typedef NSString OSImageId;
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:1: error: function definition declared 'typedef'
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: error: parameter 'OSImageHashingProviderId' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:20: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                    ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      | ~~~~~~~ ^
      | int
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:48:5: error: use of undeclared identifier 'OSImageHashingProviderAHash'; did you mean 'OSImageHashingProviderId'?
   48 |     OSImageHashingProviderAHash = 1 << 0,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:35: error: expected ';' after expression
   51 |     OSImageHashingProviderNone = 0
      |                                   ^
      |                                   ;
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:49:5: error: use of undeclared identifier 'OSImageHashingProviderDHash'; did you mean 'OSImageHashingProviderId'?
   49 |     OSImageHashingProviderDHash = 1 << 1,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:50:5: error: use of undeclared identifier 'OSImageHashingProviderPHash'; did you mean 'OSImageHashingProviderId'?
   50 |     OSImageHashingProviderPHash = 1 << 2,
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:51:5: error: use of undeclared identifier 'OSImageHashingProviderNone'; did you mean 'OSImageHashingProviderId'?
   51 |     OSImageHashingProviderNone = 0
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |     OSImageHashingProviderId
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:28: note: 'OSImageHashingProviderId' declared here
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |                            ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:47:9: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C23 [-Wdeprecated-non-prototype]
   47 | typedef NS_OPTIONS(UInt16, OSImageHashingProviderId) {
      |         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:1: error: function definition declared 'typedef'
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ^~~~~~~
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:25: error: parameter 'OSImageHashingQuality' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                         ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:17: error: parameter 'UInt16' was not declared, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      |                 ^
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:61:9: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
   61 | typedef NS_ENUM(UInt16, OSImageHashingQuality) {
      | ~~~~~~~ ^
      | int
[0/11] Compiling CocoaImageHashing OSTypes.m
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSPHash.m:9:
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:9:1: error: use of '@import' when modules are disabled
    9 | @import Foundation;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:19:1: error: use of '@import' when modules are disabled
   19 | @import Cocoa;
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:29:1: error: unknown type name 'NS_ASSUME_NONNULL_BEGIN'
   29 | NS_ASSUME_NONNULL_BEGIN
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:31:12: error: cannot find interface declaration for 'NSArray'
   31 | @interface NSArray (CocoaImageHashing)
      |            ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:33:4: error: expected a type
   33 | - (NSArray<OSTuple<id, id> *> *)arrayWithPairCombinations;
      |    ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:39:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   39 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:43:24: error: expected ';' after top level declarator
   43 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:50:1: error: '@end' must appear in an Objective-C context
   50 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:52:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   52 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:58:24: error: expected ';' after top level declarator
   58 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:67:1: error: '@end' must appear in an Objective-C context
   67 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:69:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   69 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:77:24: error: expected ';' after top level declarator
   77 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:83:1: error: '@end' must appear in an Objective-C context
   83 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:85:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
   85 | NS_ASSUME_NONNULL_END
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:107:24: error: expected ';' after top level declarator
  107 | NS_ASSUME_NONNULL_BEGIN
      |                        ^
      |                        ;
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:113:1: error: '@end' must appear in an Objective-C context
  113 | @end
      | ^
/host/spi-builder-workspace/CocoaImageHashing/OSCategories.h:115:1: error: unknown type name 'NS_ASSUME_NONNULL_END'
  115 | NS_ASSUME_NONNULL_END
      | ^
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSPHash.m:10:
In file included from /host/spi-builder-workspace/CocoaImageHashing/OSFastGraphics.h:9:
/host/spi-builder-workspace/CocoaImageHashing/OSTypes.h:9:2: error: prefix attribute must be followed by an interface, protocol, or implementation
    9 | @import Foundation;
      |  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
[0/11] Compiling CocoaImageHashing OSPHash.m
BUILD FAILURE 6.2 android