CocoaPodspec未解析的标识符错误

时间:2018-06-15 10:05:42

标签: swift cocoapods podspec

我正在尝试通过CocoaPodspec创建自己的框架。 我需要一些帮助来解决这个问题。 运行命令pod lib lint --no-clean --verbose interminal后出现错误:

error: use of unresolved identifier 'GlobalLoaderView'

这是Podspec文件内容:

Pod::Spec.new do |s|
  s.platform = :ios
  s.ios.deployment_target = '11.0'
  s.name = "HalBase"
  s.swift_version = '4.0'
  s.summary = "This is example"
  s.requires_arc = true
  s.version = "1.0"
  s.license = { :type => "MIT", :file => "LICENSE" }
  s.author = { "ntancnit@gmail.com" => "ntancnit@gmail.com" }
  s.homepage = "https://github.com/ntancnit/HalBase"
  s.source = { :git => "https://github.com/ntancnit/HalBase.git", :tag => "#{s.version}"}
  s.ios.framework = "UIKit"
  s.ios.framework = "CoreLocation"
  s.ios.framework = "Foundation"
  s.dependency 'RxSwift', '~> 4.0.0'
  s.dependency 'RxCocoa', '~> 4.0.0'
  s.dependency 'RxDataSources', '~> 3.0'
  s.dependency 'Action'
  s.dependency 'Alamofire', '~> 4.0'
  s.dependency 'AlamofireImage', '~> 3.0'
  s.dependency 'ObjectMapper', '~> 3.0'
  s.dependency 'IQKeyboardManagerSwift', '~> 5.0.0'
  s.dependency 'SVProgressHUD'
  s.dependency 'PureLayout'
  s.dependency 'KeychainAccess'
  s.source_files = "HalBase/**/*.{swift,h,m}"
  s.resources = "HalBase/**/*.{png,jpeg,jpg,storyboard,xib,plist,swift}"
end

GlobalLoaderView是我从UIControl中获取的自定义类。 我使用的是swift 4,Xcode 9.4

谢谢!

0 个答案:

没有答案