一、pod setup 时出现问题
1、可以在用命令pod setup --verbose
来查看他到底做了什么,如果是出现了下面的错误
error: RPC failed; curl 56 SSLRead() return error -984504 MiB/s
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
20160719163514531.jpg
二、pod 搜索不到 AFNetWorking
清了一下cocoapods本地的搜索索引缓存就行了。
rm ~/Library/Caches/CocoaPods/search_index.json
三、“cannot synthesize weak property because the current deployment target does not support weak reference”
在使用自己的pod EJCalendar的时候,当运行时报了这个错误。
这个错误本身的意思是当前项目不支持weak属性。但是我的项目中并没有写weak关键词,就很奇怪。
后面,在podfile文件中把'use_frameworks!' 加上,然后再运行,就正常了。原因在那里我现在还不清楚。