The answer was posted in the Arduino forum by avenue33 which solved my problem. After commenting out the whole core library for code-sense section except #include "Arduino.h"
,
code sense works perfectly in Xcode using embedXcode.
Those who might be facing similar problems can try commenting out the core library section except #include "Arduino.h"
.
Happy coding... :)