Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TSMessages incorrect behaviour while installing via framework. #285

Open
lolgear opened this issue Apr 11, 2017 · 1 comment
Open

TSMessages incorrect behaviour while installing via framework. #285

lolgear opened this issue Apr 11, 2017 · 1 comment

Comments

@lolgear
Copy link

lolgear commented Apr 11, 2017

Hey,

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

@semnyqu
Copy link

semnyqu commented Jun 29, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants