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

Xcode projects? #7

Closed
pixlwave opened this issue May 5, 2019 · 4 comments
Closed

Xcode projects? #7

pixlwave opened this issue May 5, 2019 · 4 comments

Comments

@pixlwave
Copy link
Contributor

pixlwave commented May 5, 2019

At the risk of sounding stupid, is it possible to use this with an Xcode project? I tried cloning the repo and building which gave me AppUpdater.swiftmodule, but I'm not sure how I'd use that from Xcode?

@pixlwave pixlwave changed the title Xcode Xcode projects? May 5, 2019
@mxcl
Copy link
Owner

mxcl commented May 5, 2019

You can drag and drop the single swift file into your project.

If you want package management, Carthage will work, but you will still need to drag and drop the source file from the Carthage checkout. CocoaPods can do this too, but it will not automatically update. You could even use SwiftPM with the same source-dragging requirement, it will keep the dependency up-to-date too like Carthage.

Finally I offer Cake that you can use for this too, but I expect it is too exotic for your needs.

@pixlwave
Copy link
Contributor Author

pixlwave commented May 5, 2019

Thanks for the reply 😃

If you want package management

This is how I should have framed my original question 🤦🏻‍♂️. I was pretty excited to see that AppUpdater is a single source file project, and was about to drop it into my project (my favourite method for using third party code) until I noticed it had dependencies. A better question would have been "Is there an easy way to integrate AppUpdater along with its dependencies into an Xcode project?"

Interestingly after your mention of using Carthage I checked your Path.swift for Carthage support and found Carthage/Carthage#1945, which is the kind of thing I was thinking of. So until then, I'll fetch with SPM and drag all the dependencies in that way. Although maybe WWDC will bring us SPM integration with Xcode anyway 🤞🏻

Finally I offer Cake that you can use for this too, but I expect it is too exotic for your needs.

Damn this looks interesting, I'm going to have to have a tinker with it!

@pixlwave pixlwave closed this as completed May 5, 2019
@mxcl
Copy link
Owner

mxcl commented May 5, 2019

Sorry I forgot there were dependencies to this package. So yeah, SwiftPM is probably your only reasonable choice.

It is possible to generate an xcodeproj from a Package.swift for your app’s deps and use that from your app’s xcodeproj. It's not recommended though, since it's a bit fiddly.

@pixlwave
Copy link
Contributor Author

pixlwave commented May 5, 2019

I hadn't thought about using the generated xcodeproj. Just tried and it works a treat! Thanks 🙏

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

2 participants