Skip to content

Error Extracting Version from Module Interface (Intel Mac, Xcode 16.3)Β #47

@gdwyn

Description

@gdwyn

Hi Privy Team πŸ‘‹,

I'm encountering a build-breaking issue when integrating the Privy Swift SDK via Swift Package Manager on a fresh project.

Environment:

  • MacBook Pro 2020 (Intel)
  • macOS Sequoia Version 15.4
  • Xcode 16.3 (Swift 6.1)
  • Swift Package Manager integration (no CocoaPods)

Problem:
After adding Privy via SPM, trying to import PrivySDK immediately throws the error:

Error extracting version from module interface

The error occurs without any other code, just from attempting to import the SDK.

Note:
The issue persists even when cloning the SDK locally and adding it as a local Swift Package.

It appears to be related to Swift interface compatibility or precompiled binary issues.

Suspected Cause:

  • The .swiftinterface files in the published Privy SDK may have been compiled with an older Swift version, and are incompatible with Swift 5.10 / Xcode 15.3.
  • Possibly missing proper module stability flags when building for cross-platform (Intel/Apple Silicon) compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions