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

CountryManager is not loading countries correctly #52

Closed
eralnar opened this issue Apr 6, 2020 · 17 comments
Closed

CountryManager is not loading countries correctly #52

eralnar opened this issue Apr 6, 2020 · 17 comments
Assignees

Comments

@eralnar
Copy link

eralnar commented Apr 6, 2020

Hello!

I'm having a problem, it seems like CountryManager is not loading countries correctly in my project. I tried to install by using CocoaPods and SPM and it remains the same. I guess it is a configuration problem.

Console logs:

" Could not load the "US.png" image referenced from a nib in the bundle with identifier "com.myproject.debug" "

As I've tried, actually CountryManager.countries remain empty, so this is not only an image problem.

If there's something I'm missing please, let me know.

@Sharkesm
Copy link
Collaborator

Sharkesm commented Apr 7, 2020

@canedo2 Thanks for raising this out, reviewing the code base now

@Sharkesm
Copy link
Collaborator

Sharkesm commented Apr 7, 2020

@canedo2 On what version are you on? And this is the latest version of the pod 1.2.8

@SURYAKANTSHARMA
Copy link
Owner

@canedo2 could you please check example project in repo and update to latest version.

@eralnar
Copy link
Author

eralnar commented Apr 7, 2020

@Sharkesm Hey! I'm with XCode 11.3.1 using the latest version of the pod. I'll try to compile the example project in order to see if I also have a problem with that.

@eralnar
Copy link
Author

eralnar commented Apr 7, 2020

error: Build input file cannot be found: '/Users/diegomanuelmolinacanedo/Downloads/CountryPicker-master/Example/Pods/SKCountryPicker/CountryPicker/CountryPicker/CountryPickerController.bundle/XK@2.png' (in target 'SKCountryPicker-CountryPickerController' from project 'Pods')

That's what I get when I try to compile the example project.

Captura de pantalla 2020-04-07 a las 10 52 26

Another question is, as u can see in the pic, why does it have 2 AppDelegate files?
I'm not into creating frameworks for iOS so I don't actually know if that's normal.

Thanks for replaying.

@Sharkesm
Copy link
Collaborator

Sharkesm commented Apr 7, 2020

@canedo2 I think there was a mistake adding the country images as some of them are missing specifically for Kosovo (or you may try to clear your Derived Data).

And, for the duplication of AppDelegate proceeding to fix that 😄

@SURYAKANTSHARMA
Copy link
Owner

Thanks, @Sharkesm for taking this up.
@canedo2 Please Check now I had committed the latest code in example project. Don't forget to clean the build folder and delete the drive data.
P.S Two app delegate should not be the issue I had delete wrong reference anyway.

@SURYAKANTSHARMA
Copy link
Owner

SURYAKANTSHARMA commented Apr 8, 2020

@canado2 any update ? Issue get resolved ?

@canado
Copy link

canado commented Apr 8, 2020

Wrong user, you need to ask again to @canedo2

@eralnar
Copy link
Author

eralnar commented Apr 8, 2020

Hey, sorry, having a hard day, I'll try it asap. Just to clarify, I tried removing derived data and cleaning build folder a few times when i passed from SPM to CocoaPods.

I'll try your changes in example project later.

@SURYAKANTSHARMA
Copy link
Owner

@canedo2 Had you tried ?

@eralnar
Copy link
Author

eralnar commented Apr 13, 2020

Hey, sorry, spanish holy week.

Captura de pantalla 2020-04-13 a las 9 48 57

It seems like the same problem is showing up. Trying to fix it, I "pod install" in the /Example folder but get a problem with finding de SKCountryPicker module when compiling:

Use of undeclared type 'CountryPickerView' (line 31 of PickerViewController) even when SKCountryPicker is imported. Just a comment, in that line the "let" constant is called picketView if you wanna fix the typo.

@SURYAKANTSHARMA
Copy link
Owner

Deleting drive data might help here.
If not compress and zip it and send it here or email me at Suryakantsharma84@gmail.com. I will revert ASAP.

@eralnar
Copy link
Author

eralnar commented Apr 13, 2020

I just downloaded it from clone or download button.

CountryPicker-master.zip

@SURYAKANTSHARMA
Copy link
Owner

SURYAKANTSHARMA commented Apr 15, 2020

Thanks @canedo2 I got your issue. It's weird but run following commands

  1. pod deintegrate
  2. pod install
    This is due to some cocoa pods reference issues. Let me know if you still face issues after doing this. It works fine for me after that. I had added missing files in the example project as well.

@Sharkesm
Copy link
Collaborator

@SURYAKANTSHARMA Yeah, noticed the same issue with me though it worked after reinstalling the newer version.

@SURYAKANTSHARMA
Copy link
Owner

Closing this issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants