Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot compile framework with XCGLogger dependencies #328

Open
sglushchenko opened this issue Jun 20, 2023 · 0 comments
Open

Cannot compile framework with XCGLogger dependencies #328

sglushchenko opened this issue Jun 20, 2023 · 0 comments

Comments

@sglushchenko
Copy link

Hello,
I faced with a problem, when I try compile Swift Package framework to xcframework from the command line and when in xcframework contain dependencies XCGLogger.
Firstly I had error that I cannot find a module ObjcExceptionBridging

I made fork and add this line. It helps
@_implementationOnly import ObjcExceptionBridging

But I get many another errors. I change name of target at Package file and it starts to work.
Looks like Swift Package Manager has requirements that product and target should have different names. So, my product still XCGLogger, but my target XCGLoggerImpl, and I change folder name too.

You can see my Package file here
https://github.com/sglushchenko/XCGLogger/blob/master/Package.swift

Probably better change just product name and keep a target name.

P.S. It works well with Intel, but doesn't work with M1/M2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant