我创建了自己的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'发布于 2016-08-01 21:53:36
我解决了我的问题。Git版本的库在当前版本中没有库类。我在我的存储库中添加了类。在那之后,我更新了我的repo和pod的版本,给我的repo添加了新的标签。Cocoapods版本正在查看repo的版本。
https://stackoverflow.com/questions/38698586
复制相似问题