I managed to get the FileStorage class working with iOS. The problem was that I needed to make sure that the file was created in iOSs, specified in the "Document Directory". Here is a sample code:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *docs = [paths objectAtIndex:0]; NSString *vocabPath = [docs stringByAppendingPathComponent:@"vocabulary.xml"]; FileStorage fs([vocabPath UTF8String], FileStorage::WRITE);
source share