我有一個壓縮的iOS框架,我試圖通過CocoaPods在測試應用程序中使用。我已經在我的github下發布了它。我podspec目前的樣子:爲什麼我的CocoaPod沒有從指定的URL下載源代碼?
Pod::Spec.new do |spec|
spec.name = "TestPod"
spec.version = "0.1"
spec.license = { :type => "MIT", :file => "LICENSE" }
spec.homepage = 'http://www.test.com'
spec.author = "test"
spec.summary = "test."
spec.source = { :http => "https://github.com/username/TestPod/releases/download/0.1/TestPod-0.1.zip"}
spec.vendored_framework = "TestPod-0.1/TestPod.framework"
spec.ios.deployment_target = '8.0'
end
我使用這個直接在我的Podfile與 -
target 'TestApp' do
pod 'TestPod', :git => 'https://github.com/username/TestPod/'
end
然而,在做一個pod install
,我發現壓縮文件TestPod-0.1.zip
既不下載也不是該框架添加到我的項目中。有人可以請我告訴我如何讓Pod下載我的框架?
如果有人想知道,這可以通過使用固定':podspec',而不是':git' –
感謝您的文章評論!我在https://eladnava.com/publish-a-universal-binary-ios-framework-in-swift-using-cocoapods/上閱讀了博客文章,在使用答案之前發生了幾個小時的難題:podspec –