2017-05-25 22 views
0

其沒有工作做的一切。這部影片https://www.youtube.com/watch?v=ZpK5KQdn95wSVProgressHUD不工作

我得到了模塊SVProgressHUD沒有找到

這裏是我的Podfile

# Uncomment the next line to define a global platform for your project 
platform :ios, '9.0' 

target 'Bachelmatt Garage' do 
    # Comment the next line if you're not using Swift and don't want to 
use dynamic frameworks 
    use_frameworks! 
    pod 'SVProgressHUD'; 
    end 

有人可以幫我的錯誤請?在那裏還有UITest和其他測試在那裏我只是刪除它們是導致問題?

+0

「不工作」 是一個小廣闊。你最主要的問題是什麼?添加吊艙?你說的是什麼「問題」? –

+0

我收到Module SVProgressHUD沒有找到的錯誤 – Zarkex

+0

大多數退出並重新啓動Xcode修復了這個問題 –

回答

0

嘗試安裝下面的代碼:

target 'MyApp' do 
    pod 'SVProgressHUD', '~> 2.1' 
end 

在您的文件

# Uncomment the next line to define a global platform for your project 
platform :ios, '9.0' 

target 'Bachelmatt Garage' do 
    # Comment the next line if you're not using Swift and don't want to 
use dynamic frameworks 
    use_frameworks! 
    pod 'SVProgressHUD', '~> 2.1' 
    end 

編輯

代替以上,做下面的代碼:

source 'https://github.com/CocoaPods/Specs.git' 
platform :ios, ‘9.0’ 
use_frameworks! 

target ‘YouMe’ do 
pod 'SVProgressHUD', '~> 2.1' 
end 

它會幫助你。

+0

[!]無效的'Podfile'文件:未定義的局部變量或方法'框架'爲#。 – Zarkex

+0

仍然無法正常工作。 – Zarkex

+0

還在嗎?真的需要幫助還是不能在標籤式應用程序中工作? – Zarkex

0

這podfile爲我工作:

use_frameworks! 
target 'appName' do 
      pod 'SVProgressHUD', '~> 2.1.2' 
      pod 'Alamofire', '~> 4.0' 
      pod 'FileKit', '~> 4.0.1' 
target 'appNameShareExtension' do 
     inherit! :search_paths # Because else we get the "conflicting names" 
end 
end