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

EZFormValueTransformer.m:63:33: Implicit conversion from nullable pointer 'id _Nullable' to non-nullable pointer type 'id _Nonnull' #82

Open
dong opened this issue Sep 30, 2015 · 2 comments

Comments

@dong
Copy link

dong commented Sep 30, 2015

Demo projects compile failed at : EZFormValueTransformer.m:63:33:

Does anyone have the same issue?

  • (instancetype)valueTransformerWithKeyPath:(NSString *)keyPath
    {
    return [self valueTransformerWithBlock:^id(id input) {

    if (input == nil) {
        return nil;
    }
    
    if ([input isKindOfClass:[NSString class]]) {
        return input;
    }
    
    // did we end up with an array? multi-select data
    if ([input isKindOfClass:[NSArray class]]) {
    
        // if it is an array of strings we can't map on that
        if ([((NSArray *)input).firstObject isKindOfClass:[NSString class]]) {
            return input;
        }
    
        NSMutableArray *keys = [NSMutableArray array];
        for (id i in (NSArray *)input) {
            [keys addObject:[i valueForKeyPath:keyPath]]; //  <-------------------- Failed to  compile
        }
        return [keys copy];
    }
    
    id value = [input valueForKeyPath:keyPath];
    return value;
    

    }];
    }

@jessedc
Copy link
Contributor

jessedc commented Sep 30, 2015

There are issues with compiling EZForm with Xcode 7. You'll find the develop branch has the a number of new commits that fix these issues.

I will be updating the cocoapods in the coming days as I confirm the fixes are good enough.

@frakman1
Copy link

I had the same error (XCode 7). I went with the latest from the 'develop' branch and now it works. Thank you !

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