Skip to content
This repository has been archived by the owner on Nov 25, 2019. It is now read-only.

Too many arguments to function call, expected 0, have 3 #83

Open
tangyumeng opened this issue Nov 15, 2014 · 2 comments
Open

Too many arguments to function call, expected 0, have 3 #83

tangyumeng opened this issue Nov 15, 2014 · 2 comments

Comments

@tangyumeng
Copy link

In the TestSources Folder ,in issue.m file xcode6 throw an error like this http://tangyumengblog.qiniudn.com/error.png . How can I solve this .

@mgod
Copy link
Contributor

mgod commented Nov 20, 2014

As a quick fix, you can set ENABLE_STRICT_OBJC_MSGSEND = NO in your build settings

@mgod
Copy link
Contributor

mgod commented Nov 25, 2014

After some more looking, changing the setting only works if you are not building for arm64. If you want to build for arm64, you need to change the has_many_imp and belongs_to_imp to cast objc_msgSend. Something like this:

- (ARLazyFetcher *)accessor{\
        NSString *class_name = @""#relative_class"";\
        ARLazyFetcher* (*action)(id, SEL, NSString*) = (ARLazyFetcher* (*)(id, SEL, NSString*)) objc_msgSend;\
        return action(self, sel_getUid("hasManyRecords:"), class_name);\
    }\

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants