TSMessages
TSMessages copied to clipboard
TSMessages incorrect behaviour while installing via framework.
Hey,
Pretty simple example crashed app.
[NSBundle mainBundle]
doesn't work if library installed as framework.
[NSBundle bundleForClass:self.class]
could solve problem.
NSString *path = [[NSBundle mainBundle] pathForResource:TSDesignFileName ofType:@"json"]; NSData *data = [NSData dataWithContentsOfFile:path]; NSAssert(data != nil, @"Could not read TSMessages config file from main bundle with name %@.json", TSDesignFileName); crash use in framework