Cocoa pods issue after modify Pods file

好久不见. 提交于 2019-12-01 18:07:38

Replace the 'curly quotes' around the platform with single quotes:

platform :ios, '7.0'
Luca Corti

Assuming that's the issue and you have installed cocoapods via gem:

gem update --system

updates gem itself

gem update cocoapods

updates cocoapods.

Just had and then resolved this issue. Using TextEdit on Mac the quotes are 'smart quotes' (as the other answers note.). However, I resolved this issue not by just turning off smart quotes, but by changing the document type from Rich Text to Plaintext, then deleting the original file and rebuilding it from scratch.

$ pod install worked fine for me after that.

Always open podfile in xcode, Otherwise quotes will changed.

platform :ios, '7.0'

After many variations, i simply tried:

platform :ios, "7.1"

and my particular cocoapods troubles went away.

Smart quotes options is by default on in TextEditor. Open podfile in vi and just place single quote before and after pod spec, it would work.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!