运行“pod install”时出错

时间:2016-03-31 19:35:46

标签: ios cocoapods

运行pod安装时出现错误:

.env

我的Podfile中没有任何智能引号(至少我看不到它们)。在2016-03-31 14:33:34.073 ruby[45438:513490] CFPropertyListCreateFromXMLData(): Old-style plist parser: missing semicolon in dictionary on line 5860. Parsing will be abandoned. Break on _CFPropertyListMissingSemicolon to debug. /Users/gabrielafonso/.rvm/gems/ruby-2.2.2/gems/cocoapods-0.39.0/lib/cocoapods/user_interface/error_report.rb:13:in `report': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError) from /Users/gabrielafonso/.rvm/gems/ruby-2.2.2/gems/cocoapods-0.39.0/lib/cocoapods/command.rb:61:in `report_error' from /Users/gabrielafonso/.rvm/gems/ruby-2.2.2/gems/claide-0.9.1/lib/claide/command.rb:374:in `handle_exception' from /Users/gabrielafonso/.rvm/gems/ruby-2.2.2/gems/claide-0.9.1/lib/claide/command.rb:315:in `rescue in run' from /Users/gabrielafonso/.rvm/gems/ruby-2.2.2/gems/claide-0.9.1/lib/claide/command.rb:303:in `run' from /Users/gabrielafonso/.rvm/gems/ruby-2.2.2/gems/cocoapods-0.39.0/lib/cocoapods/command.rb:47:in `run' from /Users/gabrielafonso/.rvm/gems/ruby-2.2.2/gems/cocoapods-0.39.0/bin/pod:44:in `<top (required)>' from /Users/gabrielafonso/.rvm/gems/ruby-2.2.2/bin/pod:23:in `load' from /Users/gabrielafonso/.rvm/gems/ruby-2.2.2/bin/pod:23:in `<main>' from /Users/gabrielafonso/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `eval' from /Users/gabrielafonso/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `<main>' 之后发生在我身上。 有人知道这里会发生什么吗?

我正在使用git merge

正如@Jelly建议我添加报告文件:

cocoapods 0.39.0

2 个答案:

答案 0 :(得分:0)

通常此问题是由Podfile中的错误引号字符引起的。确保使用正确的引号(只需删除旧的引号并从键盘再次写入它们就可以了)。还要确保打开并以ASCII格式保存文件。如果您使用xCode,这应该不是问题,但可能是另一个文本编辑器。

答案 1 :(得分:0)

所以,问题是这个文件:

MyProject.xcodeproj/project.pbxproj 

已损坏。我更新了它,现在它可以工作。