Problem with import <CoreServices/CoreServices.h> ..plz help me

when ever i am trying to import " #import <CoreServices/CoreServices.h> " I got this bellow error four times.

error: expected declaration specifiers or '...' before 'CFXMLTreeRef'

note: [I am using this code for Iphone Application]

I am importing " <CoreServices/CoreServices.h>" for WSMethodInvocationRef, WSMethodInvocationCreate() ,
WSMethodInvocationSetParameters() methods.

I added CoreServices framework also in my code.

Original thread: https://forums.imore.com/threads/problem-with-import-coreservices-coreservices-h-plz-help-me.181417/