我正在做一个在线Objective-C课程,我遇到了以下问题:我似乎已经通过终端安装了CocoaPods。
当我去安装CocoaPods时,这个文本显示在终端上:"Successfully cocoapods-0.39.0 Parsing documentation for cocoapods-0.39.01gem installed“
然后,我继续执行下面的示例:
1)我在Xcode的'podfile‘中输入了: pod 'SAMGradientView’。
2)重新打开终端。
3)然后我在终端中输入"cd“,然后将示例Xcode项目文件拖到终端。然后我按了enter,什么也没发生。
发布于 2016-04-24 01:45:01
编辑podfile后,需要在终端下发pod install命令来安装pod。
此link提供了安装cocoapod和集成xcode工程的详细说明。
发布于 2016-04-29 14:09:30
请按照以下步骤安装可可豆荚到您的项目。
//if cocoa-pods is not installed in your system else skip first step
Step 1.$ sudo gem install cocoapods
Step 2.change directory to xcode project in terminal
Step 3.$ pod init
Step 4.$ open -a Xcode Podfile
Step 5.insert your pod library( pod 'SAMGradientView') into opened pod file and save this file.
Step 7. $pod install (if pod installation first time in your project)
or $pod update (to update existing pods)https://stackoverflow.com/questions/36813602
复制相似问题