从工程中删除Cocoapods

来源:互联网 发布:南方科技大学 知乎 编辑:程序博客网 时间:2024/06/04 18:48

要从项目移除cocoaPods,按照http://blog.csdn.net/freedom2028/article/details/10244819中的四个步骤

1. 删除工程文件夹下的Podfile、Podfile.lock及Pods文件夹

2. 删除xcworkspace文件

3. 使用xcodeproj文件打开工程,删除Frameworks组下的Pods.xcconfig及libPods.a引用

4. 在工程设置中的Build Phases下删除Check Pods Manifest.lock及Copy Pods Resources



发现项目编译还是报错

ld: library not found for -l"Pods-ZXingObjC"

逐一查看project和targets的各项设置,发现project和targets中的build setting -》linking-》other librarian flags和other linker flags 中还存在-l"Pods-ZXingObjC",把这些设置删除即可编译成功


5.删除project和targets中的build setting -》linking-》other librarian flags和other linker flags 中pod设置

0 0