Modified Pod not getting compiled

人走茶凉 提交于 2019-12-13 20:05:30

问题


The problem I am facing is: modified pod is not being compiled by Xcode.

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.

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.

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

Any help is appreciated.


回答1:


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

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.

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



来源:https://stackoverflow.com/questions/35593570/modified-pod-not-getting-compiled

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!