记录使用Cocoapods管理RAC报错解决方法

2017-04-19  本文已影响63人  qiongyong

环境:Xcode8.2.1 ReactiveCocoa 4.0.2-alpha.1

前言:很久没有使用RAC了,今天使用Cocoapods管理RAC,结果报了一大堆错误❌

Podfile文件,未将 use_frameworks!打开所以报了错误1

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'RACDemo' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
   use_frameworks!

#因为是OC项目,所有最好指定版本,现在RAC默认是5以后版本了,差别太大
  pod 'ReactiveCocoa', '~> 4.0.2-alpha.1'

end
跨项目提示
target -> build setting
User Header Search Paths 添加
key: ${SRCROOT} 将value改为: recursive
屏幕快照 2015-12-30 10.46.08.png
上一篇 下一篇

猜你喜欢

热点阅读