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

Linking issues? #105

Closed
dmitrym0 opened this issue Nov 5, 2012 · 4 comments
Closed

Linking issues? #105

dmitrym0 opened this issue Nov 5, 2012 · 4 comments

Comments

@dmitrym0
Copy link
Contributor

dmitrym0 commented Nov 5, 2012

Hey everyone,

I added ReactiveCocoa to my iOS project but Im having issues.

Attempting to test with a canonical example:

    [RACAble(self.someProperty) subscribeNext:^(id x) {
        NSLog(@"%@",x);
    }];

I get the following:

2012-11-05 15:04:09.988 ASDF[77632:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[ACRootViewController rac_subscribableForKeyPath:onObject:]: unrecognized selector sent to instance 0x817a2d0'

It looks to me like maybe my project isn't being linked against libReactiveCocoa-iOS.a properly? Can you guys suggest anything I could try?

@jspahrsummers
Copy link
Member

iOS static libraries have to be linked with the -all_load linker flag in order for categories to be linked into the app. Adding this to the "Other Linker Flags" build setting in your project should fix the issue.

@jwilling
Copy link
Contributor

jwilling commented Nov 6, 2012

I had meant to make an issue for this a while back, but while we're on this topic I think it would be great to have an installation section in the readme that provides basic instructions, especially on the iOS side?

I can create a new issue if you'd like.

@jspahrsummers
Copy link
Member

@jwilling Yeah, that'd be great. 👍

@dmitrym0
Copy link
Contributor Author

dmitrym0 commented Nov 6, 2012

Thank you gentlemen.

I actually tried -all_load but it didn't take. Damn Xcode. Having JRSwizzle live outside of the core ReactiveCocoa but be a dependency is a bit of a pain.

andersio pushed a commit that referenced this issue Sep 22, 2016
Add completed and started signals to Action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants