Skip to content

Archive Fails Due to Swift Module Interface Verification Errors in Mixpanel Framework #659

Open
@ashishgupta6

Description

@ashishgupta6

I am encountering an issue while archiving my project after integrating the Mixpanel framework into my custom iOS framework. The issue seems related to the verification of the Swift module interfaces (Mixpanel.swiftinterface and Mixpanel.private.swiftinterface). This occurs when archiving the project, specifically with the Mixpanel framework.

** ARCHIVE FAILED **

The following build commands failed:
SwiftVerifyEmittedModuleInterface normal arm64 Verifying\ emitted\ module\ interface\ Mixpanel.swiftinterface
SwiftVerifyEmittedModuleInterface normal arm64 Verifying\ emitted\ module\ interface\ Mixpanel.private.swiftinterface
(3 failures)

Environment:

  • Xcode Version: 16.1
  • Swift Version Installed: 6.0.2
  • Swift version using in Framework: Swift 5
  • Mixpanel Version: 4.3.0
  • Build Setting: BUILD_LIBRARY_FOR_DISTRIBUTION is set to YES

Additional Notes:

  • Cleaning the build folder and clearing Derived Data did not resolve the issue.
  • Disabling BUILD_LIBRARY_FOR_DISTRIBUTION allows the archive to succeed but is not a viable solution since module interface generation is needed for framework distribution.
  • The issue might be related to a mismatch in Swift versions or compatibility issues in the Mixpanel code when generating module interfaces.

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