加载.xib文件时,Cocoapod编译失败

aqa*_*cha 3 objective-c ios cocoapods

我把它推到了行李箱里.然后我对我自己的项目进行了"pod install",下载了所有文件(我可以在我的项目中从Pods确认).但是它没有编译,它给了我这个错误

"Unable to run command 'StripNIB ABPhotoView.nib' - this target might include its own product."
Run Code Online (Sandbox Code Playgroud)

aqa*_*cha 11

找到了解决方案.请遵循以下

而不是在s.source_files中添加对文件的引用,我把它放在s.resources中,如下所示

s.resources = ["images/*.png","classes/MyView.xib"]

有关详细信息,请访问https://github.com/bennyguitar/CollapseClick/issues/14