Newbie here, trying to install ReactiveCocoa 2.2.4 with CocoaPods in a project and throwing errors at runtime. I used this podspec on github . Here is my code -
MainViewController.m @interface has:
@property (strong, nonatomic) NSString *testString;
MainViewController.m viewDidLoad () has:
self.testString = @"hello";
[RACObserve(self, testString) subscribeNext:^(NSString *newString) {
NSLog(@"%@", newString);
}]
self.testString = @"yellow";
This is a runtime error that I get when it seems that "I" is getting a selector sent to it instead of "testString":
exception 'NSInvalidArgumentException', reason: '- [MainViewController rac_valuesForKeyPath: observer:]: unrecognized selector sent to the instance
FWIW, ReactiveCocoa CocoaPods xcode, youtube vid - , podspec, .
:
- Xcode 5
- In Target: General: Linked Libraries and Frameworks: libPods.a( - , , ReactiveCocoa, ).
- Target: Build Settings: : -ObjC -all_load ( , , , , ).
- Target: Build: : ( , CocoaPods):
"$ {PODS_ROOT}/", "$ {PODS_ROOT}//ReactiveCocoa", "$ {PODS_ROOT}//ReactiveCocoa/ReactiveCocoa"
- : : : nada ( - ?)
- In Target: Build Phases: Link Binary With Libraries:: libPods.a( - , , ReactiveCocoa, )
!