1、 dirnamewhich pod
命令查看CocoaPods的安装路径,然后将GET_PATH改为:搜索到的路径
2、
CocoaPods升级1.5.3
sudo gem install -n /usr/local/bin cocoapods -v 1.5.3
3、使用
pod --version
pod search xx
pod 'xx'
pod init
open Podfile
pod install
eg:
use_frameworks!
platform :ios, '10.0'
target 'nRFMeshProvision_Example' do
pod 'SwiftLint'
pod 'nRFMeshProvision', :path => '../'
target 'nRFMeshProvision_Tests' do
inherit! :search_paths
end
end