浏览代码

修改 BFFramework bundle 资料文件夹名

jsonwang 3 年之前
父节点
当前提交
7b5a167bb1
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      BFFramework.podspec
  2. 1 1
      BFFramework/Classes/Utils/PQCommonMethodUtil.swift

+ 1 - 1
BFFramework.podspec

@@ -33,7 +33,7 @@ TODO: Add long description of the pod here.
   s.source_files = 'BFFramework/Classes/**/*'
 
    s.resource_bundles = {
-     'BFFramework' => ['BFFramework/Assets/**/*.png','BFFramework/Assets/**/*.gif','BFFramework/Assets/**/*.mp3','BFFramework/Assets/**/*.mp4']
+     'BFFramework_Resources' => ['BFFramework/Assets/**/*.png','BFFramework/Assets/**/*.gif','BFFramework/Assets/**/*.mp3','BFFramework/Assets/**/*.mp4']
 
    }
    s.static_framework = true

+ 1 - 1
BFFramework/Classes/Utils/PQCommonMethodUtil.swift

@@ -834,7 +834,7 @@ func currentBundlePath() -> Bundle?{
 //        return nil
 //    }
 //    let associateBunle = Bundle(url: associateBundleURL!)
-    let associateBundleURL = Bundle.main.url(forResource: "BFFramework", withExtension: "bundle")
+    let associateBundleURL = Bundle.main.url(forResource: "BFFramework_Resources", withExtension: "bundle")
     if associateBundleURL == nil {
         return nil
     }