cocoapod 遇到的一些问题

来源:互联网 发布:重装开票软件 编辑:程序博客网 时间:2024/05/20 20:02

从github上下载的代码,直接用workspace打开经常会有错误,以下是解决方法。

比如出现 The sandbox is not sync with the Podfile.lock

解决方案是删除workspace,重新运行pod install,之后会有新的workspace生成,打开后clean即可。



有时会出现The dependency `AFNetworking ` is not used in any concrete target

编辑Podfile如下

platform :ios, '8.0'use_frameworks!target 'YourApp' do  pod 'AFNetworking', '~> 1.0'  end

其中use_frameworks!是只有当报错时才加上。

重新install即可。


0 0
原创粉丝点击