xcode - Error using Pod Install command on Podfile in Terminal -
i have installed cocoapods, , created podfile using atom containing following lines:
pod ‘parse’, ‘~> 1.7.1′ pod ‘parseui’, ‘~> 1.1.3′
upon placing file xcode project root directory, , running 'pod install' in terminal. following shown:
[!] podfile has had smart quotes sanitised. avoid issues in future, should not use textedit editing it. if not using textedit, should turn off smart quotes in editor of choice.
/library/ruby/gems/2.0.0/gems/cocoapods-core-0.38.2/lib/cocoapods-core/standard_error.rb:87:in `message': incompatible character encodings: ascii-8bit , utf-8 (encoding::compatibilityerror) /library/ruby/gems/2.0.0/gems/claide-0.9.1/lib/claide/command.rb:367:in `handle_exception' /library/ruby/gems/2.0.0/gems/claide-0.9.1/lib/claide/command.rb:315:in `rescue in run' /library/ruby/gems/2.0.0/gems/claide-0.9.1/lib/claide/command.rb:303:in `run' /library/ruby/gems/2.0.0/gems/cocoapods-0.38.2/lib/cocoapods/command.rb:48:in `run' /library/ruby/gems/2.0.0/gems/cocoapods-0.38.2/bin/pod:44:in `<top (required)>' /usr/bin/pod:23:in `load' /usr/bin/pod:23:in `<main>'
i'm unsure have done incorrectly, if give me advice - appreciated. thank you.
you shouldn’t use textedit edit pod file because textedit likes replace standard quotes more graphically appealing quotes. can cause cocoapods confused , display errors, it’s best use xcode or programming text editor.
textedit:
using textedit give following,
pod ‘parse’, ‘~> 1.7.1′ //notice quotes
to turn off smart quotes in textedit, goto
textedit > preferences > new document > options
xcode:
to correct quotes should use xcode when opening podfie:
pod 'parse', '~> 1.7.1'
terminal commands open using xcode app:
$ touch podfile //or $ cd <parentdirectory of podfile> $ open -a xcode podfile
Comments
Post a Comment