SVProgressHUD无法正常工作

时间:2017-05-25 14:21:35

标签: swift swift3 cocoapods svprogresshud

它无法正常完成此视频https://www.youtube.com/watch?v=ZpK5KQdn95w

中的所有操作

我收到模块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和其他测试的东西我只是删除它们导致问题?

3 个答案:

答案 0 :(得分: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

它会帮助你。

答案 1 :(得分: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

答案 2 :(得分:0)

在Podfile中写下:

pod 'SVProgressHUD', :git => 'https://github.com/SVProgressHUD/SVProgressHUD.git'