Ank*_*kit 8 objective-c ios cocoapods reactive-cocoa
我只是pod为这个新项目安装了这个Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '7.0'
def import_pods
pod 'Mantle'
pod 'LBBlurredImage'
pod 'TSMessages'
pod 'ReactiveCocoa'
end
target 'WeatherJoy2' do
import_pods
link_with 'WeatherJoy2'
end
Run Code Online (Sandbox Code Playgroud)
pod安装成功但现在在构建项目时遇到以下错误:
/Users/ankit/Documents/WeatherJoy2/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+RACKVOWrapper.m:49:3: Unknown type name 'rac_propertyAttributes'; did you mean 'mtl_propertyAttributes'?
/Users/ankit/Documents/WeatherJoy2/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+RACKVOWrapper.m:49:40: Implicit declaration of function 'rac_copyPropertyAttributes' is invalid in C99
/Users/ankit/Documents/WeatherJoy2/Pods/ReactiveCocoa/ReactiveCocoa/NSObject+RACKVOWrapper.m:49:27: Incompatible integer to pointer conversion initializing 'mtl_propertyAttributes *' with an expression of type 'int'
Run Code Online (Sandbox Code Playgroud)
项目中没有别的东西,这是一个新项目.我在xcode 6.2和OSX 10.9.5上
小智 3
当我一起使用 Mantle 和 ReactiveCocoa 时,我遇到了同样的问题。这似乎是由于两个 Pod 都有一个EXTRuntimeExtensions.hheader 造成的,这使得 ReactiveCocoa 导入了不兼容的 Mantle 版本的 header(带有mtl_vsrac_函数名称前缀)。
#import "EXTRuntimeExtensions.h"就我而言,我通过将 ReactiveCocoa pod 中每次出现的替换为#import "../Objective-C/extobjc/EXTRuntimeExtensions.h"
| 归档时间: |
|
| 查看次数: |
862 次 |
| 最近记录: |