wenweiwei 3 роки тому
батько
коміт
a25783b24e

+ 1 - 3
BFCommonKit.podspec

@@ -8,7 +8,7 @@
 
 Pod::Spec.new do |s|
   s.name             = 'BFCommonKit'
-  s.version          = '1.0.4'
+  s.version          = '1.0.5'
   s.summary          = 'A short description of BFCommonKit.'
   s.swift_version    = '5.0'
 # This description is used to generate tags and improve search results.
@@ -47,8 +47,6 @@ TODO: Add long description of the pod here.
     cc.source_files = 'BFCommonKit/Classes/BFCategorys/*'
     cc.frameworks = 'Foundation','UIKit','MobileCoreServices' # ,'CommonCrypto'
     cc.dependency 'KingfisherWebP','1.3.0'
-#    cc.dependency 'BFCommonKit/BFUtility'
-    cc.dependency 'BFCommonKit/BFBase'
   end
   s.subspec 'BFUtility' do |uu|
     uu.source_files = 'BFCommonKit/Classes/BFUtility/*'

+ 3 - 1
BFCommonKit/Classes/BFCategorys/BFBundle+Ext.swift

@@ -10,7 +10,9 @@ import Foundation
 public extension Bundle {
     // bf main bundle url
     func BF_mainbundle_URL() -> URL {
-        let bundle: Bundle = Bundle(for: PQBaseViewController.self)
+        var bundleURL = Bundle.main.url(forResource: "Frameworks", withExtension: nil)
+        bundleURL = bundleURL?.appendingPathComponent("BFCommonKit").appendingPathExtension("framework")
+        let bundle: Bundle = Bundle.init(url: bundleURL!)!
         return bundle.url(forResource: "BFCommon_Resources", withExtension: "bundle")!
     }