Skip to content

How to link this as the static framework(or library) with SPM? #159

@Urtaq

Description

@Urtaq

First, this is really nice & useful for me to develop with SwiftUI through SPM! Thank you for creating!!!!

Well, recently I've been trying to use the Xcode cloud(it's on the Beta status, though).
Then, there is one trouble to link the Introspect. It's below.

ITMS-90334: Invalid Code Signature Identifier. The identifier "Introspect-55554944a57ff822a61e381886dc5802237a083e" in your code signature for "Introspect_359AFEED79E48935_PackageProduct" must match its Bundle Identifier "Introspect"

Since I found out, the issue seems to be from linking the dynamic framework. It occurs, even though, the Introspect doesn't have the type property as dynamic.
(This is talking about the Package.swift's setting properties)

So, I'd like to know how to use the Introspect as the static framework through SPM.
Because they're linked as the static framework, even though some other frameworks(ex. Alamofire) doesn't have any settings for this, through SPM. Is there any specific options using frameworks or libraries through SPM?

I've had one thing to resolve this. It's the Introspect target's MACH_O_TYPE property sets the static library in the Introspect project.
It's useful & effective to avoid the trouble. So, I'm preparing the P.R for it. But, I think there could be the other awesome resolution.
So, I'd like to ask a question like this title.
Could anyone help or give an advice for this?

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