zoukankan      html  css  js  c++  java
  • 【转】pods 使用中出现的各种问题总结

    转载地址: http://www.jianshu.com/p/179b44f0bdf1

    pod install时出现

    xcodeproj 'path/to/Project.xcodeproj'

    Unable to find a specification for `xxxxx (~> 1.x.x)` depended upon by Podfile.

    需要把当前Pod的目录清理一下就行了。在终端执行以下命令:

    pod repo remove master

    pod setup

    setup成功后执行install或update即可。

    遇到pod install或者pod update长时间卡在Updating local specs repositories

    常见的解决方式是跳过更新cocoapods的spec仓库

    pod install--verbose--no-repo-update

    pod update--verbose--no-repo-update

    Podfile文件格式

    platform :ios, '7.0'

    use_frameworks!

    target 'xxxxx' do

    pod 'AFNetworking', '~> 3.0.0'

    pod 'BeeCloud/Alipay'

    pod 'BeeCloud/Wx'

    pod 'BaiduMapKit'

    pod 'HYBNetworking', '3.0.0'

    pod 'UMengAnalytics'

    pod 'UMengSocialCOM', '~> 5.2.1'

    pod 'XMNPhotoPickerFramework'

    pod 'JElasticPullToRefresh'

    end

    Pod更新

    讲下我的流程。。

    1、安装brew http://brew.sh

    2、brew install ruby  安装ruby

    3、sudo gem install cocoapods --pre 更新pod



    作者:行走的风车
    链接:http://www.jianshu.com/p/179b44f0bdf1
    來源:简书
    著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
  • 相关阅读:
    Css进阶
    Css布局
    遇到的小问题
    MySQL 8.017连接Navicat中出现的问题
    ConcurrentHashMap图文源码解析
    HashMap图文源码解析
    接口和抽象类
    dependencies 和 devDependencies
    2020.7.7第二天
    2020.7.6第一天
  • 原文地址:https://www.cnblogs.com/csshaw/p/7215735.html
Copyright © 2011-2022 走看看