2016-08-01 91 views
1

我創建了自己的cocoapods庫並將其推送。但是,當我運行一個應用程序pod install,只有ReplaceMe.m文件。但我已經用自己的類改變了這個文件。而且我還可以在github上看到文件。創建自己的cocoapods庫後,當pod安裝我的pod時,只有ReplaceMe.m文件

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' => '[email protected]' } 
    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' 
+1

發佈您的pod規範文件! – rckoenes

+0

我加入了我的問題 – ugur

回答

2

我解決我的問題。當前版本的Git版本的庫沒有庫類。我添加了類到我的回購。之後,我更新了我的回購版和我的回收站,並在我的回購中添加了新的標籤。 Cocoapods版本正在查看回購版本。

相關問題