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

Crashes when using through swift package manager. #135

Closed
indrajitv opened this issue Jan 4, 2021 · 9 comments
Closed

Crashes when using through swift package manager. #135

indrajitv opened this issue Jan 4, 2021 · 9 comments

Comments

@indrajitv
Copy link

indrajitv commented Jan 4, 2021

Screenshot 2021-01-04 at 2 49 06 PM

Thanks.

@indrajitv indrajitv changed the title Crashes when using though swift package manager. Crashes when using through swift package manager. Jan 4, 2021
@indrajitv
Copy link
Author

In Xcode 12.3, Using SPM. I can reproduce the issue everytime.

@shanecowherd
Copy link

Same issue here, I wonder if it is something to do with the Project Manifest file not knowing where the bundle is located. I spent a bit of time messing with this before going back to Cocoapods :(

@kohlab
Copy link

kohlab commented Feb 25, 2021

It'd be great if this could be installed with Swift Package Manager. We're getting close to having all our dependencies installable this way; this is an exception.

@kizitonwose
Copy link
Owner

I worked on this for a bit today but could not find a way to make it work with SPM. The current changes are in the spm branch in case anyone wants to take a look. Unfortunately, I do not have a lot of time to invest in this at the moment.

@indrajitv
Copy link
Author

@kizitonwose Any new on this issue? Just for this pod, I am unable to shift my project onto package manager,

@devedup
Copy link

devedup commented Sep 14, 2021

It's failing because it's not packaging the bundle correctly for SPM. I've forked it and made it compatible with Swift Package Manager and I did a few other minor tweaks, including using vector pdfs instead of pngs...

https://github.com/devedup/CountryPickerView

@kohlab
Copy link

kohlab commented Oct 1, 2021

This is an excellent development, @devedup. I was able to link my app successfully with your Swift package. Alas it crashes when I try to instantiate a picker. If you enable Issues in your fork, I can provide more detail there rather than cluttering this thread.

@kizitonwose
Copy link
Owner

SPM usage is now fixed in 3.3.0 🚀

@federicopolesello
Copy link

Hi @kizitonwose, thanks for your hard work but I'm still having an issue when installing the library through SPM. The error during build is: "Framework not found CountryPickerView".

Screenshot 2021-10-14 at 11 58 01

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

6 participants