Each time I met the same situation, below actions were decided:
1. clean your project and close Xcode.
2. Remove pod-related files (Podfile.lock, Pods, ProjectName.xcworkspace)
3. modify the resulting file
4.pod update (install)
or doing the following shell (2,3,4) may help you.
#!/bin/sh
source share