iRate
iRate copied to clipboard
Localization bug when used as framework
There's a small bug in iRate.m
when iRate is used with Cocoapods. iRate is looking for the localizations bundle in the main bundle but it's actually embedded in the iRate.framework
bundle and is not found. This can be solved by this fix. I'm not sure about a general solution.
//NSString *bundlePath = [[NSBundle mainBundle] pathForResource:@"iRate" ofType:@"bundle"];
NSBundle *frameworkBundle = [NSBundle bundleForClass:[self class]];
NSString *bundlePath = [frameworkBundle pathForResource:@"iRate" ofType:@"bundle"];
Thanks for an awesome library!
+1 The solution is working! (I'm using Swift and Cocoapods)
+1 Thanks for solving this! Also using Swift with Cocoapods and version 1.11.4 is not translating. so it would be great to merge this solution.
+1, please merge