swift - SVProgressHUD 不工作

标签 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 和其他测试的东西,我只是删除了它们,这是否导致了问题?

最佳答案

尝试安装以下代码:

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

这会对你有帮助。

关于swift - SVProgressHUD 不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44182917/

相关文章:

ios - 在 Swift 3 上运行后台线程

cocoapods - Podspec 中的环境变量

ios - Pod 版本控制深度

ios - 添加新的 Root View Controller

Swift Mirror API - 对象符合哪些协议(protocol)

objective-c - 我的 Cocoa 应用程序如何收到 NSScreen 分辨率更改的通知?

xcode - 我找不到 podfile

swift - 从 AppDelegate 传递对象到 ViewController

ios - 使用 swift 3 中的计时器自动更改 UIPageViewController 中的页面?

swift - 删除 URL 不起作用 swift 3