swift - 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
谢谢!
解决方案
推荐阅读
- python - 使用 JDBC 从数据框源复制到 SQL Server 目标
- python - 在字典中创建字典
- javascript - Angular CLI 删除箭头功能?
- pandas - 使用 table=true 格式化 Pandas 图中的表格
- sql - 删除表的存储过程:“CREATE/ALTER PROCEDURE”必须是查询批处理中的第一条语句
- python - numpy 按整行/列排序
- java - androidx.preference.DialogPreference 的 TimePicker 自定义首选项
- javascript - 将 DOM 聚焦在覆盖层之上
- python - builtins.AttributeError:“模块”对象没有属性“one_tile”
- python - 从元素本身生成索引的数组的Python交换不起作用