zoukankan      html  css  js  c++  java
  • 从工程中删除Cocoapods

    up vote602down voteaccepted

    Removing CocoaPods from a project is possible, but not currently automated by the CLI. First thing, if the only issue you have is not being able to use an xcworkspace you can use CocoaPods with just xcodeprojs by using the --no-integrate flag which will produce the Pods.xcodeproj but not a workspace. Then you can add this xcodeproj as a subproject to your main xcodeproj.

    If you really want to remove all CocoaPods integration you need to do a few things:

    NOTE editing some of these things if done incorrectly could break your main project. I strongly encourage you to check your projects into source control just in case. Also these instructions are for CocoaPods version 0.39.0, they could change with new versions.

    1. Delete the standalone files (Podfile Podfile.lock and your Pods directory)
    2. Delete the generated xcworkspace
    3. Open your xcodeproj file, delete the references to Pods.xcconfig and libPods.a (in the Frameworks group)
    4. Under your Build Phases delete the Copy Pods ResourcesEmbed Pods Frameworks and Check Pods Manifest.lock phases.
    5. This may seem obvious but you'll need to integrate the 3rd party libraries some other way or remove references to them from your code.

    After those steps you should be set with a single xcodeproj that existed before you integrated CocoaPods. If I missed anything let me know and I will edit this.

    Also we're always looking for suggestions for how to improve CocoaPods so if you have an issues please submit them in our issue tracker so we can come up with a way to fix them!

    EDIT

    As shown by Jack Wu in the comments there is a third party CocoaPods plugin that can automate these steps for you. It can be found here. Note that it is a third party plugin and might not always be updated when CocoaPods is. Also note that it is made by a CocoaPods core team member so that problem won't be a problem.

    http://blog.csdn.net/jymn_chen/article/details/19213601

  • 相关阅读:
    html数据属性 data-*
    切片,索引,基本数据类型
    计算机是什么
    使用CSS3和jQuery可伸缩的搜索条
    一个按钮判断两次事件,切换图标
    Javascript(jQuery)中绑定页面上所有按钮点击事件的几种方式
    jq向上无缝滚动
    js避免全局污染
    闭包:让外部函数能访问函数内的变量,让局部变量长期贮存在内存中
    position绝对剧中
  • 原文地址:https://www.cnblogs.com/willbin/p/5437705.html
Copyright © 2011-2022 走看看