Forráskód Böngészése

Merge pull request #219 from macdrevx/pods-use-frameworks

Enable support for Podfiles with use_frameworks!
Pierre-Olivier Latour 10 éve
szülő
commit
7b0477b1e0
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      GCDWebUploader/GCDWebUploader.m

+ 1 - 1
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;
     }