I\'d like to use an iCloud, but when I compile the app on iOS 4.3 Simulator it crashes.
dyld: Symbol not found: _OBJC_CLASS_$_NSMetadataQuery
What should I do to
The usual way would be to compile it with iOS 5 SDK and setting the deployment target to the oldest iOS Version you'd like it to work with. It's up to you though to check at runtime on which classes and methods are available to the current system. A user on iOS 4 for example will not be able to use functions that only ship with iOS 5.
To check the availability of classes do:
if ( NSClassFromString(@"NSMetadataQuery") != nil ) {
//do stuff with NSMetadataQuery here
}
To check the availability of methods do:
if ( [myObject respondsToSelector:@selector(doSomething)] ) {
//call doSomething on myObject
}