使用cocapods报错 [!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes

从github上下载的工程大部分都使用了cocapods,在install的时候可能会报错。

报错原因:

1、不要使用文本编辑去编辑Podfile文件,使用Xcode编辑,或者使用终端敲命令去编辑。

2、Podfile 的内容语法格式有问题

记录下修改的步骤方便查找。
1. cd 进入到工程目录

2.vim podfile 。进入到podfile文件中,对podfile文件进行编辑

3.按  i  键,进入编辑状态

4. 在pod ‘ ’ v2.0.2 最上面添加一行命令   target ‘xxxxx‘ do  , xxxxx代表工程的名字。

5.在pod ‘ ’ v2.0.2 最下面添加一行命令    end

6.按键ESC,输入命令 :wq  ,保存并退出

7. 再  pod install  即可。




时间: 2024-07-28 17:38:58

使用cocapods报错 [!] Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes的相关文章

Android Studio中Android Support Library升级到 23.0.0 报错!

Android Support Library升级到 23.0.0  报错解决方案 不得不说,真能折腾!将Android Studio中SDK下的 Android Support Library 升级到了23.0.0,结果倒好了,创建项目出问题了,还比较奇葩: 卧槽你大爷!尼玛还能不能好好玩耍了.各种卸载重装,就差重装系统了. 后来在神器stackoverflow中找到了这么一篇: http://stackoverflow.com/questions/32092511/resource-erro

php5.6,Ajax报错,Warning: Cannot modify header information - headers already sent in Unknown on line 0

php5.6ajax报错 Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unkno

GitHub 上下载代码运行报错 :'The sandbox is not sync with the Podfile.lock\'

问题描述: github下载的Demo,很多时候使用到CocoaPods,有的时候因为依赖关系或者版本问题不能编译运行.出现例如The sandbox is not sync with the Podfile.lock问题时候,如下所示 diff: /../Podfile.lock: No such file or directory diff: Manifest.lock: No such file or directory error: The sandbox is not in sync

mysql登录报错ERROR 1045 (28000的解决方法

问题描述: mysql -u root -p命令登录MySQL,提示ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 解决办法: information_schema 库的USER_PRIVILEGES 表中 没有给 'root'@'localhost' 赋权. mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' ID

Appium1.6启动ios9.3报错Original error: Sdk '9.3.5' was not in list of simctl sdks

问题: 使用Apppium1.6启动ios9.3报错Original error: Sdk '9.3.5' was not in list of simctl sdks 我的启动配置如下 { "platformName": "ios", "platformVersion": "9.3.5", "bundleId": "com.wuba.zhuanzhuan", "app&quo

hive 未初始化元数据库报错

启动hive-metastore和hive-server2 用beeline连接hive报错 [[email protected] hive]# beeline Beeline version 0.13.1-cdh5.3.0 by Apache Hive beeline> !connect jdbc:hive2://172.16.145.114:10000 hive scan complete in 3ms Connecting to jdbc:hive2://172.16.145.114:10

Android打包报错 Export aborted because fatal lint errors were found. These are listed in the Lint View

打包时报如下错误: Export aborted because fatal lint errors were found. These are listed in the Lint View. Either fix these before running Export again,or turn off"Run full error check when exporting app" in the Android > Lint Error Checking preferenc

CocoaPods 添加第三方库报错

1.终端报错:The dependency MBProgressHUD (~> 0.9.2) is not used in any concrete target. 2.原因:CocoaPods升级到最新版本(包括一些高版本),Podfile文件的内容必须明确指出所用第三方库的targetName. 3.报错分析:低版本和高版本写法不一样. 低版本: platform :ios, '8.0'pod 'MBProgressHUD', '~> 0.9.2' 高版本: platform :ios,

phpmyadmin登录报错外加linux下修改mysql登录密码

1.centos6.5中修改mysql的登录密码. [[email protected] ~]# mysql -u root -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 报错信息, 解决办法: [[email protected] ~]# /etc/init.d/mysqld stop 停止 mysqld: