2017-01-17 48 views
0

我想在我的应用程序中使用CircularSlider。Swift - cocoapod圆形滑块

我发现下面的两个模块 https://github.com/taglia3/CircularSlider https://cocoapods.org/pods/HGCircularSlider

这是我做过什么

$pod init 

,这是我荚文件

# Uncomment the next line to define a global platform for your project 
# platform :ios, '9.0' 

target 'Dr.FOOD' do 
    # Comment the next line if you're not using Swift and don't want to use dynamic frameworks 
    use_frameworks! 

    # Pods for Dr.FOOD 
    pod 'Firebase' 
    pod 'Firebase/Core' 
    pod 'Firebase/Database' 
    pod 'HGCircularSlider', '~> 1.0.3' 
    pod 'CircularSlider' 

end 

,然后,我做了什么

$ pod install 
Analyzing dependencies 
Downloading dependencies 
Using CircularSlider (1.1.2) 
Using Firebase (3.11.0) 
Using FirebaseAnalytics (3.6.0) 
Using FirebaseCore (3.4.6) 
Using FirebaseDatabase (3.1.1) 
Using FirebaseInstanceID (1.0.8) 
Using GoogleInterchangeUtilities (1.2.2) 
Using GoogleSymbolUtilities (1.1.2) 
Using GoogleToolboxForMac (2.1.1) 
Using HGCircularSlider (1.0.3) 
Generating Pods project 
Integrating client project 

[!] Please close any current Xcode sessions and use `Dr.FOOD.xcworkspace` for this project from now on. 
Sending stats 
Pod installation complete! There are 5 dependencies from the Podfile and 10 total pods installed. 

我使用.xcworkspace但它仍然说 在我的代码“没有这样的模块‘HGCircularSlider’”。

难道我做错什么?

+0

清理并生成代码 –

+0

@GaneshKumar清理并生成的代码? – jlassap

+0

请停止或关闭xcode,然后安装pod – ItsMeMihir

回答

-1

这里是我做什么,当我添加一个新的吊舱,除了你做了什么了。

  • 打开工作区文件,转到项目设置页面:

enter image description here

  • 向下滚动,你会看到这一点:

enter image description here

  • 单击+按钮并添加所需的所有框架。

  • 命令+ B来构建项目。

  • 现在导入模块

+0

谢谢。它正在工作。 – jlassap

+0

@jlassap如果您认为我的答案能解答您的问题,请考虑点击该选中标记来接受它! – Sweeper

+0

它说我可以在40秒内检查..我会在稍后做!谢谢 – jlassap