chronotruck / FlagPhoneNumber

A formatted phone number UITextField with country flag picker.
Apache License 2.0
437 stars 317 forks source link

[FIX] Podspec is broken, xcassets won't link to the correct target - No flag icons at runtime #161

Open rursache opened 4 years ago

rursache commented 4 years ago

Podspec is broken resulting in no flag icons at runtime.

In FlagPhoneNumber.podspec,

s.resource_bundles = {'FlagPhoneNumber' => ['Sources/Resources/**/*']}

must be replaced by

s.resource = 'Sources/Resources/**/*.{json,xib,xcassets}'

Clean project, reinstall pod and run your app, you will see flag icons now.

As i see, this project seems abandoned so you can find a working pod in my fork, alongside with other QoL improvements (ability to tap on country prefix label to open the picker, for ex.)

pixnbit commented 4 years ago

Thanks!