我将项目添加到github repo。我在我的项目中使用过cocoapods。 我使用了AFNetworking和Twilio cocoapods。
我下载了我在github中添加的项目来测试构建。在未声明的标识符等cocoapods上出现错误。
任何人都可以告诉我如何在github中添加带有cocoapods的ios项目..
答案 0 :(得分:0)
在处理cocoapods和Git时,有两个不同的“阵营”。一些开发人员检查Pods目录,一些只检查Podfile和Podfile.lock。我只将Podfile和Podfile.lock放在Git中。
假设你已经安装了cocoa pods gem,你应该能够克隆你的git repo并运行pod install
。
除了Podfile和Podfile.lock之外,我还会检查生成的.xcworkspace文件。我在.gitignore中使用以下条目:
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.xcuserstate
Pods/