rizumita/CTFeedback

PlatformNames.plist is not loaded when using Cocoapods

rad182 opened this issue · 5 comments

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;
}

I released ver.1.0.12. Please try this version.

no luck still empty and null.

reproducible for me with 1.0.12

This bug was fixed at ver.1.0.14. Can I close this issue?

yup thanks @rizumita