You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Pretty simple example crashed app. [NSBundle mainBundle] doesn't work if library installed as framework. [NSBundle bundleForClass:self.class] could solve problem.
The text was updated successfully, but these errors were encountered:
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
Hey,
Pretty simple example crashed app.
[NSBundle mainBundle]
doesn't work if library installed as framework.[NSBundle bundleForClass:self.class]
could solve problem.The text was updated successfully, but these errors were encountered: