0

视频中的所有内容都无法正常工作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 和其他测试的东西,我只是删除了它们是导致问题的原因吗?

4

3 回答 3

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
于 2017-06-26T12:36:15.997 回答
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

它会帮助你。

于 2017-05-25T14:30:52.043 回答
0

在 Podfile 中写下:

pod 'SVProgressHUD', :git => 'https://github.com/SVProgressHUD/SVProgressHUD.git'
于 2019-07-17T15:33:06.200 回答