首页 > 解决方案 > CocoaPodspec 未解决的标识符错误

问题描述

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

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

谢谢!

标签: swiftcocoapodspodspec

解决方案


推荐阅读