From a6746147132f68b85666d04aca79e79fbbfcd92b Mon Sep 17 00:00:00 2001 From: Andrew Hershberger Date: Tue, 22 Sep 2015 15:21:52 -0400 Subject: [PATCH] Enable support for Podfiles with use_frameworks! The previous implementation looked in the main bundle for the GCDWebUploader resource bundle. When using the use_frameworks! Podfile option, the resource bundle will be in a framework bundle, not in the main bundle. --- GCDWebUploader/GCDWebUploader.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GCDWebUploader/GCDWebUploader.m b/GCDWebUploader/GCDWebUploader.m index 4fe9896..9bb4453 100644 --- a/GCDWebUploader/GCDWebUploader.m +++ b/GCDWebUploader/GCDWebUploader.m @@ -296,7 +296,7 @@ - (instancetype)initWithUploadDirectory:(NSString*)path { if ((self = [super init])) { - NSBundle* siteBundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"GCDWebUploader" ofType:@"bundle"]]; + NSBundle* siteBundle = [NSBundle bundleWithPath:[[NSBundle bundleForClass:[GCDWebUploader class]] pathForResource:@"GCDWebUploader" ofType:@"bundle"]]; if (siteBundle == nil) { return nil; }