繁体   English   中英

创建自己的cocoapods库之后,在pod安装我的pod时,只有ReplaceMe.m文件

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM