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

When trying to manually drag and drop IQKeyboardManagerSwift into xcode, i get "Use of unresolved identifier" in AppDel #390

Closed
acerts04 opened this issue Dec 19, 2015 · 4 comments

Comments

@acerts04
Copy link

Hello,
Forgive me if this is not the correct place to post this, but i have been struggling with trying to fix this problem. I have been trying to make use of IQKeyboardManagerSwift, but can not enable it in AppDel. Each time i drag the IQKeyboardManagerSwift directory from the demo project into my project, i can not write the code to enable it. I always get a "Use of unresolved identifier error".

What i did try and do was just drag and dropping the contents of the IQKeyboardManagerSwift directory into my project and that had worked, the code to enable it was finally recognized, but at runtime there were just a lot of errors.

I also tried dragging and dropping in another project and had the exact same problem. Am i doing something wrong or missing a step? Any help would be appreciated as i am stuck and out of ideas on how to fix this, Thank you.

@hardikdevios
Copy link

  1. Put use_frameworks! in Podfile
  2. Put Pod 'IQKeyboardManagerSwift' After that in Podfile
  3. Pod install in Terminal
  4. import IQKeyboardManagerSwift
  5. Add this in didFinishLaunching - > QKeyboardManager.sharedManager().enable = true

you are done

I hope this will be the easiest things just give it try with PODS buddy

@hackiftekhar
Copy link
Owner

If you are not using pods and are trying to integrate swift library in objective-c project, then you need to use a bridging header file.

@acerts04
Copy link
Author

Thank you for your replies guys. I figured out the reason why when i drag and dropped it was not being recognized in code and that was because i was choosing Create folder references instead of Create groups. Now it is working.

I did want to use pods, but had some issues with it as well. So i guess i will have to keep coming back here and re-importing whenever updates are released?

@hackiftekhar
Copy link
Owner

Thanks for the updates that you figured out the reason

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

3 participants