Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>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 <code>xcworkspace</code> you can use CocoaPods with just <code>xcodeproj</code>s by using the <a href="http://docs.cocoapods.org/commands.html#pod_install"><code>--no-integrate</code></a> flag which will produce the <code>Pods.xcodeproj</code> but not a workspace. Then you can add this <code>xcodeproj</code> as a subproject to your main <code>xcodeproj</code>.</p> <p>If you really want to remove all CocoaPods integration you need to do a few things:</p> <p><strong>NOTE</strong> 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 <code>0.39.0</code>, they could change with new versions.</p> <ol> <li>Delete the standalone files (<code>Podfile</code> <code>Podfile.lock</code> and your <code>Pods</code> directory)</li> <li>Delete the generated <code>xcworkspace</code></li> <li>Open your <code>xcodeproj</code> file, delete the references to <code>Pods.xcconfig</code> and <code>libPods.a</code> (in the <code>Frameworks</code> group)</li> <li>Under your <code>Build Phases</code> delete the <code>Copy Pods Resources</code>, <code>Embed Pods Frameworks</code> and <code>Check Pods Manifest.lock</code> phases.</li> <li>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.</li> </ol> <p>After those steps you should be set with a single <code>xcodeproj</code> that existed before you integrated CocoaPods. If I missed anything let me know and I will edit this.</p> <p>Also we're always looking for suggestions for how to improve CocoaPods so if you have an issues please submit them in our <a href="https://github.com/cocoapods/cocoapods">issue tracker</a> so we can come up with a way to fix them!</p> <p><strong>EDIT</strong></p> <p>As <a href="https://stackoverflow.com/questions/16427421/how-to-remove-cocoapods-from-a-project/16427883?noredirect=1#comment42502727_16427883">shown</a> by Jack Wu in the comments there is a third party CocoaPods plugin that can automate these steps for you. It can be found <a href="https://github.com/kylef/cocoapods-deintegrate">here</a>. 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.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload