Your code is a bit strange, why do UTF8String from the package path? You can simply use bundlePath directly in your format:
NSString *folderPath =[NSString stringWithFormat:@"%@/myDataFolder", bundlePath];
It would be more correct:
NSString *folderPath = [bundlePath stringByAppendingPathComponent:@"myDataFolder"];
This will ensure that all the correct directory separators are added.
And if you use only one file:
NSString *folderPath = [[NSBundle mainBundle] pathForResource:@"somefile" ofType:@"sometype" inDirectory:@"myDataFolder"];
Just make sure you add the folder as a folder, not a group for the project. If you selected groups, you can get the file path with:
NSString *folderPath = [[NSBundle mainBundle] pathForResource:@"somefile" ofType:@"sometype"];
source share