[英]After creating own cocoapods library, when pod install my pod, There is only ReplaceMe.m file
我創建了自己的cocoapods庫並將其推送。 但是,當我為某個應用程序運行pod install
,只有ReplaceMe.m
文件。 但是我已經用自己的類更改了此文件。 我也可以在github上查看文件。
platform :'ios', '8.0'
pod 'MyPod'
但是,如果我將git url添加到Podfile,則存在庫類。
platform :'ios', '8.0'
pod 'MyPod', :git => 'https://github.com/ugurcetinkaya/MyPod.git'
我應該怎么做才能解決這個問題?
我的.podspec文件:
Pod::Spec.new do |s|
s.name = 'UURCCentralizedTokenView'
s.version = '0.1.0'
s.summary = 'Customizable Centralized TokenView'
s.description = 'Customizable Centralized TokenView for iOS applications.'
s.homepage = 'https://github.com/ugurcetinkaya/UURCCentralizedTokenView'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Ugur Cetinkaya' => 'ugurcetinkaya@ymail.com' }
s.source = { :git => 'https://github.com/ugurcetinkaya/UURCCentralizedTokenView.git', :tag => s.version.to_s }
s.ios.deployment_target = '8.0'
s.source_files = 'UURCCentralizedTokenView/Classes/**/*'
s.frameworks = 'UIKit'
我解決了我的問題。 Git版本的庫在當前版本中沒有庫類。 我在我的倉庫中添加了類。 之后,我通過在倉庫中添加新標簽來更新倉庫和吊艙的版本。 Cocoapods版本正在查看回購的版本。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.