From 8bcd58b98ab5bba551579784071178fad703662c Mon Sep 17 00:00:00 2001 From: brandon_withrow Date: Mon, 12 Jun 2017 14:32:35 -0700 Subject: [PATCH] Fix build error for nbundle addition --- lottie-ios/Classes/Private/LOTAnimationView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lottie-ios/Classes/Private/LOTAnimationView.m b/lottie-ios/Classes/Private/LOTAnimationView.m index 931750a129..b9391891cf 100644 --- a/lottie-ios/Classes/Private/LOTAnimationView.m +++ b/lottie-ios/Classes/Private/LOTAnimationView.m @@ -242,7 +242,7 @@ LOTComposition *comp = [[LOTAnimationCache sharedCache] animationForKey:animationName]; if (comp) { - return [[LOTAnimationView alloc] initWithModel:comp]; + return [[LOTAnimationView alloc] initWithModel:comp inBundle:[NSBundle mainBundle]]; } NSError *error; @@ -253,7 +253,7 @@ LOTComposition *laScene = [[LOTComposition alloc] initWithJSON:JSONObject]; laScene.rootDirectory = [filePath stringByDeletingLastPathComponent]; [[LOTAnimationCache sharedCache] addAnimation:laScene forKey:animationName]; - return [[LOTAnimationView alloc] initWithModel:laScene]; + return [[LOTAnimationView alloc] initWithModel:laScene inBundle:[NSBundle mainBundle]]; } NSException* resourceNotFoundException = [NSException exceptionWithName:@"ResourceNotFoundException"