Build Information
Failed to build InopaySDK, reference v0.2.0-alpha.1 (268bda), with Swift 6.0 for macOS (SPM) on 9 May 2026 07:04:00 UTC.
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fofanay/inopay-ios.git
Reference: v0.2.0-alpha.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fofanay/inopay-ios
* tag v0.2.0-alpha.1 -> FETCH_HEAD
HEAD is now at 268bdad feat(ui): InopayUI module v0.2.0-alpha.1 — 14 SwiftUI screens
Cloned https://github.com/fofanay/inopay-ios.git
Revision (git rev-parse @):
268bdada2e1fee8e598a4f2b07c49d60125df6a6
SUCCESS checkout https://github.com/fofanay/inopay-ios.git at v0.2.0-alpha.1
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/fofanay/inopay-ios.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.2.0.app xcrun swift build --arch arm64
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-5BDAB9E9C0126B9D.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module InopaySDK
/Users/admin/builder/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:160:16: error: type 'ErrPayload' cannot be nested in generic function 'request(_:method:body:)'
158 | }
159 |
160 | struct ErrPayload: Decodable { let error: String?; let detail: String? }
| `- error: type 'ErrPayload' cannot be nested in generic function 'request(_:method:body:)'
161 | let payload = try? decoder.decode(ErrPayload.self, from: data)
162 | throw InopayError(
[5/5] Compiling InopaySDK InopayClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/InopaySDK/InopayClient.swift:160:16: error: type 'ErrPayload' cannot be nested in generic function 'request(_:method:body:)'
158 | }
159 |
160 | struct ErrPayload: Decodable { let error: String?; let detail: String? }
| `- error: type 'ErrPayload' cannot be nested in generic function 'request(_:method:body:)'
161 | let payload = try? decoder.decode(ErrPayload.self, from: data)
162 | throw InopayError(
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/Sources/InopayUI/README-INOPAYUI.md
BUILD FAILURE 6.0 macosSpm