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

Support for UIKit+Mac (Catalyst) apps #55

Closed
xjki opened this issue Jul 3, 2019 · 4 comments
Closed

Support for UIKit+Mac (Catalyst) apps #55

xjki opened this issue Jul 3, 2019 · 4 comments

Comments

@xjki
Copy link

xjki commented Jul 3, 2019

It would be great to use AppReceiptValidator for iOS13/Catalina Catalyst apps. One option would be library compiled as new Xcode 11 .xcframework.

From Xcode 11 Beta Release Notes
XCFrameworks make it possible to bundle a binary framework or library for multiple platforms —including iOS devices, iOS simulators, and UIKit for Mac — into a single distributable .xcframework bundle that your developers can use within their own applications. An .xcframework bundle can be added to an Xcode target’s Link Libraries phase and Xcode uses the right platform’s version of the included framework or library at build time. Creation of XCFrameworks is supported from the command line using xcodebuild -create-xcframework. Frameworks or libraries bundled in an XCFramework should be built with the Build Libraries for Distribution build setting set to YES.

Another option would be library as CocoaPod that compiles with the rest of code.

@xjki xjki changed the title Support for UIKitMac (Catalyst) apps Support for UIKit+Mac (Catalyst) apps Jul 3, 2019
@hannesoid
Copy link
Contributor

That would indeed be nice, I think Carthage is already ready for it (but this project not)! Also would be nice to provide a Swift Package Manager package but not sure how this works. Not sure if the OpenSSL stuff needs to be rebuilt too.
As currently this is not a priority for me/us, I'm sorryy I can't promise any news on this soon, feel free to experiment on a fork(?)

@funkenstrahlen
Copy link

Unfortunately Carthage does not look ready for Catalyst yet: Carthage/Carthage#2799

It does not look like there is a lot of traction there.

Swift 5.3 added support for all kinds of assets in Swift Package Manager. This might offer the possibility to include an OpenSSL binary.

@hannesoid
Copy link
Contributor

we just released a new version that uses swift package manager and should resolve this issue, although we don't maintain a catalyst app to test it with

@hannesoid
Copy link
Contributor

pls create a new issue if you run in to problems

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

3 participants