tkach / PinCodeTextField

MIT License
260 stars 100 forks source link

Use of undeclared type 'PinCodeTextField'/'Delegate' #28

Open ghost opened 6 years ago

ghost commented 6 years ago

I'm new into iOS development. and not really familiar with pods installation/usage workflow I've just successfully installed pincodetextfiled pod using terminal but when I'm using it, it keeps returning me this error: Use of undeclared type 'PinCodeTextField'/'Delegate'

I've tried to rebuild/clean few times. no changes I'm sure it have been added to mu project, but in Frameworks directory Pods_projname.framework is red! is that a problem?

UPDATE: when I'm trying ti build I'm getting this: ld: warning: directory not found for option '-F/Users/benyamin/Library/Developer/Xcode/DerivedData/pillcii-bvhwqpvilunpwncbgbkedzrmkffk/Build/Products/Debug-iphonesimulator/PinCodeTextField' ld: framework not found PinCodeTextField

is there any more steps for using this pod?

tkach commented 6 years ago

Hi, by your description it looks like you are opening .xcodeproj file (but after pods installation you should use .xcworkspace to build your project). Please check that you are building workspace, if it so and you still have prblems, please check cocoapods' troubleshooting page, it may help you: https://guides.cocoapods.org/using/troubleshooting.html

tkach commented 6 years ago

If it won't help, it would be great if you can share your Podfile and complete error description, + code (that part where you're getting this error)

ghost commented 6 years ago

I've tried to open and build my project from .xcworkspace and still getting error. I found out something! the path of Pods_myprojectname.framework does not exists! how can I fix this?

ghost commented 6 years ago

my Podfile: platform :ios, '11.3' target 'pillcii' do use_frameworks! pod 'PinCodeTextField' end

the build error "framework not found PinCodeTextField" it disappeared! now I'm getting swift code error in my ViewController: Use of undeclared type 'PinCodeTextField'

tkach commented 6 years ago

Did you add import PinCodeTextField at the top of your ViewController ?

ghost commented 6 years ago

I don't have access to my computer right now but I've tried that before and it says it doesn't exists or something like this

tkach commented 6 years ago

Clarify your question, "it doesn't exist or something like this" is not enough information to help you

nafisahmedkhan9 commented 6 years ago

Any one have solved this problem. Please let me know i am facing same problem