The Swift Package Index logo.Swift Package Index

Build Information

Failed to build InopaySDK, reference main (268bda), with Swift 6.1 for macOS (SPM) on 9 May 2026 07:04:51 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fofanay/inopay-ios.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/fofanay/inopay-ios
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
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 main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/fofanay/inopay-ios.git
https://github.com/fofanay/inopay-ios.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "InopaySDK",
  "name" : "InopaySDK",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "InopaySDK",
      "targets" : [
        "InopaySDK"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "InopayUI",
      "targets" : [
        "InopayUI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "InopayUI",
      "module_type" : "SwiftTarget",
      "name" : "InopayUI",
      "path" : "Sources/InopayUI",
      "product_memberships" : [
        "InopayUI"
      ],
      "sources" : [
        "API/InopayUIClient.swift",
        "Components/SharedComponents.swift",
        "Coordinator/FlowCoordinator.swift",
        "InopayInvestView.swift",
        "Models/ScreenViewModels.swift",
        "Screens/ConfirmationView.swift",
        "Screens/ConsentView.swift",
        "Screens/EdgeCaseViews.swift",
        "Screens/InstrumentDetailView.swift",
        "Screens/KycAccelereView.swift",
        "Screens/MarketsView.swift",
        "Screens/OrderView.swift",
        "Screens/PortfolioView.swift",
        "Screens/ReceiptView.swift",
        "Screens/RiskProfileView.swift",
        "Screens/WelcomeView.swift",
        "Theme/InopayTheme.swift"
      ],
      "target_dependencies" : [
        "InopaySDK"
      ],
      "type" : "library"
    },
    {
      "c99name" : "InopaySDKTests",
      "module_type" : "SwiftTarget",
      "name" : "InopaySDKTests",
      "path" : "Tests/InopaySDKTests",
      "sources" : [
        "InopaySDKTests.swift"
      ],
      "target_dependencies" : [
        "InopaySDK"
      ],
      "type" : "test"
    },
    {
      "c99name" : "InopaySDK",
      "module_type" : "SwiftTarget",
      "name" : "InopaySDK",
      "path" : "Sources/InopaySDK",
      "product_memberships" : [
        "InopaySDK",
        "InopayUI"
      ],
      "sources" : [
        "InopayClient.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/3] Write sources
[2/3] Write swift-version-2F0A5646E1D333AE.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
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/3] 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(
[3/3] 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.1 macosSpm