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

Not able to build XCFramework in Swift Package Manager with Mac Catalyst support #109

Open
huynguyen230892 opened this issue Aug 8, 2022 · 6 comments

Comments

@huynguyen230892
Copy link

huynguyen230892 commented Aug 8, 2022

I tried to create XCFramework that support Mac Catalyst. But I can not. The XCFramework work fine on macOS and iOS, but not on Mac Catalyst. I tried by apple way and other lib that support (https://github.com/gurhub/surmagic) but only support iOS and macOS. ( I have tested on other frameworks)

There are no SPM supported, so I hope you could take a look. Thanks you.
Screen Shot 2022-08-08 at 11 37 30

Screen Shot 2022-08-08 at 11.31.28

@abbeycode
Copy link
Owner

I've recently tried getting SPM to work with UnrarKit (see the swiftpm branch), but have had some trouble. Why do you need an "XCFramework" bundle? Could a regular .framework dynamic framework bundle work for you as well? I include one built with Carthage along with every release. There'll be a v2.11 beta out soon that should give you the latest and greatest code.

@huynguyen230892
Copy link
Author

Because I need to use UnrarKit on my Package. This is the only way I known :(
Screen Shot 2022-08-09 at 09 31 49

@abbeycode
Copy link
Owner

Now I understand, thanks for clarifying. I'm going to close this as a duplicate of #89, since UnrarKit doesn't support SPM yet. Please feel free to help get SPM integration working and submit a PR. I'd be happy to provide guidance, but I hit a wall when I tried. You can start from my swiftpm branch, as mentioned before, where I started but didn't finish it.

@abbeycode abbeycode changed the title XCFramework does not support Mac Catalyst Not able to build XCFramework in Swift Package Manager with Mac Catalyst support Aug 10, 2022
@abbeycode abbeycode changed the title Not able to build XCFramework in Swift Package Manager with Mac Catalyst support Not able to build XCFramework in Swift Package Manager with Mac Catalyst support Aug 10, 2022
@abbeycode
Copy link
Owner

It looks like I misunderstood (As mentioned in #110). I see now when I try to check the Mac Catalyst box from the UnrarExample project (even without SPM in the mix) it won't run. I'll see what is going on. Meanwhile I'm going to close this issue as a duplicate and reopen the original one.

@abbeycode abbeycode reopened this Aug 16, 2022
@huynguyen230892
Copy link
Author

Thanks you.

@huynguyen230892
Copy link
Author

Hi, Any news on this? :(

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

No branches or pull requests

2 participants