[英]After creating own cocoapods library, when pod install my pod, There is only ReplaceMe.m file
I created my own cocoapods library and push it. 我创建了自己的cocoapods库并将其推送。 But when i run
pod install
for an app, there is only ReplaceMe.m
file. 但是,当我为某个应用程序运行
pod install
,只有ReplaceMe.m
文件。 But i have changed this file with my own classes. 但是我已经用自己的类更改了此文件。 And also i can see files on github.
我也可以在github上查看文件。
platform :'ios', '8.0'
pod 'MyPod'
However, if i add git url to Podfile, Library classes exist. 但是,如果我将git url添加到Podfile,则存在库类。
platform :'ios', '8.0'
pod 'MyPod', :git => 'https://github.com/ugurcetinkaya/MyPod.git'
What should i do to solve this? 我应该怎么做才能解决这个问题?
My .podspec file: 我的.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'
I solved my problem. 我解决了我的问题。 Git version of library didn't have library classes on current release.
Git版本的库在当前版本中没有库类。 I added classes to my repo.
我在我的仓库中添加了类。 After that i updated version of my repo and my pod with adding new tag to my repo.
之后,我通过在仓库中添加新标签来更新仓库和吊舱的版本。 Cocoapods version is looking at the version of repo.
Cocoapods版本正在查看回购的版本。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.