Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RACObserve Expected ';' after expression #22

Closed
y0unghe opened this issue Oct 28, 2016 · 6 comments
Closed

RACObserve Expected ';' after expression #22

y0unghe opened this issue Oct 28, 2016 · 6 comments
Labels

Comments

@y0unghe
Copy link

y0unghe commented Oct 28, 2016

So I am trying to create a new email signal, but getting error: "Expected ';' after expression".

- (instancetype)init {
    self = [super init];
    if (self) {
        RACSignal *emailSignal = RACObserve(self, email);
    }
    return self;
}
@erikprice
Copy link
Contributor

erikprice commented Oct 28, 2016

This code works fine for me. Did you import ReactiveObjC.h?

@y0unghe
Copy link
Author

y0unghe commented Oct 28, 2016

@erikprice Yes, I did.

I don't know why, but this worked:

RAC(self.viewModel, email) = [self.loginField rac_textSignal];

@mdiep mdiep closed this as completed Nov 1, 2016
@rsenerol
Copy link

rsenerol commented Nov 4, 2016

Anytime I use RACObserve macro, I'm also getting the error: "Expected ';' after expression". My Xcode version is 7.3.1 and ReactiveObjC v1.0.1 installed using cocoapod.

Seems like there is something going on in NSObject+RACPropertySubscribing.h - line 63

screen shot 2016-11-03 at 8 45 28 pm

@mdiep
Copy link
Contributor

mdiep commented Nov 4, 2016

Have you tried using Xcode 8? I think there may have been a change that was required.

@rsenerol
Copy link

rsenerol commented Nov 4, 2016

I have not. I ended up using ReactiveCocoa v2.5 for now. I will come back on that once I update Xcode. Thanks!

@mxl123
Copy link

mxl123 commented Jul 2, 2018

@ikesyo Why did you close this question and I did not see any solution?

byohay pushed a commit to byohay/ReactiveObjC that referenced this issue Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants