Plist not copied in testflight build

I'm loading a pList file from the mainBundle and copying it to the NSLibraryDirectory.


In debug this is working just fine. However when the internal testers try this using the testflight build, the pList file is never copied.

Is there any reason to assume that this won't work in a build installed using testflight?


This is the code I'm running:


NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES);

NSString *libraryDirectory = [paths objectAtIndex:0];

NSFileManager *fileManager = [NSFileManager defaultManager];

NSString* path = [[NSBundle mainBundle] pathForResource:@"MessagesList"

ofType:@"plist"];


m_messagesDictionarypath = [libraryDirectory stringByAppendingPathComponent: [NSString stringWithFormat:@"MessagesList.plist"] ];

if (![fileManager fileExistsAtPath: m_messagesDictionarypath])

{

NSError* Error;

[[NSFileManager defaultManager]copyItemAtPath:path toPath:m_messagesDictionarypath error:&Error];

}

NSMutableDictionary *data = [[NSMutableDictionary alloc] initWithContentsOfFile: m_messagesDictionarypath];