UnrarKit icon indicating copy to clipboard operation
UnrarKit copied to clipboard

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

Open huynguyen230892 opened this issue 3 years ago • 6 comments

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

huynguyen230892 avatar Aug 08 '22 06:08 huynguyen230892

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.

abbeycode avatar Aug 08 '22 15:08 abbeycode

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

huynguyen230892 avatar Aug 09 '22 02:08 huynguyen230892

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 avatar Aug 10 '22 00:08 abbeycode

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 avatar Aug 16 '22 12:08 abbeycode

Thanks you.

huynguyen230892 avatar Aug 17 '22 03:08 huynguyen230892

Hi, Any news on this? :(

huynguyen230892 avatar Aug 29 '22 15:08 huynguyen230892