【发布时间】:2020-03-01 12:34:08
【问题描述】:
我正在尝试将我的 pod 的新版本上传到 cocoapods 规范 repo。当前的实时版本是 0.3.1,它是一个使用 swift 4.2 构建的框架。现在我更新了库并使用 Xcode 11.1 (swift 5) 构建。但是在检查 podspec 文件时,我在终端中遇到了未知的 DSL 错误。
我尝试过更改 podspec 的名称并使用相同的框架。但没有用。有人请帮忙
pod spec lint AsistaCore.podspec --verbose
Podspec 文件
Pod::Spec.new do |spec|
spec.name = 'AsistaCore'
spec.version = '1.0.0'
spec.summary = 'Official Asista SDK in Swift to access Asista Platform core feature'
spec.description = <<-DESC
The Asista SDK in Swift Core framework provides:
* Create new tickets
* Update Ticket State
* Add comments to ticket
* Asset list
* Update profile
* Knowledge Base Articles
DESC
spec.homepage = 'https://asista.com/developer'
spec.license = { :type => 'MIT', :file => 'LICENSE' }
spec.authors = { 'Cherrylabs' => 'vaisakh.kp@cherrylabs.com' }
spec.documentation_url = 'https://asista.com/developer/docs/asista-sdk-for-ios'
spec.platform = :ios
spec.source = { :git => 'https://github.com/cherrylabstech/asista-sdk-ios.git', :tag => spec.version }
spec.swift_version = '5.0'
spec.ios.deployment_target = '8.0'
spec.static_framework = true
spec.ios.vendored_frameworks = 'AsistaSupport/AsistaCore.framework'
end
-> AsistaCore (1.0.0) - 错误 | [iOS] 未知:遇到未知错误(Pod::DSLError /Library/Ruby/Gems/2.6.0/gems/cocoapods-core-1.8.4/lib/cocoapods-core/specification.rb:808:in `rescue in _eval_podspec'
....
...
【问题讨论】:
-
你解决了吗?
-
你需要将 :tag 换成 :tag => "#{spec.version}"
标签: ios swift frameworks cocoapods