它不起作用,就像这个视频中的那样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/