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

processDictionaryFromObject doesn't work in unit test target #23

Open
aryaxt opened this issue Mar 17, 2015 · 2 comments
Open

processDictionaryFromObject doesn't work in unit test target #23

aryaxt opened this issue Mar 17, 2015 · 2 comments
Assignees
Labels

Comments

@aryaxt
Copy link
Owner

aryaxt commented Mar 17, 2015

Because the current bundle is not the main bundle, but it's the unit test bundle.
Try using runtime api instead

- (id)processDictionaryFromObject:(NSObject *)object {

if ([NSBundle mainBundle] != [NSBundle bundleForClass:object.class] && [object class] != [NSArray class])
    {
        return object;
    }
@bestimmaa
Copy link

Woah, ran into the same issue with the recent cocoapods version, how can this be?

@bestimmaa
Copy link

Okay, the code is not merged, nevermind... will test the approach proposed in #34

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

2 participants