OCMapper icon indicating copy to clipboard operation
OCMapper copied to clipboard

processDictionaryFromObject doesn't work in unit test target

Open aryaxt opened this issue 9 years ago • 2 comments

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;
    }

aryaxt avatar Mar 17 '15 16:03 aryaxt

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

bestimmaa avatar Jun 30 '16 08:06 bestimmaa

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

bestimmaa avatar Jun 30 '16 13:06 bestimmaa