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

SPM support #277

Merged
merged 11 commits into from
Sep 17, 2020
Merged

SPM support #277

merged 11 commits into from
Sep 17, 2020

Conversation

arturgrigor
Copy link
Contributor

No description provided.

@PGLongo PGLongo merged commit 8fd26f2 into pkluz:master Sep 17, 2020
@PGLongo
Copy link
Collaborator

PGLongo commented Sep 17, 2020

Thank you @arturgrigor.

@PGLongo
Copy link
Collaborator

PGLongo commented Sep 17, 2020

@arturgrigor I've this error:

image

I'm doing something wrong?

@arturgrigor
Copy link
Contributor Author

PKHUD SPM Test.zip

@PGLongo I'm not sure, but you can check and run this small demo with Xcode 12 and everything should work just fine.

@PGLongo
Copy link
Collaborator

PGLongo commented Sep 17, 2020

Please can you try to install PKHUD with SPM?

@arturgrigor
Copy link
Contributor Author

arturgrigor commented Sep 17, 2020

@PGLongo

I did that by running the following commands:

mkdir pkhud-spm-test
cd pkhud-spm-test
swift package init
vi Package.swift; here I added a ".package(url: "https://github.com/pkluz/PKHUD.git", .upToNextMinor(from: "5.4.0"))," to the dependencies section, and listed "PKHUD" in the "pkhud-spm-test" target's dependencies
swift package update
swift package generate-xcodeproj

And everything worked just fine.

Note: You should make sure that Xcode 12 is selected for the Command Line Tools.

@arturgrigor
Copy link
Contributor Author

@PGLongo I got that same problem earlier on a build machine because they are still using Xcode 11 and this library requires Xcode 12 due to the images that come with it and bundling resources into the library is only available in Xcode 12.

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

Successfully merging this pull request may close these issues.

2 participants