Showing posts with label xcode. Show all posts
Showing posts with label xcode. Show all posts

Thursday, October 25, 2018

macOS Mojave doesn't recognize git



Who doesn't want dark mode on mac!

However, after updating the macOs to Mojave, if you try to access git on your command prompt, it throws below error -

$ git
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun


All you need to do is reinstall the xcode command line tool using following command -

$xcode-select --install

It should run fine after that.

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.