cocoapods安装第三方框架失败.

来源:互联网 发布:linux 禁止ping 编辑:程序博客网 时间:2024/05/18 02:18

cocoapods安装第三方框架失败

错误代码:[!]Invalid’podfile’ file:syntax error,unexpected keyword_end,expecting endof input

原来没有错误,就是最近一段时间安装不上了为什么呢?

因为cocoapods公司对Podfile文件的格式要求更严格了,以前我们只需要写下面一段断码就行了.

pod 'RongCloudIMKitWithVoip', '~> 2.6.0'

这样安装的时候就会出现[!]Invalid’podfile’ file:syntax error,unexpected keyword_end,expecting endof input错误代码

改成下面格式就行了

platform :ios, '7.0'target 'WeiXinSwift’ do   pod 'RongCloudIMKitWithVoip', '~> 2.6.0'    end

platform :ios, ‘7.0’ //项目适配系统版本高

target ‘WeiXinSwift’ do //项目名称

pod ‘RongCloudIMKitWithVoip’, ‘~> 2.6.0’ //三方框架 下面可以写多个

1 0
原创粉丝点击