修改后的Pod无法编译 [英] Modified Pod not getting compiled

查看:76
本文介绍了修改后的Pod无法编译的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我面临的问题是:Xcode不会编译经过修改的pod。

我了解到您不应该修改在已安装的Pod中添加代码,而是分叉存储库,修改代码并将其用作Pod。

I learnt that you shouldn't modify the code in an installed Pod, instead fork the repository, modify the code and use that as a Pod.

我做到了,并用我的提交版本将Pod安装回去。我看到了我所做的代码更改。

但是,Xcode尚未编译Pod,并且新符号 NOT 正在解析。

I did that and installed the Pod back with my commit version. I see the code changes that I made.
But, the Pod is not being compiled by Xcode and new symbols are NOT being resolved.

我不确定这里缺少什么。我的印象是Xcode自动在pod中编译.m文件并链接库。

I am not sure what am I missing here. My impression was Xcode automatically compiles the .m files in pod and links the library.

感谢您的帮助。

推荐答案

我设法发现Pod的源文件和静态库(.a)缓存在以下路径中:

I managed to find out that my Pod's source files and static library (.a) were cached in this path:

/ Users /'<'username'>'/ Library / Developer / Xcode / DerivedData / Example-gdaxkniovwphxbdlndbmlfqn / Build / Products / Debug-iphoneos

/Users/'<'username'>'/Library/Developer/Xcode/DerivedData/Example-gdaxkniovwphxbdlndbmlfqn/Build/Products/Debug-iphoneos

目标服务器中也提到了此路径:构建设置>搜索路径>框架搜索路径。

我删除了那些缓存的文件,并且Pod为用新符号重新构建。

This path is also mentioned in your Target's : "Build Settings"> "Search Paths" > "Framework Search Paths".
I removed those cached files and my Pod was re-built with the new symbols.

此处正在讨论类似的问题:
本地CocoaPods pod的编译错误

A similar issue is being discussed here: Compiling error with local CocoaPods pod

这篇关于修改后的Pod无法编译的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆