TSMessages icon indicating copy to clipboard operation
TSMessages copied to clipboard

TSMessages incorrect behaviour while installing via framework.

Open lolgear opened this issue 7 years ago • 1 comments

Hey,

Pretty simple example crashed app. [NSBundle mainBundle] doesn't work if library installed as framework. [NSBundle bundleForClass:self.class] could solve problem.

lolgear avatar Apr 11 '17 08:04 lolgear

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

semnyqu avatar Jun 29 '17 12:06 semnyqu