Showing posts with label swift. Show all posts
Showing posts with label swift. Show all posts

Sunday, May 17, 2015

xcode intellisense/autocomplete stopped working - How to bring it back?


While doing swift code in Xcode the intenseness suddenly stopped working. How do I bring it back?

Here are few things you can try -


  • Restart the Xcode - you may get lucky and it may start working
  • Next option - Start with Command + Shift + Key and clean the project
  • If its still not working, now we are going little detail, go to /Users/Library/Developer/Xcode/DerivedData
    • Find your project directory for which its broken, delete the content of the folder
    • Other way to do the same is from Xcode, go to Windows > Organize > Delete the Derived data
  • Delete the ModuleCache folder content from the 
    /Users/Library/Developer/Xcode/DerivedData and restart the Xcode, it should come up fine.
Good luck with the fix, let me know if it works or if I should add any additional technique to handle this.

Saturday, May 16, 2015

Keyboard stopped working in xcode simulator

While doing some first time coding on xcode first time I run into an issue where suddenly my keyboard stopped working when select of text box. 

Why it happened?
Because first time when the textbox opened, you might have clicked on escape and what it will do is it connects the simulator keyboard to your hardware keyboard instead of simulator keyboard.

How to enable again?
For your simulator follow below steps:

iOS Simulator > Hardware > Keyboard

Uncheck "Connect Hardware Keyboard"

It will disconnect the hardware keyboard connection for the simulator.