Skip to content

Commit a674614

Browse files
author
Andrew Hershberger
committed
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.
1 parent b549f11 commit a674614

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

GCDWebUploader/GCDWebUploader.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ @implementation GCDWebUploader
296296

297297
- (instancetype)initWithUploadDirectory:(NSString*)path {
298298
if ((self = [super init])) {
299-
NSBundle* siteBundle = [NSBundle bundleWithPath:[[NSBundle mainBundle] pathForResource:@"GCDWebUploader" ofType:@"bundle"]];
299+
NSBundle* siteBundle = [NSBundle bundleWithPath:[[NSBundle bundleForClass:[GCDWebUploader class]] pathForResource:@"GCDWebUploader" ofType:@"bundle"]];
300300
if (siteBundle == nil) {
301301
return nil;
302302
}

0 commit comments

Comments
 (0)