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

Update CocoaPods with the latest commit #20

Closed
paweljankowski opened this issue Feb 2, 2014 · 2 comments
Closed

Update CocoaPods with the latest commit #20

paweljankowski opened this issue Feb 2, 2014 · 2 comments

Comments

@paweljankowski
Copy link

I had a problem with running KZPropertyMapper on iPhone 5s runtime. This issue is related to #15 .

@rbarbera
Copy link

If you install KZPropertyMapper directly from cocapods with

pod "KZPropertyMapper", "~> 2.0"

You don't get the master branch installed, but an older one. You can take a look at the end of KZPropertyMapper.m and you can see the old implementation:

+ (id)boxValueAsSelectorOnTarget:(id)target value:(id)value params:(NSArray *)params __unused
{
  AssertTrueOrReturnNil(params.count == 1);
  SEL selector = NSSelectorFromString([params objectAtIndex:0]);

  AssertTrueOrReturnNil([target respondsToSelector:selector]);
  id (*objc_msgSendTyped)(id, SEL, id) = (void *)objc_msgSend;
  return objc_msgSendTyped(target, selector, value);
}

This is firing a BAD_ACCESS assertion each time you try to use

KZCall(someMethod:withPropertyName:, property)

@krzysztofzablocki
Copy link
Owner

Done

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