它不起作用,就像这个视频中一样 https://www.youtube.com/watch?v=ZpK5KQdn95w
我收到模块SVProgressHUD未找到的错误
这是我的豆荚文件
# 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
它会帮助你。
这个 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
在 Podfile 中写下这个:
pod 'SVProgressHUD', :git => 'https://github.com/SVProgressHUD/SVProgressHUD.git'