PlatformNames.plist is not loaded when using Cocoapods
rad182 opened this issue · 5 comments
rad182 commented
Hi. I use Cocoapods to install CTFeedback. My issue is I'm always getting null/nil/empty platform string.
This code from CTFeedbackViewController.m the filePath is always retuning nil.
- (NSString *)platformString
{
NSString *platform = [self platform];
// Reading a file with platform names
// http://theiphonewiki.com/wiki/Models
NSString *filePath = [[NSBundle mainBundle] pathForResource:@"PlatformNames" ofType:@"plist"];
NSDictionary *platformNamesDic = [NSDictionary dictionaryWithContentsOfFile:filePath];
// Changing a platform name to a human readable version
platform = platformNamesDic[platform];
return platform;
}
rizumita commented
I released ver.1.0.12. Please try this version.
rad182 commented
no luck still empty and null.
MaxDesiatov commented
reproducible for me with 1.0.12
rizumita commented
This bug was fixed at ver.1.0.14. Can I close this issue?